POV-Ray : Newsgroups : povray.newusers : Strange Error : Re: Strange Error Server Time
5 Nov 2024 01:21:45 EST (-0500)
  Re: Strange Error  
From: Florian Brucker
Date: 21 Aug 2002 13:35:43
Message: <3d63cf6f$1@news.povray.org>
hey!

> Your code doesn't check if trace() actually hits
> an object.

well, i think it does: the following lines (line number 178):

<code>
#if
(vlength(trace(Environment,Pos,V,Normal)-Pos)-vlength(V*Seconds_Per_Frame)<P
article_Radius)
</code>
(one line)
checks the distance of the particle to the environment, wether a collision
has been detected or not.

the next line (179)
<code>
#if (vdot(Normal,Normal)>0)
</code>
checks if Normal has the length 0. Cause  vdot(Normal,Normal) =
|Normal|*|Normal|*cos(Angle)

|Normal|*|Normal|. I could have used
the vlength()-function, but i think it's still an old piece my of code (just
forgot to change it)

one moment, i'm rendering again with vlength(Normal)>0... ok, no error. i
thought i had it,
but i changed just some unimportant things with the environment and - a new
error occured.

i don't think that it has something to do with the mathematics or the
system, because i keep
on getting these strange error-messages:

in the state-line down in the pov-window (by the way, er 3.5, WinME), pov
says:
"Parse Error: Expected 'Object or Directive', undeclared Identifier 're'
found instead"

sounds ok. also the message window shows

<messages>
Rendering frame 10 of 99


File: Particles.inc  Line: 238
#declare Lifetime[33] = 8.7907;

#re <----ERROR

Parse Error: Expected 'object or directive', undeclared identifier 're'
found instead


Returned from renderer with error status
</messages>

the preoblem is the "#re". it does not exist. nowhere. not in my code!. and
there is no macro which could
produce it. pov opens the "particles.inc" (the file where the
system-information is stored) and points out, that the
following line (marked with ***) contains the error:

<particles.inc>
#declare Lifetime[77] = 4.28675;
#declare Particles[78][0] = <1.07477,1.80695,1.69491> ;
#declare Particles[78][1] = <0,7.24546,-7.97263> ;
#declare Lifetime[78] = 6.38999;
#declare Particles[79][0] = <-1.14604,2.50891,1.26264> ;  ***
#declare Particles[79][1] = <0,-9.89509,-1.93041> ;
#declare Lifetime[79] = 4.31252;
#declare Particles[80][0] = <0.504877,1.72762,1.83567> ;
#declare Particles[80][1] = <0,7.41347,-7.90948> ;
#declare Lifetime[80] = 7.59661;
</particles.inc>

but this line is in no way different from all the other lines in that file,
it's ok and - has nothing to do with "#re". i can't find out where pov gets
this "#re" from.

you said you couldn't make my file work. do you get an error like this too,
or is there something else?

thanks for your help,
florian


Post a reply to this message

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