I am using Ogre 14.1 version compiled from sources with all the necessary dependencies and plugins just like the Assimp and the Bullet physics ones.
What I am willing to do is to create a scene from gltf files which ones have been generated starting from Unity assets.
The aim is to not use any Ogre native format/script, instead I would like to go with gltf assets created in Blender.
I have seen that Ogre has chosen to go with Bullet Physics instead of the newton dynamics for what it concerns the rigid body collisions and kinetics.
Considering that I still need to fully understand if it is a good practice to create an entity node pair for the terrain from a gltf asset I would like to ask you if there is a better procedure to do it - for now I can see the terrain rendered by doing simply:
Code: Select all
Ogre::Entity* terrainEntity = sceneMgr->createEntity("terrain", "terrain.gltf");
assert(terrainEntity != nullptr && "Could not create terrain");
Ogre::SceneNode* terrainNode = sceneMgr->getRootSceneNode()->createChildSceneNode("terrainNode");
I instead am having troubles by loading the scene entities/assets from the second gtlf file (scene_entities.gltf).
Here I would like to have loaded all the scene assets grouped in Ogre just like they are arranged/embedded into the gltf - here I have: bushes, decals, trees, billboards for grass and tree foliage, particles, water planes, rocks and few others.
Which is the best way to do it?
I also would like to have the bullet physics world/engine up and running by a wrapped call instead of doing it manually with some further physics world to 3d engine world manual bindings.
I also would like to have all the rigid bodies being created for the terrain and many of the scene entities like trees, rocks, etc.
There is a practical example of how doing it with OgreNewt2 - I can only imagine that I will be using a second frameListener for the bullet physics transformations.
In summary what I am looking for is a source for some examples where we can load assets from files (better if in fbx, gltf or similar format) for the terrain and all the other "statics" entities just like Unity and Godot do and how to run the bullet physics through the ogre wrapper.
For the latter I have just found some references but in any case a couple of snips more will help more.
Attached you will find the image of the scene I am trying to recreate.
Thank you all in advance and sorry for probably asking again what has been just covered.