Objects that the player is seeing

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Nikko_Bertoa
Posts: 42
Joined: Wed Feb 18, 2009 5:26 am

Objects that the player is seeing

Post by Nikko_Bertoa »

Hi community.

I developed a FPS with Irrlicht.
How can I get all the scene nodes that the player (camera) is seeing in the screen??

Is there a function to do that??? I researched in the CollisionManager documentation but I didn't find a function to do that.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

ISceneManager::isCulled can be used for that. Maybe take a look at the implementation in CSceneManager::isCulled, even if it doesn't exactly do what you need, it's probably giving you the right ideas.
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
Nikko_Bertoa
Posts: 42
Joined: Wed Feb 18, 2009 5:26 am

Post by Nikko_Bertoa »

@CuteAlien:

I can iterate through all the scenes nodes and use as arguments of the function isCulled. Finally I will know what scene nodes I see and what scene nodes I don't see.

Thanks!
Post Reply