POV-Ray : Newsgroups : povray.newusers : Strange Error : Re: Strange Error Server Time
5 Nov 2024 01:21:39 EST (-0500)
  Re: Strange Error  
From: Tim Nikias
Date: 21 Aug 2002 12:05:00
Message: <3d63ba2c$1@news.povray.org>
Hm. Your code doesn't check if trace() actually hits
an object. If it does, a normal vector with length != 0
would be returned. It seems to me, as soon as your
particles hit the floor (or should hit it), your system
crashes, cause it tries to use an unspecified value.

I'm not too sure about the mathematics and programming
issues, Thorsten is more into this kinda stuff.

Still. Your system doesn't check if a particle is inside
your environment, or perhaps you get that error when
a particle is too close to the ground plane to get a
rebounce-position.
I think it has something to do with that, but I have not
got the time to actually play with your algorithms properly
to make it work, but thats my suggestion: check if the
normal vector returned with trace() is a unit-length
vector, otherwise, do something with the particle, but
don't base your calculations on trace() in that case.

Hm. Bad writing style. Hope you understand what I mean.

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> May it be that loading an include-file in a
> macro makes the data local to the macro,
> and it is lost when macro finished?
>
> I don't get the point of creating a macro which
> actually only includes a file. Its like making
> three jumps in circle rather than make a simple
> step backwards...
>
> I'm still looking into the code...
>
> --
> Tim Nikias
> Homepage: http://www.digitaltwilight.de/no_lights/index.html
> Email: Tim### [at] gmxde
>
> > hey guys.
> >
> > i'm just playing around with the particle system of Jonathan Rafael
> Ghiglia.
> > i know built up a completely new one (far away from being perfect *g*).
> >
> > here's the problem:
> > i wanted to create an animation to see how my experiments work. but
> > everytime i run the code, i get an error. povray complains a certain
line
> in
> > an auto-generated-include-file where the information about the particles
> is
> > stored. but i can't figure out what's wrong with it. the strange thing
is,
> > that the message window shows the line with the error - but this line
does
> > not exist like this.
> >
> > it's all a bit complicated to explain, so i posted all the code to
p.b.s.
> i
> > would be glad if anyone could find the time to have a look on it.
> >
> > thanks in advance,
> > florian
> > --
> > [hp http://www.florianbrucker.de] [icq 149073157]
> >
> >
> >
> >
> >
> >
>
>


Post a reply to this message

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