Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] Displaying Lights in Manta


Chronological Thread 
  • From: Carson Brownlee <brownlee@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: Re: [Manta] Displaying Lights in Manta
  • Date: Sat, 23 Feb 2008 06:35:27 -0700

Not wanting to add a flag to every code segment that generates shadowrays as well as create a custom material, I just created a custom primitive that only intersects eye rays (you can't see the lights in reflections... but probably not a huge issue). The problem is that I create spheres for the lights, but when toggled off I would like to delete them instead of having a memory leak. Rather than bloating RTRT.cc with more code, is there a callback that gets called outside the render loop where I can safely delete these objects?
thanks,
Carson


On Dec 17, 2007, at 5:30 PM, Steven G. Parker wrote:

Alternatively, you could add a flag for shadow rays in the raypacket (or possibly a shape) and then write an object that does not call intersect on the light group for shadow rays.

Steve


On Dec 17, 2007, at 5:10 PM, Austin Robison wrote:

You could do it with a custom material on the spheres surrounding the lights in conjunction with attenuating shadows (which will be fixed as soon as I have real Internet access and can commit the changes). Just have the new materials attenuateShadows call do nothing (but defined so it overrides the default implementation).

~Austin

On Dec 17, 2007, at 6:39 PM, Abe Stephens <abe@sci.utah.edu> wrote:


It's easy to add a bunch of spheres to the scene at light positions (something similar is done for camera path control points, it's all application code). I'm not sure if you could add spheres enclosing the lights, and then prevent the spheres from casting shadows across the whole scene.

Abe


On Dec 17, 2007, at 4:32 PM, James Bigler wrote:

Do you plan on doing it?

I could give you pointers on where to start looking around, but I don't have time to implement that feature.

Once you have a working prototype we can evaluate your solution before it goes main line.

James

J. Davison de St. Germain wrote:
Hi,
I'd like to be able to see the location of lights (probably represented by spheres) in scenes in Manta. Is there any reason why this shouldn't be added to the system?
    Thanks,
              Dav





Archive powered by MHonArc 2.6.16.

Top of page