|
![](/i/fill.gif) |
I have attached the StereoCamera macro as well as the sample scene file.
A couple of notes about the use of the macro:
The scene objects need to be declared and passed to the macro. This is
because the macro applies the no_image attribute, it also has to subtract a
minicule sphere at the camera location. Without subtracting the sphere, if
the camera is inside an object (hollow or not) fresnel reflection does not
seem to work properly.
The LO and LA variables should work like the location and look_at parameters
of the camera object. I could not get Reorient_trans macro in
transforms.inc to work properly and had to make my own. As far as I can
tell there are no problems.
The width of the image is automatically scaled so the number of views
selected fits horizontally in the output image, the height of the image is
scaled proportionally to this to keep the correct aspect ratio, to get more
height on the scene, increase the height of the output image.
This macro was written for POV 3.5, I'm not sure if it works for any other
version.
Let me know of any problems or comments.
Enjoy
-tgq
--
camera{location z*13look_at 0}light_source{15 15looks_like{sphere{0 10
}pigment{rgb 1}finish{ambient 15}}}union{torus{3,0.5rotate x*90}cone{y
*4,.5,-y*8,0}cone{-x*4,.5,x*8,0}pigment{rgb<.7,.6,.4>}finish{ambient 0
diffuse 0reflection{1fresnel on metallic 1}}interior{ior 25}rotate 15}
plane{y,-7pigment{checker rgb 0rgb 1scale 4}finish{diffuse.1}}// TGQ
Post a reply to this message
Attachments:
Download 'StereoSample.pov.txt' (2 KB)
Download 'StereoCamera.mcr.txt' (4 KB)
|
![](/i/fill.gif) |