Transparent textures cause background objects not to be rendered

How can I get this fixed Please take a look at my screenshot. My first idea is to turn off z-buffering and sort the meshes by hand. However I would like to avoid this. Isn't it simply possible to set a render state (which can be used when rendering transparent textures) that will switch the eliminating of background polygons off

Thanks in advance,
SecurityException


Answer this question

Transparent textures cause background objects not to be rendered

  • Patrick-swa

    Is using the AlphaTestEnable-RenderState a good idea It seems to work for fully opaque and fully transparent pixels, but not for semi-transparent ones. Is there a high performance penalty for using this one Would it be a better idea to first render fully opaque objects with this flag turned off and then at last to render the objects which have transparent textures
    Sorry for asking so many questions at one time.Smile

  • uszaty1973

    Ok, thank you for that information. I guess I will stay with alpha testing then.

  • Lasse Steenberg

    Or if you don't want to sort anything :) and you don't have any semi-transparencies, yes, alpha testing works very well.
  • Davidmanchester

    Rendering Order Laws (almost always true)  ;)

    1- Draw first all opaque objects in front-to-back order, with z testing enabled (this ordering is for efficient rendering).
    2- Then, draw all semi-transparent objects in back-to-front order (this ordering is needed for alpha blending).

    Ordering is relative to camera position and direction, based on distance from objects to camera.  (Also, ordering will let you easily clip trees behind your camera, or beyond your vision distance).

    -Juan

  • Transparent textures cause background objects not to be rendered