|
|
I'm having trouble with this CSG.
I can't seem to cut off the sharp edge of the inner part of this letter 'c'.
Help will be appreciated.
Thanks,
Nekar
#version 3.1
#include "colors.inc"
#include "glass.inc"
global_settings
{
assumed_gamma 1.0
}
// ----------------------------------------
camera
{
location <10, 5, -10>
direction 1.5*z
right 4/3*x
look_at <5, 0.0, 50>
}
sky_sphere
{
pigment
{
gradient y
color_map { [0.0 color rgb <.8,.9,1>][0.2 color rgb <.2,.4,1>] [1.0 color
blue 1] }
}
}
light_source
{
0*x // light's position (translated below)
color red 1.0 green 1.0 blue 1.0 // light's color
translate <-30, 30, -30>
}
light_source
{
0*x // light's position (translated below)
color red 1.0 green 1.0 blue 1.0 // light's color
translate <30, 0, 100>
}
// ----------------------------------------
plane { y, -20 pigment {color rgb <0.7,0.5,0.3>}}
difference {
sphere { 0.0, 20}
cylinder {<0,0,-20>,<0,0,20>,7}
// ------------------------------------------------
problem ... !?
difference {
box{<4,-2,18>,<7,-5,-18>}
cylinder{<7,-5,19>,<7,-5,-19> 2}
}
difference {
cylinder {<0,0,-16>,<0,0,-21>,9 }
torus{9,2 rotate x*90 translate <0,0,-16> }
}
difference {
cylinder {<0,0,16>,<0,0,21>,9 }
torus{9,2 rotate x*90 translate <0,0,16> }
}
difference {
difference {
cylinder {<0,5,0>,<0,-5,0>,20}
box{<-20,7,-20>,<0,-7,20>}
}
union{
torus{17.5,2 rotate y*90 translate y*5}
torus{17.5,2 rotate y*90 translate
y*(-5)}
cylinder {<0,5,0>,<0,3,0>,17.5}
cylinder {<0,-5,0>,<0,-3,0>,17.5}
}
}
}
texture {pigment {bozo color_map {[1 color rgb <0,.2,1>][0 color
rgb<0,.5,1.5>]}} finish{reflection .1 specular.5 phong.5}}
translate <0,0,50>}
Post a reply to this message
|
|