; limit distance to 10 meters
set_default_rendering_distance 10.0
; reset to infinite distance
set_default_rendering_distance 0
NOTE: I observed there is some glitch in the distance calculation, even with the same distance value, some objects appear faster than others. I debugged my code and concluded it's an OGRE issue.
TOBJ fileformat: added
set_default_rendering_distance
This is a directive - you can place it anywhere and it affects all lines that come after it, much like directives in the truck fileformat do. The parameter is distance in meters. 0 means infinite distance (object is always rendered). Default value is 0. Internally, it uses
Ogre::Entity::setRenderingDistance()
, see https://ogrecave.github.io/ogre/api/1.11/class_ogre_1_1_movable_object.html#afe1f2a1009e3f14f36e1bcc9b1b9557eExamples:
NOTE: I observed there is some glitch in the distance calculation, even with the same distance value, some objects appear faster than others. I debugged my code and concluded it's an OGRE issue.