09 January 2015 02:00
How do I position JSON models within a scene when they are loaded from various files? I was told before but the info is lost in another thread and there is no search in the forum.
Here is my tutorial request: An example scene with an environment JSON, then a cube and a sphere loaded from separate JSON files, placed in the environment via code, and a constant glow around both, and hey, why not make the cube and sphere hotlinks at the same time.Not a tutorial but a small scene. A monkey and a sphere are loaded dynamically in the hidden mode to prevent user from seeing this objects partially loaded. Then in the loaded callbacks they are moved to the specific location and are made visible with the following code:
m_scenes.show_object(monkey); m_trans.set_translation(monkey, 0, 2, 0);