Skip to content

LOD >> Mesh Controller

LOD >> Mesh Controller

Postby Neodrop » 05 May 2011, 17:27

Built-in LOD system of Universe is able to process thousands of objects simultaniously in less then 1 ms (for all objects).

Mesh Controller swaps the mesh of the controlled object to one of 3 predefined meshes when distance to camera is changed. If camera is not set, Camera.main is being used.

LOD controller.jpg
LOD controller.jpg (14.41 KiB) Viewed 19185 times


Parameters IN :

TargetRenderer : LOD object Renderer

Control Camera : Camera for which the current LOD is calculated.

Close Distance : Distance to show the closest LOD (full quality)
Average Distance : Distance to show the middle LOD (medium quality)
Far Distance : Distance to show the most distant LOD (low quality)

Gizmo Show mode : Display mode for setting up LODs distances SceneView. Has 4 modes : Sphere, Circle, Points, None

LOD Mesh close : Mesh for the closest LOD
LOD Mesh Average : Mesh for the middle LOD
LOD Mesh Far : Mesh for the most distant LOD

Min testing interval : Minimum interval between checks of distance to the control camera
Max testing interval : Maximum interval between checks of distance to the control camera

Parameters OUT :

Last Distance : Distance of the last check
Visible : Is object visible? TRUE if any camera is able to see the controlled object.
Error Description : Error description

Triggers OUT :

CHANGED to CLOSE : Is executed only when the mesh of the controlled object is being switched to high quality mesh.
CHANGED to AVERAGE : Is executed only when the mesh of the controlled object is being switched to middle quality mesh.
CHANGED to FAR : Is executed only when the mesh of the controlled object is being switched to low quality mesh.
ERROR : Is executed in case of error.

Display mode Sphere :

LOD controllerSphere.jpg


Display mode Circle :

LOD controllerCircle.jpg


Display mode Points :

LOD controllerPoints.jpg


Display mode NONE :

LOD controllerNone.jpg


DEMO :

HTML code for your blog :
Code: Select all
<script language='javascript' type="text/javascript"> document.write("<iframe marginheight='0' src='http://antares-universe.com/player.php?url=http://www.forum.antares-universe.com/Tutorials/LOD/WebPlayer/WebPlayer.unity3d&w=800&h=800&t={TEXT}&preview=1' height='"+(800+30)+"' width='800' frameborder='0' scrolling='no'></iframe>"); </script>
Attachments
LOD.unitypackage
DEMO PACKAGE
(2.65 MiB) Downloaded 303 times
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Return to Documentation

Who is online

Registered users: No registered users