Page 1 of 1

3D sprite

Posted: Sat May 22, 2010 3:07 am
by G43L
Hi,

I'd like to know how to load a 3D mesh and create a node _without_ adding it to the scene. The 3D mesh is a sprite I'd like use many times - I know I can use render() to draw it.

Thanks for any answer,
G43L

Posted: Sat May 22, 2010 4:45 am
by kazymjir
You mean to not display node on scene?
If I good understand you, you can use setVisible(bool) from ISceneNode, like:
node->setVisible(false);

Posted: Sat May 22, 2010 10:47 am
by greenya
Also you can create another SceneManager and use it for anything. Simply do not call its drawAll() method and it won't be drawn.

ISceneManager::createNewSceneManager()

Posted: Sat May 22, 2010 12:02 pm
by G43L
Hello,

Thank you very much for your replies! I'll try...