My message just got bounced for being too long, so I'm guessing the list did
not receive the 2 attached executable files... If anyone would like them
drop me a line and I'll email them to you.
Daniel Selman
=== original bounced message ===
Don,
The people running the Detonator drivers both reported that they could not
see the semi-transparent sphere when running BenchJ3d.
The sphere is created with the following Java 3D attributes:
m_Appearance = new Appearance();
Material mat = new Material();
mat.setLightingEnable( true );
mat.setAmbientColor( 0.2f, 0.3f, 0.4f );
mat.setEmissiveColor( 1.0f, 0.6f, 0.2f );
mat.setDiffuseColor( 0.0f, 1.0f, 0.0f );
mat.setSpecularColor( 0.0f, 0.0f, 1.0f );
mat.setShininess( 100.0f );
m_Appearance.setMaterial( mat );
m_Appearance.setColoringAttributes( new ColoringAttributes( 0.5f, 0.5f,
0.5f, ColoringAttributes.NICEST ) );
m_Appearance.setTransparencyAttributes( new
ransparencyAttributes( TransparencyAttributes.NICEST, 0.2f ) );
m_TransformGroup.addChild( new Sphere( 0.5f, m_Appearance ) );
How exactly this translates into runtime calls to OpenGL I cannot say, but
the problem would *appear* to be with the TransparencyAttributes (50%
transparency)... This could map to a call to:
// switch on blend for alpha transparency...
glEnable( GL_BLEND );
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
// render primitives using calls like... (50% alpha)
glColor4f(1.0f, 0.0f, 1.0f, 0.5f);
glVertex3f(-0.5f, 0.5f, 0.5f);
I have modified a MS sample OpenGL application so that it renders a
semi-transparent rotating cube (on my Win NT system using software OpenGL).
You people with Detonator drivers might want to run it to see whether it
shows up on your systems.
I can supply the source code if it turns out that this is the problem so
that you can ship it to Diamond's engineers.
I have also included a handy application that displays the capabilities of
your OpenGL driver. You might want to disable hardware OpenGL, run it, then
enable acceleration, run it again, and compare the results. Maybe something
is not supported...?
Best of luck,
Daniel Selman
Tornado Labs Ltd.
Email: [EMAIL PROTECTED]
Web: www.tornadolabs.com
Phone: +44 (0131) 343 2513
Fax: +44 07070 800 483
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/