POV-Ray : Newsgroups : povray.general : Null or empty object / mesh : Re: Null or empty object / mesh Server Time
1 Jul 2024 04:19:17 EDT (-0400)
  Re: Null or empty object / mesh  
From: Alain
Date: 11 Apr 2017 17:22:41
Message: <58ed4921@news.povray.org>

>
>>> Thanks, I made it a 0 radius sphere with all suggested attributes
>>
>> Is there another use for a null than to keep track of a location after
>> some transformations and/or linking other objects to that location? And
>> isn't that something that can much easier be done in POV-Ray by
>> declaring and vtransforming a vector?
>>
>> I'm just curious why you would need a null/empty object in POV-Ray.
>
> I have a use case just now. A series of scenes (animations of particle
> simulation) where particles have pseudo-random texture, but are always declared
> sequentially, thus the pseudo-random texture will be the same. As a particle
> might disappear during the simulation, creating hole in the sequence, I need to
> call the texture procedure (using null object) so that the state of the
> pseudo-random generator is advanced and subsequent particles get the same
> pseudo-random texture parameters as in preceding steps.
>
>
>
>
Well, a zero radius sphere prety well IS a null object.
Just push that disappeared particle far behing the camera, with a zero 
momentum, or give it a zero radius, and still give it it's texture.


Post a reply to this message

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