CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006

    Simple question about normalising...


    When you normalise a 3d vertex/vector you make sure it is within the range of 0-1 (or -1)...

    Is this basically to turn it from a position in 3d space to a direction? im trying to understand alot more about 3d maths and things, its easy enough to copy code and vaugley understand what its doing and why its doing it... but i wanted to try to make sure my understanding was correct...

  2. #2
    Join Date
    Nov 2006

    Re: Simple question about normalising...

    You have the basic idea.

    Though I don't usually see uses for length of -1, just 1.

    With a length of one, certain operations for which a normal is used ( dot products for example ) make more sense for their context, as in 1 * 1 = 1.

    That's not a deep explanation as to why it's done, just an intuitive point.
    If my post was interesting or helpful, perhaps you would consider clicking the 'rate this post' to let me know (middle icon of the group in the upper right of the post).

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.