Pick dominant light from sh coeffs
Dan Treble <[email protected]> Fri, 3 Feb 2012 09:22:21 +1000
| Newsgroups | gmane.games.devel.algorithms |
|---|---|
| Message-ID | <CADbTRxjiu=5OwaiyqPFpCGOGCVy1kxwkkp2ad0RtFe69yU+Myg@mail.gmail.com> |
--===============5770649057725731519== Content-Type: multipart/alternative; boundary=e89a8f2351b5d50b7004b803777c --e89a8f2351b5d50b7004b803777c Content-Type: text/plain; charset=ISO-8859-1 I have 9 red, 9 green and 9 blue sh coefficients (packed using the method in appendix 10 of http://www.ppsloan.org/publications/StupidSH36.pdf). I want to pick a single dominant light to use for specular. How would I go about efficiently extracting the direction and color of that light from the coefficients? Looks like I need to calculate the "optimal linear direction" which is supposedly in this paper http://research.microsoft.com/en-us/um/people/johnsny/papers/ldprt.pdf, however I can't see it. Worse still, if it is in there, it is probably an integral that I will struggle to turn into code! Thanks Dan --e89a8f2351b5d50b7004b803777c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>I have=A09 red, 9 green and 9 blue sh coefficients (packed using the m= ethod in appendix 10 of=A0<a href=3D"http://www.ppsloan.org/publications/St= upidSH36.pdf">http://www.ppsloan.org/publications/StupidSH36.pdf</a>).</div= ><div> <br></div>I want to pick a single=A0dominant=A0light to use for specular. H= ow would I go about efficiently extracting the direction and color of that = light from the coefficients?<div><br></div><div>Looks like I need to calcul= ate the "optimal linear direction" which is supposedly in this pa= per=A0<a href=3D"http://research.microsoft.com/en-us/um/people/johnsny/pape= rs/ldprt.pdf">http://research.microsoft.com/en-us/um/people/johnsny/papers/= ldprt.pdf</a>,=A0however I can't see it.=A0Worse still, if it is in the= re, it is probably an integral that I will struggle to turn into code!</div= > <div><br></div><div>Thanks</div><div><br></div><div>Dan</div><div><div><br>= </div><div><br></div></div> --e89a8f2351b5d50b7004b803777c-- --===============5770649057725731519== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d --===============5770649057725731519== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ GDAlgorithms-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list --===============5770649057725731519==--