POV-Ray : Newsgroups : povray.general : Trace macro workings with isosurfaces - Pov 3.5 : Re: Trace macro workings with isosurfaces - Pov 3.5 Server Time
3 Aug 2024 04:18:35 EDT (-0400)
  Re: Trace macro workings with isosurfaces - Pov 3.5  
From: Stefan Viljoen
Date: 22 May 2004 09:29:00
Message: <40af5572@news.povray.org>
Christoph Hormann wrote:

> Stefan Viljoen
>> 
>> object
>> {
>>         Ground
>>         rotate <90,0,45>
>>         translate <50,-20,0>
>> }
>> 
>> #declare loc = trace(Ground,<0,0,5>,-z);
>> 
>> sphere
>> {
>>         <0,0,0>,0.25
>>         translate loc
>> }
> 
> What did you expect this to result in?  If you think the sphere will be
> placed on the surface of the object you obviously have misunderstood
> something about how transforms work.  You will either have to remove the
> "rotate <90,0,45> translate <50,-20,0>" from the object or add it to the
> sphere as well.

Hi Christoph!

I expected it to result in the sphere placed correctly on the surface.
Obivously I made a mistake. I guess I misunderstood the docs... from
reading them it said that the trace() macro will return the place where a
the ray, shot from the coordinate given, intersects the given object's
surface - I thought of this in terms of a "viewing ray" (?) i. e. that will
return a surface it intersects, no matter how far away or in what
orientation that surface is.

Obviously I was wrong. Thanks for the correction!
 
Regards,
-- 
Stefan Viljoen
Software Support Technician
Polar Design Solutions


Post a reply to this message

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