Colin S Posted March 6, 2015 Report Posted March 6, 2015 Basically, I want grass (a 3D thing that looks disgusting any further away than about 100 metres) to disappear at said one hundred metres. I know it's possible, because I've seen objects that are not rendered at a certain distance. How do you determine when the object is no longer shown? Thanks
PilotNuts Posted March 6, 2015 Report Posted March 6, 2015 (edited) from http://developer.x-plane.com/?article=obj8-file-format-specification ATTR_LOD <near> <far>LOD indicates the beginning of a new LOD, which should be used to represent the object when the viewer is between near (inclusive) and far (exclusive) meters.Above is for *.obj file. If you use *.for, tryhttp://developer.x-plane.com/?article=forest-for-file-format-specification LOD <max lod>This defines the farthest distance the trees can be seen. Lower values cause forests to disappear faster but result in faster frame rate. Edited March 6, 2015 by chenhe1023 1
Colin S Posted March 7, 2015 Author Report Posted March 7, 2015 from http://developer.x-plane.com/?article=obj8-file-format-specification Above is for *.obj file. If you use *.for, tryhttp://developer.x-plane.com/?article=forest-for-file-format-specification Excellent! It works perfectly. Thank you very much
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now