Hello Justin, thank you for the information.
Could you give me some hints on how exactly I can use the multitexture abilities you mentioned? What I did up to now, was to go to every appearance node in the SceneGraph and set new TextureAttributes with TextureMode MODULATE. This works, but unfortunately, the default mechanism of having textures tiled on an object is lost and I haven't found a way of getting back this behaviour.
Thank you for your help Rainer
Rainer Blum wrote:
I'm using the Xj3D VRML97Loader to load textured geometries into a Java3D scene. My problem is, that the textured surfaces are not shaded, while the non-textured are.
You would need to make the file an X3D file by changing the header from #VRML V2.0 utf8 to #X3D V3.0 utf8
Then add a profile statment. The closest profile to VRML97 is Immersive. You aren't using PROTO's or Scripts then you likely can use Interactive.
PROFILE Immersive
Then replace the the ImageTexture with a MultiTexture Node. Below is a full example:
#X3D V3.0 utf8
PROFILE Immersive
Shape { appearance Appearance { texture DEF MT MultiTexture { mode ["MODULATE"] texture [ ImageTexture { url ["mymap.jpg"] } ] } } geometry IndexedFaceSet { coord Coordinate { point [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0] } coordIndex [ 0 1 2 3] texCoord TextureCoordinate { point [0 0, 1 0, 1 1, 0 1] } } }
There is also a program in apps/converter of the Xj3D project which converts VRML97 files to X3D if you want to convert content.
-- Alan Hudson President: Yumetech, Inc. http://www.yumetech.com/ Web3D Open Source Chair http://www.web3d.org/TaskGroups/source/
=========================================================================== 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".