How to load and display a model at runtime

#1

Hi,

I have a model in a well known 3d format (like obj/fbx/dae/3ds).
The model is fully baked and the meshes in the model have various kinds of textures(diffuse, height, emmissive etc.)

How can I load such a model and render in my game?
I knew that Xenko can use Assimp and load a 3d model but I could not find any sample code to render the loaded model.

Thanks in advance.

0 Likes

#2

Why not import it with game studio and load it from the game content?

https://doc.xenko.com/latest/en/manual/scripts/create-a-model-from-code.html

1 Like