Results 1 to 5 of 5

Thread: Difference between nodal access wNorm and wNorm0?

  1. #1
    eye kan kode gud jrandom's Avatar
    Join Date
    Dec 2009
    Location
    Seattle, WA
    Posts
    1,143

    Difference between nodal access wNorm and wNorm0?

    The documentation only describes nodal access' wNorm0, and the sample code for the specular sample uses wNorm. Anyone know the actual difference between the two?

  2. #2
    eye kan kode gud jrandom's Avatar
    Join Date
    Dec 2009
    Location
    Seattle, WA
    Posts
    1,143
    ... does no one know?

  3. #3
    NewTek Developer jameswillmott's Avatar
    Join Date
    Dec 2004
    Location
    Gold Coast
    Posts
    3,171
    Quote Originally Posted by jrandom View Post
    The documentation only describes nodal access' wNorm0, and the sample code for the specular sample uses wNorm. Anyone know the actual difference between the two?
    If you read the ShaderHandler docs, wNorm is described somewhere near the bottom...

    Quote Originally Posted by LW SDK ShaderHandler
    Modifiable Parameters

    These parameters are used by the renderer to compute the perceived color at the spot and may be modified by the shader.....

    wNorm
    Surface normal in world coordinates. If you modify this vector, you must renormalize it (make its length equal to 1.0).
    LightWave3D training, assets, news and discussion at www.liberty3d.com
    My opinions are my own and do not represent the opinions of any other entity, Liberty3D is not officially endorsed by NewTek.

  4. #4
    eye kan kode gud jrandom's Avatar
    Join Date
    Dec 2009
    Location
    Seattle, WA
    Posts
    1,143
    Right, yes, I was able to get that far -- I'm using wNorm in my plugin. But what's wNorm0 for? Are they two slots containing the same information that the node can modify?

  5. #5
    NewTek Developer jameswillmott's Avatar
    Join Date
    Dec 2004
    Location
    Gold Coast
    Posts
    3,171
    Quote Originally Posted by jrandom View Post
    Right, yes, I was able to get that far -- I'm using wNorm in my plugin. But what's wNorm0 for? Are they two slots containing the same information that the node can modify?
    Yes, they start the same, but wNorm0 is the original normal and can't be changed, wNorm is the new normal.
    LightWave3D training, assets, news and discussion at www.liberty3d.com
    My opinions are my own and do not represent the opinions of any other entity, Liberty3D is not officially endorsed by NewTek.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •