Add Rigged avatar to the scene

Hi,

am new to playcanvas, pls bear with me. we have an Rigged avatar (.glb) created.

https://raw.githubusercontent.com/myinzack/Riggedavatars/main/vijaywalk.glb

Can somebody pls suggest how to add this avatar to the scene and perform some action like getting into the car or walking around.

Thanks
vij

Hey, as the file you mentioned is of type binary so you will have to use a method loadFromUrlAndFilename to load it. You can use this sample project to load the model.
For the animations, you can access the animation component and can play any animation you want by its name. You can read more about animations here: AnimationComponent | PlayCanvas API Reference

2 Likes

Thanks saif
As per yur suggestion we tried uploading the glb file bit seems the upload option is disabled
can u help us

https://playcanvas.com/editor/scene/922212

You will have to fork the project and then make changes to it.

1 Like

That was very quick reply …thanks saif.

am able to render in the scene now.
could u pls suggest how to change the scene ?

You can take a look at these examples that show how to change scenes:

https://developer.playcanvas.com/en/tutorials/?tags=scenes

3 Likes