Page 1 of 1

OnPreRender() Method??

Posted: Fri Aug 27, 2010 5:38 pm
by AbsoluteCPP
I am searching "OnPreRender()" method, where it actually defines and implemented but unable to find.

Please help me,
I have read the documentation for the
class irr::scene::IAnimatedMeshSceneNode;
class irr::scene::ISceneNode;

but still not found that..

Posted: Fri Aug 27, 2010 6:06 pm
by Iyad
http://www.irrlicht3d.org/wiki/index.ph ... PostRender

They changed OnPreRender for OnPostRender...

Posted: Fri Aug 27, 2010 6:10 pm
by Acki
look for OnRegisterSceneNode() !!! ;)

Posted: Fri Aug 27, 2010 6:17 pm
by AbsoluteCPP

Code: Select all

virtual void irr::scene::ISceneNode::OnAnimate  ( u32  timeMs  )  [inline, virtual] 

OnAnimate() is called just before rendering the whole scene. 

Nodes may calculate or store animations here, and may do other useful things, depending on what they are. Also, OnAnimate() should be called for all child scene nodes here. This method will be called once per frame, independent of whether the scene node is visible or not. 
and

Code: Select all

virtual void irr::scene::ISceneNode::OnRegisterSceneNode  (   )  [inline, virtual] 

This method is called just before the rendering process of the whole scene. 

Nodes may register themselves in the render pipeline during this call, precalculate the geometry which should be renderered, and prevent their children from being able to register themselves if they are clipped by simply not calling their OnRegisterSceneNode method. If you are implementing your own scene node, you should overwrite this method with an implementation code looking like this: 
'OnRegisterSceneNode' is the method that called once before a frame starts to render, am i right??
In fact i want to handle those nodes that are currently visible..