XNA Creators Club Online
Page 1 of 1 (8 items)
Sort Posts: Previous Next

Normal maps render on PC but not on XBOX

Last post 11/5/2009 7:12 AM by electronicshed. 7 replies.
  • 11/3/2009 9:57 AM

    Normal maps render on PC but not on XBOX

    I have a strange problem im finding hard to solve. I have normal maps rendering fine on the pc but when i run the same project on the xbox they dont show up. The rest of the shader draws correctly, i.e specmap and envmap.

    Does anyone have any advice on what might be causing this problem.

    Cheers
    Mike
  • 11/3/2009 4:52 PM In reply to

    Re: Normal maps render on PC but not on XBOX

    Impossible to say without more info. Can you show us some code? (ideally an app that repros the problem)
    XNA Framework Developer - blog - homepage
  • 11/3/2009 7:47 PM In reply to

    Re: Normal maps render on PC but not on XBOX

    The first thing to check is your tangent basis. Do you actually have correct tangents and bitangents (a k a "binormals")?

    The second thing to check is your vertex declaration. Are you setting a proper vertex declaration that identifies the tangents before you draw your vertex buffer?

    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
  • 11/4/2009 11:27 AM In reply to

    Re: Normal maps render on PC but not on XBOX

    Hi,
     here's a link to a project that shows normal maps working on pc but not on the xbox.
  • 11/4/2009 4:22 PM In reply to

    Re: Normal maps render on PC but not on XBOX

    What Jon said: I don't see anywhere that you're creating tangent vectors for this model?

    I bet the debug DX runtime will tell you what is going wrong here.

    XNA Framework Developer - blog - homepage
  • 11/5/2009 3:52 AM In reply to

    Re: Normal maps render on PC but not on XBOX

    Sorry im very new to XNA and shaders, So the XBOX requires tangent vectors and the PC doesnt ?

    Seems strange it works on pc but not on the xbox.

    Regards
    Mike
  • 11/5/2009 5:10 AM In reply to

    Re: Normal maps render on PC but not on XBOX

    No, it probably works by accident on your PC. If you install the debug DX runtime and turn on the debug validation, chances are that it will actually tell you something's wrong in the Output window of Visual Studio.
    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
  • 11/5/2009 7:12 AM In reply to

    Re: Normal maps render on PC but not on XBOX

    Thanks guys, Looks like i need to do some research :)

    Cheers
    Mike
Page 1 of 1 (8 items) Previous Next