POV-Ray : Newsgroups : povray.advanced-users : Problem with multiple macro calls : Re: Problem with multiple macro calls Server Time
24 Apr 2024 04:17:39 EDT (-0400)
  Re: Problem with multiple macro calls  
From: Alain Martel
Date: 7 Apr 2022 10:47:04
Message: <624ef968$1@news.povray.org>
Le 2022-04-06 à 12:42, William F Pokorny a écrit :
> On 4/6/22 12:11, Juergen wrote:
>> What is wrong there to display the first explosion correctly?
> 
> My guess is that the first explosion is inside the non-hollow dummy sphere:
> 
>    #else
>      sphere { 1E-10, 1E10 } // dummy
>    #end // if "sichtbar"
> 
> of the second - until the second explosion goes off.
> 
> Aside: I don't think there is any reason that dummy sphere to be what it 
> is. As another guess something like:
> 
> 
>    #else
>      sphere { -1E10, 1E-6 } // dummy
>    #end // if "sichtbar"
> 
> would server better. It's likely there just to prevent parse errors from 
> an empty union.
> 
> Bill P.

Normally, a dummy object is made unobtrusive, so, located far away and tiny.
Even sphere{0, 0} or box{0, 0} can work.
Here, the original dummy object is extremely large.
Normally used to prevent warnings about unions with single objects and 
errors from empty unions.


Post a reply to this message

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