Hi Mark,
We use
device->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_ONE);
device->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_ONE);
in this case. So how it is handle is up to the driver.
I guess the driver may use screen door transparency for
blending mode.
- Kelvin
-----------
Java 3D Team
Sun Microsystems Inc.
>Delivered-To: [EMAIL PROTECTED]
>X-Sender: [EMAIL PROTECTED]
>Mime-Version: 1.0
>Date: Fri, 20 Jul 2001 11:13:27 -0400
>From: Mark Ferneau <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Transparency / J3D 1.2.1_01 D3D
>To: [EMAIL PROTECTED]
>
>It seems as if all of my transparent objects in J3D 1.2.1_01 *D3D* are
>using screen door transparency, but this line in the README seems to me to
>indicate it should be using blended:
>
> TransparencyAttributes.TransparencyMode values FASTEST, NICEST and
> SCREEN_DOOR are the same as BLENDED under D3D.
>
>Since I'm getting screen door transparency, does this mean any or all of
>the following:
>
>1) D3D blended *is* screen door (I find that hard to believe)
>2) My D3D drivers are not providing blended, while D3D itself would do so
>with other drivers/gfx boards
>3) There's a bug in J3D
>4) My code is not doing this right, though it looks like it
>should. Here's the line:
>
>mPSApp.setTransparencyAttributes( new TransparencyAttributes(
>TransparencyAttributes.BLENDED, 0.5f, TransparencyAttributes.BLEND_ONE,
>TransparencyAttributes.BLEND_ONE ));
>
>Thanks for any responses...
>
>--Mark
>
>
>
>Mark Ferneau 240-462-6262 (cell)
>Director of Adv. Technology 801-437-4608 (efax)
>Xtivia Technologies, Inc. 732-248-9399 x629 (NJ office)
>[EMAIL PROTECTED] 301-279-5703 (home office)
>http://www.xtivia.com/ [EMAIL PROTECTED] (wireless email)
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".