object paging system

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Seven
Posts: 1030
Joined: Mon Nov 14, 2005 2:03 pm

object paging system

Post by Seven »

I am looking to hide / show nodes laid out in a grid and could use a push in the right direction. I currently don't even know what question to ask.

assuming I have a grid of nodes laid out in a x/z grid it seems that if I know where the camera is, what direction it is facing and what the camera parameters are, I should be able to hide noes that are not visible and only show those that are.


https://postimg.cc/f3p3z7nQ


any help is appreciated.
CuteAlien
Admin
Posts: 9652
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: object paging system

Post by CuteAlien »

That's what Irrlicht does when you enable culling for nodes (ISceneNode::setAutomaticCulling). EAC_FRUSTUM_BOX would be the one that tries to regard the camera. Note that this function did have some bugs until recently (got patches around 2 months ago in svn trunk branch), although I think it never hid too many, just not enough sometimes.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply