Matrix Composition Prebaked Ribs St Coloration Pattern Animation Fire Grass Home
ST - COLORATION  


This page shows how to create shapes with colors using PRman shader language.Initially it was hard for me to understand how
the mathematics of the language works as I have no idea how C ++ works, however through researching on seniors pass works
the pattern in which the language was written slowly make sense to me. Hence below you can see what I have come out with.

Click on Images to see coding    

Click on image to see coding

 

I was deciding to implement funtions to my coding for my 2nd phase of this assignment which is giving controls to the shader.

My aim is to get the Panda face to have a MIX COLOR function, and a anti-alias to the face.

However, I kept getting an error when compiling the shader.

So, I just did the easy way which is to give controls to the different shapes individually, and now the animation is only limited to solid color changes.

Other problems:

.the numerical number only works fine within range of 0.00 to 0.01 for Radius of circles.

.when shader is loaded on a polygon in Maya, the image is cropped.

Click here to see coding.

Surface "panda"
"Kfb"
1.0
"r1"
0.01-- size of head
"Reye" 0.0001 - size of eyes
"face" [ 1.0 0.8 0.8] - color of face
"eyeP"
0.3 - eye position
"eyeP2"
0.2 -eye position
"mouth" 0.09 - size of mouth

 

On the left is a basic pattern made of circle and in the middle a circular color radiant. My intention is to duplicate it and make the pattern look seamless thats why i have a quarter of a circle on each end of the shader.

When repeating the shader it will lool like the next image.

Why did i want to create another shader?

1. the smiley face cannot work on a sphere.

2. I wanted a sphere rotating and changing colored patterns in my final shot.

3. I wanted to make sure that I know how to use the Mix color command, as I spent alot of time to understand it.

Click here to see Coding.

Click here to see my function.

-