Wednesday, February 23, 2011

Journal 2/24

I thought about the question of black light.

There is not black light. Black is what you get when there is no light, or no light is reflected. It can absorb light, but that's it.

A "black light" that people can buy is actually ultraviolet light. It's emits electromagnetic radiation, so most of it isn't visible. The only visible bits are the near ultraviolent range, so that's why if you put white next to a "black light" the white will look purple.

Tuesday, February 15, 2011

Assignment 2 (Again)



We did the color cube again in class, and the code is shorter (and thus prettier). So I felt I should post it here.


for ($x = 0; $x < 8; ++$x){
for ($y = 0; $y <8; ++$y){
for ($z = 0; $z <8; ++$z){
$name = `shadingNode -asShader blinn`;
$tmp = $name+ ".color"; //blinnShader1.color
setAttr $tmp -type double3 ($x/7.0) ($y/7.0) ($z/7.0);
$objName = `polySphere -ch on -o on -r .03`;
xform -translation ($x/8.0) ($y/ 8.0) ($z/ 8.0);
hyperShade -assign $name;

}
}
}



I also don't know how to keep the indents in blogger, so I'm stuck with it all being aligned on the left side.

Sunday, February 13, 2011

Assignment #2 Color Cube

The assignment was to create a projected color cube made of spheres, created by using MEL script. Here's the code for mine, as long as it is used on Maya 2011, it should work just fine.







for ($x = 0; $x <>

for ($y = 0; $y <8;>

for ($z = 0; $z <8;>

$name = `shadingNode -asShader lambert`;

$objName = `polySphere -ch on -o on -r .03`;

xform -translation ($x/8.0) ($y/ 8.0) ($z/ 8.0);

$tmp = $name+ ".color";

$tmp2 = $name+ ".outColor";

$tmp3 = $name + "SG";

$tmp4 = $name + "SG.surfaceShader";

sets -renderable true -noSurfaceShader true -empty -name $tmp3;

connectAttr -f $tmp2 $tmp4;

hyperShade -assign "lambert" "" $name $objName[0];

sets -e -forceElement $tmp3;

setAttr $tmp -type double3 ($x/7.0) ($y/7.0) ($z/7.0);

}

}

}

Thursday, February 10, 2011

Journal #6 2/10/11

Tuesday we just had a work day. With help, I finally got the color cube to actually have color. It looks pretty awesome. I'll post the code and a picture of the final product later today.

Thursday, February 3, 2011

Journal #5




Okay, I know I will never be able to animate this good, but I have the absolute highest respect for anyone who models like this. I could go on for hours about Disney and Pixar, but for this I will just do a brief post about Cars (and Cars 2 because that's on its way to theaters).

I am fascinated at the way these animators can not only make the characters have human expressions but also how they texture the characters. If you go to Pixar's Youtube page they actually have about 10 cars from the new movie up for display. It's hard to describe each one, but just the change of color tone and brightness, as well as fitting the images to the unique shapes of the cars, is just spectacular.

Journal #4 2/3/11

Today we worked on making the color cube made of spheres. I was shocked at how little code is actually required to get all those spheres made.

So now we have to get the color added. I searched google for over 2 hours and I still couldn't find anything that works. I hope we'll be able to figure it out Tuesday in class because I am so lost.