Monday, March 7, 2011

Trace it... with the Rays!

So here is an older article about the ability to ray trace in real time and the befits of it and such, quite an interesting research article.

http://blogs.intel.com/research/2007/10/real_time_raytracing_the_end_o.php

Sunday, March 6, 2011

Nostalgia, ain't it grand?

While surfing the internet this weekend I found this lil video of some old school games coming to real life and terrorizing us. Made me yearn back to the early years of game development when a few moving pixles on the screen was considered great graphics. Now days we deal with the idea of "photo-realism" the life like game. Well here is the Youtube video.

"Pixels Old School - Amazing Render"
http://www.youtube.com/watch?v=pf480SUuRxY

What do you think? Do you miss the good ol'days? Or you glad that we moved on?

Thursday, March 3, 2011

Fun with Windows?

So the idea of forbidden colors really interested me so I decided to have fun with colors in a kinda parody sense. If you look at the windows logo, it is the four colors that are forbidden to interlace! So in an attempt to try and reach those colors I animated them switching at a really fast rate. I also tried to play with the ideas that "yellow's make blue's bluer." with these colors and what I got was an interesting and kool GIF. Which only takes 5ish steps to make.

Step 1:  Open Photoshop and create a Windows logo.

Step 2: Rotate the colors in the Windows logo in a certain direction in order

Step 3: Animate these to fade in and out in synch with the next rotation.

Step 4: Repeat till all the colors are rotated once.

Step 5: Save for Web and Devices as a Gif that loops forever

Yay! Done! and this is about what you get!


What it's not a line?

So here is my non linear translations, Andrew helped me a ton with this one and I almost just wanna give all the credit to him haha but I figured out a lil bit of the math. Thanks Andrew you saved my life :) Rainbows :D

select -all; delete;

float $rot = 360.0/30.0;
string $name;
string $name2;

for ($x=0;$x<15.0;$x++)
{
    for ($y=0;$y<1;$y++)

    {
        $name = `shadingNode -asShader blinn`;
        $name2 = $name + ".color";      
        $ang = $x*$rot;
        $hue = $ang/360.0;

        vector $color = hsv_to_rgb(<<$hue, 1, 1>>);
        setAttr $name2 -type double3 ($color.x) ($color.y) ($color.z);
         polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
         xform -translation (0.25*$x) 0 1;
        hyperShade -assign $name;

    }
}
;

Its Just a line!

So for my linear transitions I used the color cube as a lot of help, especially with visualizing it. I also received some help from Andrew with the coloring of it.I ended up using cubes because they kinda melded together and made an awesome gradient effect.

select -all; delete;

string $name;
string $name2;

 float $r;
 float $g;
 float $b;
 int $x = 0;

for ($x=0;$x<15.0;$x++)
{
 $r = 0.0;
 $g = 1.0;
 $b = 0.0;

 $r += ($x*0.06);
 $g -= ($x*0.06);
 $b += ($x*0.06);

     $name = `shadingNode -asShader blinn`;
     $name2 = $name + ".color";
     setAttr $name2 -type double3 ($r) ($g) ($b);
     polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
     xform -translation (0.25*$x) 0 1;
     hyperShade -assign $name;
}
;  



This code makes a transition almost like the hulk color scheme. It is kinda awesome and I really like it!


select -all; delete;

string $name;
string $name2;

 float $r;
 float $g;
 float $b;
 int $x = 0;

for ($x=0;$x<15.0;$x++)
{
 $r = 0.0;
 $g = 0.0;
 $b = 1.0;

 $r += ($x*0.06);
 $g += ($x*0.06);
 $b -= ($x*0.06);

     $name = `shadingNode -asShader blinn`;
     $name2 = $name + ".color";
     setAttr $name2 -type double3 ($r) ($g) ($b);
     polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
     xform -translation (0.25*$x) 0 1;
     hyperShade -assign $name;
}


This one does a blue to yellow transition.


select -all; delete;

string $name;
string $name2;

 float $r;
 float $g;
 float $b;
 int $x = 0;

for ($x=0;$x<15.0;$x++)
{
 $r = 1.0;
 $g = 0.0;
 $b = 1.0;

 $r += ($x*0.06);
 $g += ($x*0.06);
 $b -= ($x*0.06);

     $name = `shadingNode -asShader blinn`;
     $name2 = $name + ".color";
     setAttr $name2 -type double3 ($r) ($g) ($b);
     polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
     xform -translation (0.25*$x) 0 1;
     hyperShade -assign $name;
}


This one does magenta to orange.

Cubed

Here is the cube, why couldn't everything else be this easy???? *sigh*

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);
       polySphere -ch on -o on -r .03;//ballradius
    xform -translation ($x/7.0) ($y/7.0) ($z/7.0);//balldistance
       hyperShade -assign $name;
     }
  }
}

Nodes! They make art!

Here is an interesting link to an article about node based art, all done by programming nodes with certain constraints hope you enjoy.

http://www.levitated.net/bones/nodeGarden/