POV-Ray : Newsgroups : povray.programming : trace in function : Re: trace in function Server Time
28 Jul 2024 12:28:45 EDT (-0400)
  Re: trace in function  
From: ingo
Date: 11 Sep 2001 03:00:21
Message: <Xns91195B9CF3494seed7@povray.org>
in news:slr### [at] fwicom Ron Parker wrote:

> Unfortunately, that doesn't work.  By the time a function gets
> parsed, the #declared object you passed to trace() has been
> returned to the bit-bucket. This would be a major change.
> 

And what if it just works with the object that currently is ray-traced, 
not with a declared object?

sphere {
  0,1
  pigment {
    function {
      select(trace(...), ..., ...)
    }
    colour_map {
    	...
    }
  }
}

Gives some result on the first object-ray intersection that can be used 
in the pigment calculation

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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