Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] How to implement headlight?


Chronological Thread 
  • From: Steven Parker <sparker@cs.utah.edu>
  • To: Abe Stephens <abe@sci.utah.edu>
  • Cc: "'manta@sci.utah.edu'" <manta@sci.utah.edu>
  • Subject: Re: [MANTA] How to implement headlight?
  • Date: Tue, 31 May 2005 19:25:59 -0600

This is a dark alley. I had put the getCenter() method in as a placeholder, but something else should be done.

I will point out that shadow rays do not need to be cast for primary rays and headlights. That should be thought through as well.

Steve


On May 31, 2005, at 7:13 PM, Abe Stephens wrote:

Hi,
I'd like to implement a headlight, but it looks like the current Light interface does not have any context information during rendering. I was hoping that the getCenter() method could look into some sort of context object and return the camera position (or an offset from the camera position) however getCenter() doesn't take any arguments (also I'm not sure how a soft-shadow-light would use a per thread random number generator without access to some context. Next I thought maybe that there was another method that was called per frame, but it doesn't look like this is the case.

Any idea how to accomplish this with the framework as it stands?

Abe








Archive powered by MHonArc 2.6.16.

Top of page