Help - Search - Member List - Calendar
Full Version: The beauty of code...
nForums.net > Art & Design > Public Gallery
Slace
Well... I've finished my povray assignment for uni. 623 lines of code to produce this:

http://slace.sytes.net:65/uni/389/Ass3-final.png

took just under 40 min to render that. Rather happy with it indeed wink.gif
mcelb1200
that's one nice piece of ass - final!
Bdn
Oooer Makes me wish I could code... Im too dumb for that though. sad.gif

Nice work there.
optomos
Holy shitzu!! that is sick. How long did it take you to write the code?
Slace
took about 3 days to write that. It was just so fidely, placing the object, moving it, placing, moving, etc

Anyone who's done povray will know my pain tongue.gif
Shoe
Can I see the code? laugh.gif Im serious btw biggrin.gif
Slace
here's how to make the pool:

CODE

#declare Pool = //This is all the parts that make the pool. It could have been done with a box with a difference but it was made before i fully understood it and well it worked :P
union {
       object { //left
               box {
                       <50,0,100>,<70,20,1000>
                       pigment{
                            bumps color_map{[0.0 Black][1.0 White]}
                            scale 0.24
                       }                
               }                    
       }
       object { //back
               box {
                       <50,0,1000>,<650,20,920>
                       pigment{
                            bumps color_map{[0.0 Black][1.0 White]}
                            scale 0.24
                       }                
               }
       }
       object { //right
               box {
                       <570,0,920>,<650,20,100>
                       pigment{
                               bumps color_map{[0.0 Black][1.0 White]}
                               scale 0.24
                       }                
               }  
       }
       object { //front
               box {
                       <50,0,100>,<570,20,180>
                       pigment{
                               bumps color_map{[0.0 Black][1.0 White]}
                               scale 0.24
                       }                
               }
       }
       object { //water
               box {
                       <70,3,120>,<570,3,920>
                       material { Pool_Water_Material }
               }
       }
       object { //the water material i used was very transperent, so this just gives the illusion of depth by adding a darker blue under the water
               box {
                       <70,1,120>,<570,1,920>
                       pigment { color rgb <0,0,0.35> }                  
               }
       }
       difference {  //spa, every pool needs a spa. Also fills in the back area of the scene
               cylinder {
                       <300,0,1080><300,30,1080>,100                      
                       pigment{
                               bumps color_map{[0.0 Black][1.0 White]}
                               scale 0.24
                       }
               }
               cylinder {  //the inside of the spa
                       <300,0,1060><300,31,1060>,80
               }
       }
       cylinder {  //the spa's water
               <300,0,1060><300,20,1060>,80
               material { Pool_Water_Material }
       }
       cylinder { //some color to give the spa depth
               <300,0,1080><300,20,1080>,80
               pigment { color rgb <0,0,0.35>}
       }                                                
}
hoioyske
Interesting. Looks great for an all code project, I really like the shaders.
TWINE006
That's really awesome considering how it was made. Helluva lot better than I could do, let's say that. I like the rainbowish band thing myself.

Nice rendering time btw. tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.