GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

PySoy: Planar LoD

completed by: Samuel Kim

mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh

With soy.scenes.Planar recently refactored, we see the old LoD (Level of Detail) code leaves something to be desired. Specifically, the old "triforce" subdivision can potentially leave artifacts and the plane isn't centered around the camera.

Start by rewriting the VBO generation code to work like this:


Next, modify the rendering code to shift the modelview matrix such that the center of this VBO is always directly below the camera. You can test this by moving the camera to extreme values and observing that the floor is still shown into the horizon in every direction. Push/pop the matrix before and after rendering the floor so the rest of the scene renders correctly.

You can use dummy texcoord and tangent values for now as that will be the subject of a future GCI task.

While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen. This is especially important for this task as other GCI tasks may be worked on to modify the same function.

When you've done, commit your work and post the resulting changeset url to this task.