GSoC/GCI Archive
Google Code-in 2013 Copyleft Games

PySoy: Sphere Vertex Alignment

completed by: Samuel Kim

mentors: Arc Riley

Our soy.bodies.Sphere class is working pretty well thanks in large part to numerous GCI 2012 tasks to improve it, this task is one more step of refinement; when you view a texture on a sphere you'll notice "seams" where the pieces don't quite fit together right, eg:

[IMAGE http://gci.copyleftgames.org/img/cubemapped_earth.png]

This is due to the way texturing maps to the sphere; imagine that its divided into 6 "faces" which are folded together either for a 2d texture or cubemap. To fix this, the vertex generation loops need to be modified such that a face boundries always overlap with the cubemap boundries. Verticies along the "seams" need to be duplicated/overlapped such that texcoords and tangents can be different (though same position).

[IMAGE http://gci.copyleftgames.org/img/colered_cube2_2.png]

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.