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

PySoy: Materials: Blue Colors

completed by: Samuel Kim

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

This task is intended as an introduction to PySoy development and OpenGL lighting/materials, much of the work in this is learning how materials work where the actual code is minimal. For this reason, each student is limited to one (1) colored materials task.

Tweaking the properties of a material to look good takes time, its often useful to have standard named materials ready to use, ie:

material = soy.materials.Colored() material.ambient = soy.atoms.Color('red') material.diffuse = soy.atoms.Color('red') material.specular = soy.atoms.Color('white') material.shininess = 0.2

Could instead be written as:

material = soy.materials.Colored('red')

Design the following 12 materials for blue colors which shade well under white light and add them to the soy.materials.Colored class:

  • blue
  • cornflowerblue
  • darkblue
  • dodgerblue
  • lightblue
  • lightsteelblue
  • mediumblue
  • midnightblue
  • navy
  • powderblue
  • royalblue
  • steelblue

These should be based on (same hue) the colors by the same name used by soy.atoms.Color.

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.