POV-Ray : Newsgroups : povray.unofficial.patches : Bug found in eval_pigment - MegaPOV .5 Server Time
1 Nov 2024 19:13:49 EDT (-0400)
  Bug found in eval_pigment - MegaPOV .5 (Message 1 to 3 of 3)  
From: SamuelT
Subject: Bug found in eval_pigment - MegaPOV .5
Date: 9 Jun 2000 19:37:06
Message: <39418042.C591A24F@aol.com>
MegaPOV .5

It appears that if you #declare a pigment, and then try to put it into
the eval_pigment block, POV-Ray will force you to quit, due to an error.
This will cause POV-Ray to have an error:

#declare Pgmnt=pigment{ granite scale 10 }
#declare VectSample = eval_pigment( Pgmnt, <0,0,0> );

But this works:

#declare Pgmnt=pigment{ granite scale 10 color_map{[0 rgb 0][1 rgb 1]}}
#declare VectSample = eval_pigment( Pgmnt, <0,0,0> );

It appears you have to add a color_map to the #declared pigment to avoid
problems. I believe this to be a problem on the Macintosh version of
MegaPOV as well, since I was having problems earlier with it, but I
didn't know what was causing the errors.

--
Samuel Benge

E-Mail: STB### [at] aolcom

Visit my isosurface tutorial at http://members.aol.com/stbenge


Post a reply to this message

From: Warp
Subject: Re: Bug found in eval_pigment - MegaPOV .5
Date: 10 Jun 2000 15:39:18
Message: <39429965@news.povray.org>
I can confirm this bug. It causes a segmentation fault in this Solaris
compile of MegaPov.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: smellenbergh
Subject: Buf in eval_pigment fixed [ was: Bug found in eval_pigment - MegaPOV .5]
Date: 11 Jun 2000 13:44:20
Message: <1ec2u28.1fib7262kp1dkN%smellenbergh@skynet.be>
SamuelT <STB### [at] aolcom> wrote:

> MegaPOV .5
> 
> It appears that if you #declare a pigment, and then try to put it into
> the eval_pigment block, POV-Ray will force you to quit, due to an error.
Don't quite understand how it makes you quit POV-Ray (MegaPOV). Perhaps
this is true for other platforms but the mac version simply gives an
error and lets you continue to work.

> This will cause POV-Ray to have an error:

[...]
This is indeed a bug and is fixed now for the next release.

Smellenbergh


-- 
e-mail:sme### [at] skynetbe

http://users.skynet.be/smellenbergh


Post a reply to this message

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