I'm using DirectX Java 3D on my Radeon 9700 and all transparencies are flawless, even the FASTEST (the quality on that mode actually surprised me). I'm guessing your Appearance isn't set up properly... Here's a sample from out game:
 
appGhostSlimer = new Appearance();
    appGhostSlimer.setMaterial(new Material(ID_SLIMER, COLOR_BLACK, ID_SLIMER, COLOR_BLACK, 80.0f));
    appGhostSlimer.setTransparencyAttributes(new TransparencyAttributes(TransparencyAttributes.FASTEST, 0.3f));
Shape3D b = (Shape3D) bodyFrame1.cloneTree();
    b.setAppearance(appGhostSlimer);
 
Hope this helps,
CHRIS
Btw, it is my understanding that 0.3f = 30% transparent and 1.0f = 100% transparent.
----- Original Message -----
Sent: Thursday, October 30, 2003 3:25 AM
Subject: [JAVA3D] Transparency and DirectX

I have some trouble creating a partially transparent object with Java3D for DirectX:
 
    TransparencyAttributes ta = new TransparencyAttributes(TransparencyAttributes.FASTEST, 0.5f);
 
However, the resulting object is completely transparent (i.e. invisible) !
I also tried other tranparency modes (NICEST, BLENDED), with the same result.
The object has no texture, only diffuse and ambient color.
 
Is there a problem with DirectX, or am I missing something ?
 
 
 
 
 
=========================================================================== 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".

Reply via email to