POV-Ray : Newsgroups : povray.general : Access Violation Server Time
17 Nov 2024 21:22:19 EST (-0500)
  Access Violation (Message 1 to 4 of 4)  
From: Florian Brucker
Subject: Access Violation
Date: 11 Jan 2003 08:56:04
Message: <3e202274@news.povray.org>
hey guys!

this piece of code keeps on making my pov abort rendering with an access
violation exception. restarting povray and rebooting the whole system did
not change anything.

pov also complains about unused bounding boxes, but i can't find them?

can anybody verify this behaviour?

my system:
athlon 600
256 MB SDRAM
WinME
official POV-Ray 3.5


thanks,
florian

==========================================
background { rgb 1 }

camera {
 location <80,20,-80>
 look_at 0
}



global_settings {
 max_trace_level 256
}

light_source { <1,1,-1>*1000 rgb 1 }

#declare MyFuncX = function (time) {
cos((time+5)/10*2*pi)*10+time*time*time*0.3 }     //X-Coordinates
#declare MyFuncY = function (time) { sin((time+5)/10*4*pi)*10-time*time }
//Y-Coordinates
#declare MyFuncZ = function (time) {
sin((time+5)/10*6*pi)*10-cos((time+5)/10*2*pi)*30 }    //Z-Coordinates
#declare MyFuncR = function (time) {
sin((time+5)*pi)+cos((time+5)*5*pi)+sqrt(time) }     //Radius

#macro MyMacroP(time) //Pigment
 leopard color_map { [0.25  rgb 1][0.25
rgb<1-(time+5)/10,sin((time+5)/10*pi),(time+5)/10>] } scale 0.8
#end


#declare EvalStart = -5;
#declare EvalEnd = 5;
#declare Steps = 1000;
#declare Delta = 1/Steps*abs(EvalEnd-EvalStart);


union {
 #local a = 0;

 #while (a<Steps-1)
  #declare P1 =
<MyFuncX(EvalStart+a*Delta),MyFuncY(EvalStart+a*Delta),MyFuncZ(EvalStart+a*D
elta)>;
  #declare P2 =
<MyFuncX(EvalStart+(a+1)*Delta),MyFuncY(EvalStart+(a+1)*Delta),MyFuncZ(EvalS
tart+(a+1)*Delta)>;
  #declare Radius = MyFuncR(EvalStart+(a+0.5)*Delta);

  union {
   sphere { P1,Radius }
   sphere { P2,Radius }

   cylinder { P1,P2,Radius }

   pigment {  MyMacroP(EvalStart+(a+0.5)*Delta) }
   finish { phong 1 ambient 0.5 }
  }

  #local a = a + 1;
 #end

 translate
y*(-MyFuncY(EvalStart)+0.5*abs(MyFuncY(EvalStart)-MyFuncY(EvalEnd)))
 //translate y*80
}
==========================================


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Access Violation
Date: 11 Jan 2003 09:05:22
Message: <3e2024a2@news.povray.org>
In article <3e202274@news.povray.org> , "Florian Brucker" 
<tor### [at] torfboldcom> wrote:

> this piece of code keeps on making my pov abort rendering with an access
> violation exception. restarting povray and rebooting the whole system did
> not change anything.
>
> pov also complains about unused bounding boxes, but i can't find them?
>
> can anybody verify this behaviour?

How about a _minimal_ scene?

    Thorsten


Post a reply to this message

From: Florian Brucker
Subject: Re: Access Violation
Date: 11 Jan 2003 09:07:03
Message: <3e202507@news.povray.org>
hey guys

me again ;-)

ok, i now know the reason for the error: i was calling sqrt() with a
negative value. anyway, imho it would be way better if pov would would
complain about this instead of aborting the render with this rather
irritating message....

greetings:florian


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Access Violation
Date: 11 Jan 2003 11:24:23
Message: <3e204537$1@news.povray.org>
In article <3e202507@news.povray.org> , "Florian Brucker" 
<tor### [at] torfboldcom> wrote:

> ok, i now know the reason for the error: i was calling sqrt() with a
> negative value. anyway, imho it would be way better if pov would would
> complain about this instead of aborting the render with this rather
> irritating message....

Well, your scene works without problems for me, so...

    Thorsten


Post a reply to this message

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