I sent out a message a little while ago
regarding how to apply textures
to Shape3D's obtained from a Loader. So
far, I haven't gotten much
response although I realize that people were
distracted last week.
Here is my basic question:
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?
Here is my scenario. My colleague is
giving me dxf files that
represent buildings on our campus. The
dxf files are made up of
lots of different primitives (as far as I can
tell). Therefore, it is
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
where I can add the coordinates and texture
coordinates to
a new Shape3D but again I don't know what
kind of geometry
is used so I can't create a good texture
coordinate array to
use.
I do remember importing some VRML scenes in
the
distant past and getting the textures but I haven't been
able to get them in with any other loaders. It would be
easy to texture map in 3ds and then
import
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.
I suppose I could also extend an existing
loader that when it
parsed the dxf file also returned the geometry types but that
is something I
was hoping to avoid.
Thanks in advance for any advice--
Alex