POV-Ray : Newsgroups : povray.advanced-users : output an octree file : Re: output an octree file Server Time
28 Sep 2024 18:56:08 EDT (-0400)
  Re: output an octree file  
From: Jim Holsenback
Date: 10 Aug 2010 18:55:58
Message: <4c61d8fe$1@news.povray.org>
On 08/10/2010 07:16 PM, Jim Holsenback wrote:
> 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

probably should also mention ... requires at LEAST v3.7.beta.32


Post a reply to this message

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