POV-Ray : Newsgroups : povray.general : output in 2d+Z : Re: output in 2d+Z Server Time
31 Jul 2024 10:16:14 EDT (-0400)
  Re: output in 2d+Z  
From: Alain
Date: 9 Apr 2007 14:13:44
Message: <461a8258$1@news.povray.org>
Oren nous apporta ses lumieres en ce 09-04-2007 13:53:
> Hello,

> i want to output PovRay images to be displayed on a Philips 3D display,
> which requires its input as a combo of plain 2D bitmap and a separate z
> bitmap.

> Any tips on how to direct PovRay to output on the format i need?

> Thanks in advance.

> Oren


A possible solution:
First: do a normal render of your scene.
Second: Remove ALL textures and pigment from all objects. Bind the whole in a 
large union. Give that union a gradient pigment going from black (for the 
farthest elements) to white. Scale the gradient so that it don't repeat itself.
It's easier to leave the camera along the Z axis and use gradient z.
A trick: create the scene in an union, and rotate that union instead of mooving 
the camera.
Use conditional statements for your textures and pigments with an apropriate 
variable. You can then use a 2 frames animation, frame 1 use individual 
textures, frame 2 use the gradient.
Use #if(frame_number =1)pigment{......}#end for the various objects.
Use #if(frame_number =2)pigment{gradient z scale SceneZExtend}#end before 
closing the union.
Add "+kff2" on the command line.

-- 
Alain
-------------------------------------------------
The tree of liberty must be refreshed from time to time with the blood of
patriots and tyrants.
Thomas Jefferson


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.