Re: Kajiya-Kay Hair Light Model




"Ryan" <heniser@xxxxxxxxx> writes:
> Kajiya, J. T. and Kay, T. L. 1989. Rendering fur with three dimensional
> textures. In Proceedings of the 16th Annual Conference on Computer
> Graphics and interactive Techniques SIGGRAPH '89. ACM Press, New York,
> NY, 271-280. DOI= http://doi.acm.org/10.1145/74333.74361
>
> In their diffuse component derivation, I don't understand how they are
> able to simplify to Ks sin(t,l') in equations 14 on page 276. Will
> someone please enlighten me. Thank you.

Assuming I understand your question correctly, they're taking advantage of
the fact that cos^2 a + sin^2 a = 1 and the fact that the dot product
between two normalized vectors is equal to the cosine of the angle between
them (so sin a = (1-cos^a)/sqrt(1-cos^2 a) in this case.)

(Which leads to a useful general principle to keep in mind: when
implementing someone else's BRDF model, if your code ever calls asin(),
acos(), sin(), cos(), tan(), etc, explicitly, your code is almost certainly
suboptimal and could be implemented more efficiently via dot products and
taking advantage of various trig identities.)

-matt
--
Matt Pharr
matt@xxxxxxxxx
http://pharr.org/matt/
.



Relevant Pages

  • Kajiya-Kay Hair Light Model
    ... Kajiya, J. T. and Kay, T. L. 1989. ... Rendering fur with three dimensional ... textures. ... In Proceedings of the 16th Annual Conference on Computer ...
    (comp.graphics.algorithms)
  • Re: Final Fantasy 8 on XP
    ... If you just compare the raw numbers, technically the graphics PC ... You also get problems because some textures have ... The contrast of better looking ... no modern video card supports paletted textures. ...
    (comp.sys.ibm.pc.games.rpg)
  • Re: wow
    ... The textures on the vortigaunt, for example, and the outdoor backdrops? ... Just look at the graphics in Bioshock for example. ... I read the Source engine has a modular make up? ... I guess that is what has enabled Valve to make changes without rewriting the whole thing and keep it looking good. ...
    (comp.sys.ibm.pc.games.action)
  • Re: if (Play && Want && Bin) { post_pwb(ugvm); }
    ... Jak & Daxter (PS2): Rubbish graphics (although decent enough textures and draw distance), occasionally annoying camera, and trying too hard to be funny. ...
    (uk.games.video.misc)
  • Re: first FIRST Racing screenshots
    ... is it because you have the dreams of a ... the grass textures are simply fake looking. ... When are we going to see photo realistic graphics? ... textures i have seen so far look nothing like real grass. ...
    (rec.autos.simulators)