I've just made a checkin to CVS; it includes code to render the
terrain with adaptive levels of detail. The code for this was adapted
from a demo by Thatcher Ulrich <tu@...>, described in this
Some things still need work: course lighting doesn't work yet, and
there's some weirdness at the right and bottom edges of the terrain.
I'll be fine-tuning it over the next few days.
The affect of this code can best be seen in wireframe mode; hit F11 to
toggle it. You can use the F9 and F10 keys to decrease and increase the
amount of detail. For example, hit F11 at the start screen and then
hold down F10 -- you should see lots of triangles appear. Set debug to
"quadtree" in ~/.tuxracer to see some somewhat interesting diagnostic
Please let me know if you notice major problems, like compilation
problems, game or X server crashes, etc. (it runs fine on my setup :-).
BTW, I think this makes Tux Racer the first open-source game to have
adaptive LOD terrain. Anybody know any different? (I might be the only
person who thinks this is cool... :-)
Get latest updates about Open Source Projects, Conferences and News.