|
I have a problem with transparency which I am unable to solve. To illustrate the problem I have attached a very crude modeller program that demonstrates the problem, and would appretiate any comment as to why my implemetation of transparency does not work correctly. (please excuse any exception thrown by the program). Unfortunetly the problem occurs after a series of procedures which I am unable to identify exactly, however following the below procudure should do the trick: 1/ Start the modeller by issuing command: java -jar TheRCM.jar 2/ Add a surface (using button at top left of screen) 3/ Select new surface from the object list (using combo at top right of screen) 4/ Move the control points around. You may need to move the 2D views (left-mouse: move selected control point, middle button:zoom, right button:pan). Manipulate the surface until you have a well defined 3D surface with well defined 'bumps'. 5/ Add a texture using the bottom right editor panel. 6/ Change the transparency. 7/ Add another surface and perform steps 1-6. Move the 3D view around and you should notice that the z-buffer is messed up in places when transparency is set to zero. It may take a while for this to happen (try add new texture etc). Can anyne tell me why this is happening? The following code is used to add transparency attributes: TransparencyAttributes ta = new TransparencyAttributes(); ta.setCapability(TransparencyAttributes.ALLOW_VALUE_READ); ta.setCapability(TransparencyAttributes.ALLOW_VALUE_WRITE); ta.setCapability(TransparencyAttributes.ALLOW_MODE_READ); ta.setCapability(TransparencyAttributes.ALLOW_MODE_WRITE); ta.setTransparencyMode(ta.BLENDED); ta.setTransparency(0.0f); I then alter transparency by changing this attribute value. Any hints greatly appreciated Andy Phelps |
- [JAVA3D] ORACLE-VRML Juan Antonio
- [JAVA3D] stereoscopic glasses and Sgi Giuseppe Conti
- Re: [JAVA3D] ORACLE-VRML Andrew Phelps(tug3d)
- Re: [JAVA3D] ORACLE-VRML Andrew Phelps(tug3d)
- Re: [JAVA3D] ORACLE-VRML Kent Salsby
TheRCM.jar