Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Re: Re: Re: Support for photon mapping


Chronological Thread 
  • From: Carson Brownlee < >
  • To:
  • Subject: [Manta] Re: Re: Re: Re: Support for photon mapping
  • Date: Wed, 29 Sep 2010 16:26:24 -0600

not elegantly.  I believe I just had a flag and a static photon map in
the material which and then build on calls to shade.  A better solution
would probably be to add the photon map to Scene and then implement the
photonmap build through a parallel callback but at the time I was just
getting something working.

Carson

On Wed, 2010-09-29 at 16:03 -0600, James Bigler wrote:
> Carson, how did you do the precomputation step in manta?
> 
> Daniel, if you want a simple kd-tree build for photons, there's one
> you can poach from the progressivePhotonMapper sample in OptiX.  It's
> a CPU based kd-tree build, so it should be fairly straightforward to
> adapt to your needs.
> 
> In the past, I've also used the code found in Wann Jensen's photon
> mapping book to do the photon kd-tree and lookup.
> 
> James
> 
> On Wed, Sep 29, 2010 at 3:32 PM, Carson Brownlee
> < >
>  wrote:
>         I implemented a very crude photon map in Manta a year ago for
>         a project
>         which kind of fizzled out.  It was pretty simple to implement,
>         especially if you are familiar with Manta.  I don't see it in
>         my project
>         directory so I might have accidentally deleted it though.  I
>         think I
>         just ended up making a custom material type and building the
>         photon map
>         as a pre-computation step using a flag that tells the material
>         to bounce
>         the ray and add it to a kdtree.  If I remember correctly there
>         is
>         already a random sampling for the lights; I think I used that
>         function
>         to generate rays from the light sources.  There is a BRDF
>         class already.
>         I think the main things were building my own basic kdtree for
>         sample
>         lookup (I don't think I was easily able to adapt the existing
>         kd-tree
>         for storing samples for k-nearest but I could be remembering
>         that wrong
>         or was just being lazy) and filtering.
>         
>         what is this engine for?
>         
>         Carson
>         
>         
>         On Wed, 2010-09-29 at 10:03 -0600, James Bigler wrote:
>         > I'm not sure how to get Manta to switch between different
>         Cameras, but
>         > you might be able to implement the photon pass as a camera
>         and
>         > material set, build your photon map, and then use another
>         camera and
>         > material set for the gather pass.
>         >
>         > As an alternative to Manta, NVIDIA's OptiX
>         > ( http://developer.nvidia.com/object/optix-home.html ;) has a
>         > progressive photon mapping sample:
>         > (windows one click samples:
>         > http://developer.nvidia.com/object/optix-examples.html).
>          OptiX
>         > requires a CUDA capable device, but it should work on
>         > Windows/Linux/Mac.  The SDK has precompiled binaries for
>         each
>         > platform.
>         >
>         > James
>         >
>         > On Wed, Sep 29, 2010 at 9:49 AM, 
> < >
>         wrote:
>         >
>         >         Hello,
>         >
>         >         I am relatively new to ray tracing and it was
>         suggested that I
>         >         consider Manta
>         >         for my engine development.  I have been impressed by
>         the
>         >         architecture and
>         >         features but was curious whether photon mapping (or
>         other
>         >         forward ray tracing
>         >         concepts) had been incorporated into the existing
>         Manta
>         >         release.  A post from
>         >         March 17, 2010 suggests that forward ray tracing
>         techniques
>         >         would still need to
>         >         be developed.  Is this accurate?
>         >
>         >
>         >                Off the top of my head, Manta has a simple
>         (brute
>         >         force) path tracer,
>         >         it can do soft shadows (outside of the path tracer
>         as well),
>         >         and also ambient
>         >         occlusion. And of course if it doesn't have
>         something you can
>         >         add it. I am not
>         >         aware of Manta currently having bidirectional path
>         tracing,
>         >         metropolis light
>         >         transport, photon mapping, or any of the other fancy
>         GI stuff.
>         >                Thiago
>         >
>         >         Thank you,
>         >         Daniel
>         >
>         
>         
> 





Archive powered by MHonArc 2.6.16.

Top of page