POV-Ray : Newsgroups : povray.unofficial.patches : Patch enhancement request - Trace keyword Server Time
2 Sep 2024 06:17:03 EDT (-0400)
  Patch enhancement request - Trace keyword (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: SamuelT
Subject: Re: Stacking spheres - was Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 16:56:13
Message: <395D0A4D.CE2A08A7@aol.com>
Chris Huff wrote:

> It might work better if you added the objects to an array intead of
> using a deeply nested union.

Darn, haven't learned arrays yet. What would I do with the array?


> Oh, and why did you use "#object"?

I thought I had to encase Obj inside it....

~Samuel


Post a reply to this message

From: Ron Parker
Subject: Re: Stacking spheres - was Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 16:59:48
Message: <slrn8lq388.1vi.ron.parker@linux.parkerr.fwi.com>
On Fri, 30 Jun 2000 13:59:58 -0700, SamuelT wrote:
>Chris Huff wrote:
>
>> It might work better if you added the objects to an array intead of
>> using a deeply nested union.
>
>Darn, haven't learned arrays yet. What would I do with the array?

Put your spheres in it and loop over the ones you have so far looking for
a hit with trace().  Then take the closest hit you found.  The nested unions
are probably faster, if you can get them to work.

>> Oh, and why did you use "#object"?
>
>I thought I had to encase Obj inside it....

You're looking for "object" rather than "#object".  "#object" is bad syntax,
but the parser treats it like "object" for now.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: SamuelT
Subject: Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 17:04:24
Message: <395D0C38.B878F3E4@aol.com>
Worse, the whole system freezes. I'm currently using a Macintosh for this.

Ron Parker wrote:

> Interesting.  Does the behaviour persist if you use #declare instead of
> #local?


Post a reply to this message

From: SamuelT
Subject: Re: Stacking spheres - was Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 17:09:42
Message: <395D0D75.71EB3702@aol.com>
Ron Parker wrote:

> Put your spheres in it and loop over the ones you have so far looking for
> a hit with trace().  Then take the closest hit you found.  The nested unions
> are probably faster, if you can get them to work.

Then I'll try using union when I get home, since that computer is a PC.


> >> Oh, and why did you use "#object"?
> >
> >I thought I had to encase Obj inside it....
>
> You're looking for "object" rather than "#object".  "#object" is bad syntax,
> but the parser treats it like "object" for now.

Okay.

~Samuel


Post a reply to this message

From: Bob Hughes
Subject: Re: Patch enhancement request - Trace keyword
Date: 30 Jun 2000 20:24:21
Message: <395d3a35@news.povray.org>
"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] linuxparkerrfwicom...
| >
| >> What does #object do?
| >
| >It acts the same as "object" as far as I can tell...things like "#box"
| >also work. It works in the official version too, I guess it is just a
| >strange parser bug.
|
| I looked it up.  The tokenizer just ungets anything that doesn't belong
| after a # without raising any eyebrows.  You can even say
|
| #declare #foo = 12;
| #declare #bar = foo;
|
| without any problems.  Nice for obfuscation, but not guaranteed to stay
| that way.

Neither here nor there but... CodeMax syntax highlighting sees keywords
without the "#" and yet POV-Ray doesn't parse them okay; as expected of
course.

Bob


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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