Set custom draw distance for some scene nodes?

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
dart_theg
Posts: 58
Joined: Sun Dec 29, 2024 3:13 am

Set custom draw distance for some scene nodes?

Post by dart_theg »

Is it possible in Irrlicht to have say mesh scene nodes only appear when they are <= 50 meters to the active camera? Or is this something I should just do myself externally?
CuteAlien
Admin
Posts: 9943
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Set custom draw distance for some scene nodes?

Post by CuteAlien »

Yeah if it's only about some nodes then externally - add a distance check and hide nodes or so. For all nodes it's the far-plane of the camera.
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