Last active
February 18, 2017 19:46
-
-
Save achyutdev/6eb6081b890f7441292cda694aef1aa9 to your computer and use it in GitHub Desktop.
CGProject
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "colors.inc" | |
#include "stones.inc" | |
#include "textures.inc" | |
#include "shapes.inc" | |
#include "glass.inc" | |
#include "metals.inc" | |
#include "woods.inc" | |
global_settings { ambient_light White } | |
global_settings{max_trace_level 10} | |
camera { | |
location <0, 10,-25> | |
look_at <0, 0, 0> | |
} | |
light_source { <-2, 4, -10> 0.5} | |
background { rgb <0.3, 0.6, 0.9> } | |
plane{ | |
z,0 | |
pigment { | |
rgb <0.2,0.9,0.4> | |
} | |
} | |
plane{ | |
y,-2 | |
pigment { | |
rgb 1 | |
} | |
} | |
plane{ | |
x,-10 | |
pigment { | |
rgb <0.2,0.9,0.4> | |
} | |
} | |
sphere { | |
<-1,-1,-10>, 1 | |
pigment { | |
color Red | |
} | |
} | |
//Rug | |
box { | |
<-3, -2, -12>, // Near lower left corner | |
<6, -1.9, -7> // Far upper right corner | |
pigment { | |
Cherry_Wood | |
} | |
} | |
//mirror | |
box{ <-5, 1,-0.2>, <1, 8, -0.01> | |
pigment { | |
color White | |
} | |
finish { reflection {1.0} ambient 0 diffuse 0 } | |
} | |
//glass jar | |
#declare Glass_Jar = | |
difference{ | |
cylinder{<3,-1.8,-10>,<3,1 ,-10>,1.4 } | |
cylinder{<3,-1.8+0.1,-10>,<3,1+0.1,-10>,1.4*.9} | |
} | |
union{ | |
object{ Glass_Jar | |
material{ | |
texture{ | |
pigment{ rgbf<.98,.98,.98,0.85>*1} | |
finish { ambient 0.0 | |
diffuse 0.15 | |
reflection 0.2 | |
specular 0.6 | |
roughness 0.005 | |
reflection { 0.03, 1.0 fresnel on } | |
} | |
} | |
interior{ ior 1.5 | |
fade_power 1001 | |
fade_distance 0.5 | |
fade_color <0.8,0.8,0.8> | |
} | |
} // end of material | |
} // end glass | |
} | |
cylinder{ | |
<3,-1.8+0.1,-10>,<3,0,-10>,1.4*.9 | |
pigment { rgb<0,.98,.98> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice work. keep it up.