I program in jython because we need pyro compatability among other things. This works for me. I does however have some drawbacks. PS transparent textures do not work on the cylinder primitive. You get a strange mind boggling flipping effect. Thanks again for your help. Chris
def buildAppearance(self):
plateAppearance = Appearance()
plateTexAttr = TextureAttributes() plateTexAttr.setTextureMode(TextureAttributes.MODULATE) plateAppearance.setTextureAttributes(plateTexAttr)
plateTexture = TextureLoader('mask3.png',Texture.RGBA, JFrame()).getTexture() plateAppearance.setTexture(plateTexture)
plateMaterial = Material() plateMaterial.setAmbientColor( 0.5,0.5, 0.5); plateMaterial.setDiffuseColor( 0.7,0.7, 0.7); plateMaterial.setSpecularColor(0.3,0.3,0.3) plateMaterial.setLightingEnable(1); plateAppearance.setMaterial(plateMaterial)
plateRendAttrs = RenderingAttributes() plateRendAttrs.setAlphaTestFunction(RenderingAttributes.NOT_EQUAL) plateRendAttrs.setAlphaTestValue(0.0) plateAppearance.setRenderingAttributes(plateRendAttrs)
platePolygon = PolygonAttributes(PolygonAttributes.POLYGON_FILL,PolygonAttributes.CULL_NONE,0) plateAppearance.setPolygonAttributes(platePolygon)
return plateAppearance
=========================================================================== 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".