On 08/10/2010 04:58 PM, Christian Froeschlin wrote:
> jazzman wrote:
>
>> I was wondering if someone knows if there's an option to output an
>> octree of the
>> rendered scene from POV-ray. All I need is to know for each cell in a
>> 3d grid of
>> the scene whether it's occupied or not.
>
> I'm not sure if the internal data built during the render
> is suitable for your needs, but even if so you'd need to
> modify the source code of POV-Ray to get at it.
>
> Alternatively, you can divide the scene into cubes in SDL
> and use the trace function to check if they're empty or not
> (within some error margin). In 3.7 you could even write
> the data out in a binary format (such as df3).
see also this:
http://wiki.povray.org/content/Documentation:Reference_Section_2.5#The_.23write_Directive
Post a reply to this message
|