POV-Ray : Newsgroups : povray.advanced-users : Animations and memory : Re: Animations and memory Server Time
15 May 2024 03:19:34 EDT (-0400)
  Re: Animations and memory  
From: clipka
Date: 30 Aug 2015 13:03:01
Message: <55e33745$1@news.povray.org>
Am 30.08.2015 um 07:20 schrieb Mike Horvath:

>>      my_scene.pov:
>>      -------------------------
>>        #if((frame_number = initial_frame) | !defined(MyHugeObject))
>>        #include "my_huge_object.inc"
>>        #end
>>
>>        object { MyHugeObject }
>>
>>        #if(frame_number = final_frame)
>>        #undef MyHugeObject
>>        #end
>>      -------------------------
>>
>>      my_huge_object.pov:
>>      -------------------------
>>        #persistent MyHugeObject = union {
>>        ...
>>        }
>>      -------------------------
>>
> 
> How will this work for highly nested objects, like LDraw models? Do I
> make each and every primitive persistent?

Nope - that's the beauty of it: You just make the "root" object
persistent, and it remembers the whole hierarchy.


Post a reply to this message

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