Re: [Algorithms] volumetric spotlight
Brought to you by:
vexxed72
From: Jeff R. <je...@8m...> - 2010-03-29 01:57:07
|
OP here, thought I'd share my results. Thanks to Miles in particular for being helpful. http://i44.tinypic.com/2h4algx.jpg Determined the distance through the fog cone by tracing the eye vector to the far side of the cone, then clipping that distance against the depth buffer. With the entry and exit points inside the volume, it turned out to be fairly easy to evaluate the falloff integral implicitly. All told compiles into about 50 shader instructions, one texture lookup, and no overdraw. I might be able to squeeze the shader down a little more, but that will come later. Thanks guys, Jeff On Sun, Mar 28, 2010 at 9:18 AM, Bert Peers <be...@bp...> wrote: > Darren Grant schreef: > > > The most complex approach is to write a ray-casting shader that > > integrates over distance travelled by each eye ray through the umbra > > volume. It is hard to get the results to overlap and intersect correctly > > with the rest of the scene unless you have some sort of unified > > rendering architecture built around ray-casting. Very pretty if you get > > it working, but very difficult to deploy without limitations coming back > > to get you later. > > I'd give that a try too. There's some good shadowmap based stuff in > ShaderX7 as well for easier integration with scene geometry (p. 331). > > > Also check out I3D10's update to Crytek's Light propagation volumes. > > > hth, > bert > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list > -- Jeff Russell Engineer, 8monkey Labs www.8monkeylabs.com |