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

PySoy: Checkered Cubemap

completed by: Nikolay Lazarov

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

Most of our "traditional" examples showed checkered cubes in a confined 3d space, typically one solid color and black, as shown below:


Add a named constructor to Cubemap which accepts a pattern name and an array of soy.atoms.Color. For the "checkered" pattern, each face will be a 2x2 texture. If the array is length 0 white/black will be used, if the array is length 1 the provided color and black will be used, length 2 both provided colors will be used. Each of these textures should have 1 shade (not smooth).

In the future additional colors provided beyond 2 may result in sides larger than 2x2, though that will not be a separate GCI task so for now any additional colors should be ignored.

Update to use this.

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.