Here's a video of my final results.
http://www.youtube.com/watch?v=dyMPjVtLIKM
August 14, 2010
August 13, 2010
Wrapping it up
Here are the latest improvements to the LOD system:
- Handling meshes with coincident vertices
The algorithm is able to collapse edges whose vertices are both single vertices (only one vertex in one position), as well as one single and one double (two coincident vertices), as long as the single vertex is the origin of the collapse. As it is now, the tool is fully able to preserve texture and normal boundaries. An in-memory data structure stores pointers to coincident vertices, which will allow a future implementation of full collapse of vertices of order 2 -- still preserving textures and normals.
- Fast local error metric
This new error metric only analyzes triangles in a local area around the last collapse. It is approximately linear on the number of triangles, instead of quadratic. I used a sampling approach in which a number of points are selected in triangles of the original mesh, and I measure the distance between these points and triangles of the simplified mesh. The error metric is an average of these distances.
- Artist-defined distances for multiple meshes
Modellers need to be able to define minimum and maximum LOD distances per-mesh in their modeling tool. This is important because different meshes have different LOD requirements. A modeller may want to make a small mesh enter its LODs quicker, while a larger mesh should be at a greater distance before entering its LODs. They can also take into account the polygon count, surface complexity and relative importance of the mesh, and set appropriate distances.
When multiple meshes are processed at once from a zip file, the system reads in each file to check if it has preset LOD distance parameters. If they are set in the original file, those distances override the command-line specified distances. A "-force" flag was added to the command line to make the command line distances override the file distances.
Eye Candy
I haven't posted pictures or videos in a while, so here is some eye candy.
Eye Candy
I haven't posted pictures or videos in a while, so here is some eye candy.
![]() |
| 900 teapots: Before = 17 fps |
![]() |
| 900 teapots: After = 66 fps |
The first picture shows a scene where 900 teapots are rendered at full resolution. The frame rate is 17fps. The second picture shows the same 900 teapots rendered with progressive LODs. The frame rate is 66 fps. The distances used were mindist=10 and maxdist=30.
Now I'm going to have some tea to celebrate.
Now I'm going to have some tea to celebrate.
Subscribe to:
Posts (Atom)


