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

Alpha Blending issue.

Last post 05/11/2009 21:20 by jwatte. 1 replies.
  • 05/11/2009 16:02

    Alpha Blending issue.

    Hi

    Im quite new to all this, ish and Im having quite a large problem.

    I have started writting a new game and have plugged in the XMLParticals sample but since that has been put in, the alpha channels in the model textures now dont work.

    I am also using KiloWatt Animation Lib.  The alpha blending works in the kilowatt sample so i know it not that. But when I try it in my own game ( with XMLParticals ) I get nothing.  Even with all the alphablendingenabled changed to true and Ive tried all the other settings with no good results.

    Any thoughts people please?
  • 05/11/2009 21:20 In reply to

    Re: Alpha Blending issue.

    Are you drawing things in the right Z-sorted order?
    Are you drawing alpha blending with Z turned on or off?
    What if you use SaveStateMode.SaveState when you Begin() the effects for the particle system?
    In general, for this kind of problem, you absolutely want to use PIX for Windows to debug it. Rather than us guessing at the hundreds of render states that may be the culprit, for you to simply open up the shader and debug it, and then open up the graphics device and inspecting all states (textures, blend states, etc) is going to be a lot faster!

    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
Page 1 of 1 (2 items) Previous Next