|
![](/i/fill.gif) |
I know. Bear with me.
I started out on a small povray project.
It wasn't going at all well well, despite me being pretty familiar with
cartesiain geometry. I googled. I read. I looked at many tutorials.
I simplified what I was doing.
A lot.
In the end I realised my problem; despite all the documentation:
http://www.povray.org/documentation/view/3.6.0/15/
stating that +x is to the right, I'm getting it on the left.
My limiting case is attached (axes.pov)
#macro axes()
cylinder{<0,0,0>,<100,0,0>, .05
pigment { color rgbf <0.0, 0.0, 1.0, 0.0>} // bright blue is +X
}
cylinder{<0,0,0>,<-100,0,0>, .05
pigment { color rgbf <0.0, 0.0, 0.3, 0.0>} // blue is X
}
cylinder{<0,0,0>,<0,100,0>, .05
pigment { color rgbf <0.0, 1.0, 0.0, 0.0>} // bright green is +Y
}
cylinder{<0,0,0>,<0,-100,0>, .05
pigment { color rgbf <0.0, 0.3, 0.0, 0.0>} // green is Y
}
cylinder{<0,0,0>,<0,0,100>, .05
pigment { color rgbf <1.0, 0.0, 0.0, 0.0>} // bright red is +Z
}
cylinder{<0,0,0>,<0,0,-100>, .05
pigment { color rgbf <0.3, 0.0, 0.0, 0.0>} // red is Z
}
#end
camera {
location <100, 100, -120> // Where the Camera is located <x,y,z>
look_at <0, 0, 0> // Where is the camera is looking <x,y,z>
direction <0, 400/25.4, 0> // 400mm lens
}
light_source {
<10, 15, -20> // Location of the light
color rgbf <2.0, 2.0, 2.0, 0.0> // The RGB Color of the light (White)
// Including transparency factor (f)
}
axes()
I ran as:
povray -Iaxes.pov +V +D0 +P +X100 +FP16 +Oout.ppm -H600 -W800
Here's the result:
http://i48.photobucket.com/albums/f234/bugbear33/misc/out.png
Bright blue ON THE LEFT.
Version:
Persistence of Vision(tm) Ray Tracer Version 3.6.1 (g++ 4.6.0 @
x86_64-unknown-linux-gnu)
I assume I'm doing something so inept and *unthinkable* it will be hard for you
all to guess.
Help gratefully accepted.
BugBear
Post a reply to this message
|
![](/i/fill.gif) |