Hi Alejandro
> How can I use texture mapping with Shape3D's imported with
> a Loader if I don't know what geometry types are used in
> the objects?
Well simply before you add the Scene to your ContentBranch of your Locale
traverse through the Graph. You will hit at the end a Shape3D because it's
a leaf and it doesn't have anymore children. When you reach a Shape you
can return it's geometry by getGeometry(). You can either check what type
of geometry it is by instanceof or by getClass().getName().
> not possible to guess the composition of each Shape3D. Texture
> coordinates do not exist on the imported Shape3D and as
> far as I can tell cannot be added at runtime. I have a scheme
Yeah that's right when you run in compiled-retained or retained mode yes.
> where I can add the coordinates and texture coordinates to
> a new Shape3D but again I don't know what kind of geometry
Well you can add texture coordinates before you add the scene returned by
the loader to your locale node. The only hard part is to find a
corresponding mapping, which looks good as you can't really tell from the
coordinates what primitive it might have been. So you're limited to
spherical, cylindrical, cube-mapping, etc.
> the 3ds texture mapped objects but so far I haven't been able
> to get textures in 3ds to show up in my Java3D scene either.
Maybe it couldn't find the texture-files or there is no image-loader for
the sort of file you used as texture?
EOF,
J.D.
--
Jmark2k+1 (http://www.antiflash.net/jmark)
Test the performance of your PC online!
===========================================================================
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".