POV-Ray : Newsgroups : povray.unofficial.patches : Odd result with MegaPov 0.5 : Re: Odd result with MegaPov 0.5 Server Time
2 Sep 2024 10:13:33 EDT (-0400)
  Re: Odd result with MegaPov 0.5  
From: Dejan D  M  Milosavljevic
Date: 9 Jun 2000 07:25:25
Message: <3940d425@news.povray.org>
file: discs.c
Original:
 Line 968. lo[ Z ] = min( lo[ Y ], v[ Z ] );  hi[ Z ] = max( hi[ Y ],
v[ Z ] );

Fixed:
 Line 968. lo[ Z ] = min( lo[ Z ], v[ Z ] );  hi[ Z ] = max( hi[ Z ],
v[ Z ] );


My conclusion:

1. Two macros are need:
  #define VMin(a,b,c)                       \
   {                                        \
    (a)[ X ] = min( (b)[ X ], (c)[ X ] );   \
    (a)[ Y ] = min( (b)[ Y ], (c)[ Y ] );   \
    (a)[ Z ] = min( (b)[ Z ], (c)[ Z ] );   \
   }

  #define VMax(a,b,c)
   {                                        \
    (a)[ X ] = max( (b)[ X ], (c)[ X ] );   \
    (a)[ Y ] = max( (b)[ Y ], (c)[ Y ] );   \
    (a)[ Z ] = max( (b)[ Z ], (c)[ Z ] );   \
   }


--
***************************
      dmi### [at] xoommailcom
http://members.xoom.com/dmilos/
***************************
Nathan Kopp <Nat### [at] Koppcom> wrote in message
news:393295db@news.povray.org...
>
> Nathan Kopp <Nat### [at] Koppcom> wrote...
> >
> > kane <ann### [at] mindspringcom> wrote...
> > >
> > >   Yes, I've had a similar problem with the lensflare or lenseffects. I
> > don't
> > > understand it, with 0.5 its gone, 0.4 its there.  Hmmm.
> > >           Kane
> >
> > That's caused by a bug in the fast disc patch, which will be removed.
>
> Or, if anyone wants to find a fix for this so we can keep the fast disc
> patch, go ahead!
>
> -Nathan
>
>


Post a reply to this message

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