Hi, I am working on getting spotlight falloff work with the caustics in lighter2. I am a little bit confused regarding the innerFalloff and outerFalloff. I interpret innerFalloff as an angle which represents the conical angle around the direction of the light, where maximum (uniform) intensity should be there, and from the innerFalloff angle to the outerFalloff angle thw light intensity keeps on decreasing, and there is no lighting beyond outerFalloff angle.
But in lighter2 while calculating a random direction in the conical range, the following code is used: // Get two uniformly distributed random numbers between 0 and 1 > double e1 = randGen.Get(); > double e2 = randGen.Get(); > > // Compute the angles of rotation around the optical axis > double theta = acos(outerFalloff)*e1; > double phi = 2.0*PI*e2; > This probably means that outerFalloff is a ratio and not an angle. So, all I want to know is that are innerFalloff and outerFalloff angles or ratios, and if ratios, them of what? P.S: Photon mapping doesnt supports spotlight falloff. Regards, Mohit Taneja
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe
