Re: Kajiya-Kay Hair Light Model



Matt,

With some help from a friend (thanks Rob), I believe we've got it.

The numerator is,
Kd * l . [ l - (t.l) * t ]

= Kd * [ l.l - l.((t.l)*t) ]
= Kd * [ 1 - (t.l) * (t.l) ]
= Kd * [ 1 - (t.l)^2 ]

The denominator is,

| l - (t.l) * t |
= sqrt( [ l - (t.l) * t ] . [ l - (t.l) * t ] )
= sqrt( l.l - 2 * l.((t.l)*t) + ((t.l)*t).((t.l)*t) )
= sqrt( 1 - 2 * (t.l) * (t.l) + (t.l) * (t.l) * 1 )
= sqrt( 1 - (t.l)^2 )

Does this look correct to you?

.



Relevant Pages

  • Re: trig problem
    ... > Aren't the denominator and numerator in the argument to atan ... Prev by Date: ...
    (sci.math)
  • Re: Incorporating subquery into A query by SELECT
    ... AS Numerator, ... IsNullAS Denominator, ... Vanderghast, Access MVP ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: Optimize divide 3
    ... yes, you are right, I mixed up denominator and numerator, looks like it is ... Frank Buß, fb@xxxxxxxxxxxxx ... Prev by Date: ...
    (comp.games.development.programming.misc)
  • Re: trig problem
    ... Aren't the denominator and numerator in the argument to atan ... Prev by Date: ...
    (sci.math)
  • Re: Conflicting needs for __init__ method
    ... single integer, another Rational instance, and perhaps floats, Decimal ... And when initializing from a pair of integers---a numerator ... sure that the denominator is positive. ... like negation or raising to a positive integer power, ...
    (comp.lang.python)