DX9Texture - BG as Alpha


I’m just thinking if this is possible:

Like in the example:
I would like to use a 3D Object -> take it from a Renderer into DX9Texture and Map it on a QUAD.

In this case i would like to only the Torus be shown on top of the 2nd quad.

Is this possible? I don’t think i can manage that with the Format of the DX9Texture? …

thanks for your help on that.

alpha_test.v4p (8.1 kB)

ai scarab,

two things:

  • you need to set the background color of the first renderer to alpha=0
  • you need to draw the transparent layer after the solid one in the second renderer
    (i fixed those in the patch attached)

also you may want to enable the depthbuffers to get rid of those depth artefacts you see in the patch now.

alpha_test2.v4p (8.1 kB)


Great… Thanks for the quick answer…