IPB

Welcome Guest ( Log In | Register )

[ Outline ] · Standard · Linear+

> The beauty of code...

Slace
post Sep 24 2004, 10:24 AM
Post #1


nFm [ Level 1 ]
***

Group: Private Member
Posts: 248
Joined: 21-March 04
Member No.: 52



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 ;)


--------------------
bash-2.05$ cd /pub
bash-2.05$ more beer
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topicStart Poll
Replies
Slace
post Sep 28 2004, 02:35 AM
Post #2


nFm [ Level 1 ]
***

Group: Private Member
Posts: 248
Joined: 21-March 04
Member No.: 52



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>}
       }                                                
}


--------------------
bash-2.05$ cd /pub
bash-2.05$ more beer
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicTopic OptionsStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
 

Lo-Fi Version Time is now: 2nd July 2025 - 06:07 AM