Thread: can anyone explain rhw?

  1. #1
    Registered User
    Join Date
    Oct 2003

    Question can anyone explain rhw?

    can anyone give me an idea of what exactly the rhw co-ordinate you can specify for FVF's does? looking at the sdk example, i have the idea it could be used to project geometry flat to the screen (to make for example a 'window'). if that is the case how does the z cartesian effect things when rhw is used?

  2. #2
    Registered User
    Join Date
    Apr 2002
    The RHW flag basically says that you do not want Direct3D to transform and light your vertices. They are taken to already be transformed and lit. As you stated you might want to do this for a 2D overlay for example.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    ...or for using D3D to display something like a tile map with lighting or something. You can use the rhw coeffecients to implement your own lighting equations. Very handy.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. One Easy" C " Question. Please Solve and Explain.
    By RahulDhanpat in forum C Programming
    Replies: 18
    Last Post: 03-24-2008, 01:39 PM
  2. Please Explain me few terms that i have listed in here.
    By chottachatri in forum C++ Programming
    Replies: 3
    Last Post: 02-26-2008, 08:20 AM
  3. Please explain?
    By neo_phyte in forum C Programming
    Replies: 3
    Last Post: 08-25-2006, 05:23 AM
  4. Pls explain how this program works...
    By Unregistered in forum C Programming
    Replies: 9
    Last Post: 01-05-2002, 09:53 AM
  5. Can someone explain "extern" to me?
    By valar_king in forum C++ Programming
    Replies: 3
    Last Post: 09-16-2001, 12:22 AM