Export to GitHub

google-highly-open-participation-psf - issue #320

Add 8 new standard soy.materials classes


Posted on Jan 9, 2008 by Helpful Giraffe

Each material class inherits soy.materials.Material and sets a default ambient, diffuse, specularity, and shininess. The colors should use the default soy.colors.* (or add new instances) and a brief pydoc string for each new material class should describe what it's intended to look like.

An example can be found at http://svn.pysoy.org/trunk/pysoy/src/materials/S.pxi

Examples for these default materials include Chrome, Flesh, Emerald, Granite, Copper, Obsidian, Snow, and Syrup. Materials should cover a wide range of colors and shininess, student is given free reign to implement her/his own ideas. Classes should be listed in alphabetical order and in files named by the first letter of their name (such as S.pxi). See http://svn.pysoy.org/trunk/pysoy/src/colors/ for what this looks like.

Completion:

Commit the work to http://svn.pysoy.org/, attach your diff(s) to this task, and contact the ghop-python mailing list.

Relevant webpages: - http://www.falloutsoftware.com/tutorials/gl/gl8.htm

Task duration: please complete this task within 5 days (120 hours) of claiming it.

Comment #1

Posted on Jan 9, 2008 by Helpful Camel

I claim this task.

Comment #2

Posted on Jan 9, 2008 by Helpful Giraffe

(No comment was entered for this change.)

Comment #3

Posted on Jan 9, 2008 by Helpful Camel

I've got a doubt about the example provided for steel. Isn't the specular highlight the colour of the light source itself ? How did it end up as purple ?

Comment #4

Posted on Jan 9, 2008 by Happy Ox

Someone was playing around with it. It does not look like steel.

Comment #5

Posted on Jan 11, 2008 by Helpful Camel

Here is the diff. And the pics of the materials are over here http://shriphani.com/pics/main.php

Attachments

Comment #6

Posted on Jan 12, 2008 by Happy Ox

Verified.

Shriphani's work shows an eye for detail and has done a fantastic job with this task.

Comment #7

Posted on Jan 13, 2008 by Massive Monkey

Marking this as completed. w00t!

Status: Completed

Labels:
pysoy opengl Due-20080114.0800 ClaimedBy-shriphanip