Papervision 3D Programming Tutorial - Simple LOD
Use the SimpleLevelOfDetail class to create objects that alter their level of detail according to their distance from the camera. Demo and source code included.
VIEW THE DEMO
DOWNLOAD THE CODE
In 3D applications Level of Detail, or LOD for short, refers to a process that alters the polygon density of a mesh, generally reducing the polygon count the further a mesh is away from the camera. The idea is that only those objects close to the camera need to be rendered with full detail, and that reducing the polygon count for smaller, more distant objects increases performance without sacrificing too much in the way of visual appeal.
There are a number of ways this can be done. Quite often in commercial (and typically C++) 3D engines the LOD of mesh can be reduced on the fly. Papervision supports a less complicated system of displaying a predetermined mesh given the objects distance from the camera. It doesn't quite have the same flexibility of a dynamic LOD system, but at the end of the day produces the same effect.
The SimpleLevelOfDetail class is used to display from a supplied array of meshes, swapping between them in a linear fashion depending on how far away the object is from the camera. You simply supply the SimpleLevelOfDetail constructor with the array of meshes, and give it a minimum and maximum distance. When the object is closer than the minimum distance it displays the first mesh in the array, and when it is further than the maximum distance it displays the last mesh. For distances in between it will pick one of the meshes in the middle of the array.
The sample application creates five spheres which bounce around inside an invisible box. Each sphere has four meshes associated with it, representing four levels of detail. As the spheres move closer to the camera you will notice that they use a more detailed mesh, and progressively switch to a lower detail mesh as they move away. The meshes themselves are textures with a wireframe material so you can easily see the polygon density of each model.
Go back to Papervision Tutorials

-
Papervision 3D Programming Tutorial - Simple LOD
| By mcasperson | in Programming
Use the SimpleLevelOfDetail class to create objects that alter their level of detail according to their distance f...
-
How to Transfer Data to a new Laptop using CDs
| By clark711 | in Computers
How to article on transferring lod data and files to a new laptop or computer using CD-Rs or CD-RWs...
-
HOW FISH,NUTS,OLIVE OIL MEALS REDUCE BLINDNESS RISK.
| By blkcutemale | in Diet & Nutrition
In recent times carrots and green leafy vegetables has been the best known way for the reduction of blindness globa...
-
10 Great Myths of The Hacker Universe
| By yuBIe | in General
In the words of computer guru Richard Stallman, "a hacker may be the one who enjoys using his full intelligenc...
-
iPhone Resizing a UIImage | By eh9212 | in Programming
How to resize a UIImage in a UIImageView and a UIButton...
-
Threading in dot net 2.0 - separate copy of static variable among different threads using ThreadStatic attribute | By xxris | in Programming
How each thread keeps a separate copy of same static variable using ThreadStatic attribute ....
-
ADAPATIVE ALGORITHM TO FINDOUT DUPLICATE RECORDS | By pinakbhusanmishra | in Programming
Records are list of row that are stored inside database . this is an efficient technique to find out the duplicatin...
-
ALGORITHM TO FIND OUT HIDDENLINKS IN WEBSITES | By pinakbhusanmishra | in Programming
Here we can find out the hidden links in the websites that basically people uses for the browsing ads....
-
PHP and MySQL | By ChaimChaikin | in Programming
PHP is a server side programming language that is used mainly for dynamically creating and mantaining websites. PHP...
-
AS3IsoLib Tutorial Series - Interaction | By mcasperson | in Programming
In this tutorial we add mouse interactivity to the scene....
-
AS3IsoLib Tutorial Series - Camera | By mcasperson | in Programming
In this tutorial we allow the view of the isometric scene to be moved with the mouse....
-
AS3IsoLib Tutorial Series - Height | By mcasperson | in Programming
In this tutorial we show the height of an isometric object by adding a shadow....
-
AS3IsoLib Tutorial Series - Materials | By mcasperson | in Programming
In this tutorial we modify the appearance of the isometric cube at runtime....
-
AS3IsoLib Tutorial Series - Moving Boxes | By mcasperson | in Programming
In this tutorial we add some animated isometric boxes to the scene....








No comments yet.