I attached the scene used to make the video if it is helpful.
The distance that is used is not a closest point test with the mesh, but rather a closest point test with a sphere bounding shape. Maybe using a box founding shape will improve the behavior.
---------
1. Define a material with several LOD distance values. I changed emissive color for each LOD technique and relied on emissive with no ambient or scene lighting. 2. Make a scene with a flat terrain tile (simple mesh) and a small box on the terrain tile. 3. Apply the same material for both the flat tile and the box. 4. Watch the behavior as you zoom away from the camera. The box's material changes, but the tile does not even though the camera is farther from the flat tile.
Environment
None
Attachments
1
Activity
Philip Allgaier
June 29, 2013 at 11:50 AM
(edited)
Summary: 1. 'distance_box' added 2. 'distance' / 'distance_sphere' is still the default 3. 'pixel_count' left unchanged, so it still uses the bounding radius (no easy way to change that) 4. added 'screen_ratio_pixel_count' as an extension to 'pixel_count'
Philip Allgaier
June 13, 2013 at 10:47 PM
Update: Completed:
new DistanceLodStrategies are implemented
new and old material script keywords get parsed accordingly
LOD value calculations with BBox working as expected
I spoke with spacegaier already about this on IRC. I am 'konradsurf' on IRC, 'cyrfer' on OGRE forums.
When artists make flat models (like a terrain tile) the current behavior of the LOD Distance strategy is not appropriate.
You can see the behavior here (needs audio).
http://youtu.be/E0kc42CWfvw
I attached the scene used to make the video if it is helpful.
The distance that is used is not a closest point test with the mesh, but rather a closest point test with a sphere bounding shape. Maybe using a box founding shape will improve the behavior.
---------
1. Define a material with several LOD distance values. I changed emissive color for each LOD technique and relied on emissive with no ambient or scene lighting.
2. Make a scene with a flat terrain tile (simple mesh) and a small box on the terrain tile.
3. Apply the same material for both the flat tile and the box.
4. Watch the behavior as you zoom away from the camera. The box's material changes, but the tile does not even though the camera is farther from the flat tile.