GSoC/GCI Archive
Google Code-in 2013 Copyleft Games

PySoy: Wireframe Material

completed by: Joey Watts

mentors: Arc Riley

Create a new material class which renders a wireframe instead of a solid image. While rendering a wireframe is fairly straightforward, you'll need to modify the rendering API to support rendering lines instead of faces.

Remember that while most of our current bodies/scenes/etc use a single material, others (eg, Mesh) will support using multiple materials. This is why the current material rendering API is written the way it is - it gives the parent object (body, scene, etc) the freedom to render whichever faces it needs in whatever order it needs.

With wireframe you'll still want to support rendering a range of faces within an element buffer but the elements you actually render need to be edges, not triangles. Most of this task will be figuring out how to implement this cleanly.

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.

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