Merci serge,

I already though about this idea. But I wanted to know if there was a faster
way to convert it.
I'm wondering if the 'traverse' method will go through several Shape3D or
only one...
Anyway, I'll try the traverse approach to get my Shape3D

Franck.

                -----Original Message-----
                From: Discussion list for Java 3D API
<[EMAIL PROTECTED]>@SUNGARD On Behalf Of Serge Bernier
<[EMAIL PROTECTED]>
                Sent: Monday, December 29, 2003 6:23 PM
                To: [EMAIL PROTECTED]
                Subject: Re: [JAVA3D] Build 1 shape3D from a TransformGroup
or 3DS object

                hi Franck,

                try to use a loader for your 3DS objects (search on the web
for loader + 3DS
                or max). The loader convert the 3DS into a Java3D scene
object that you can
                insert under a BranchGroup or TransformGroup.

                The final result of the parsing is a tree structure that
represent your 3DS
                model and you can go get the shape3D object by doing a test
at each node of
                the tree. You have to pass all the nodes of the tree
structure.

                Test Example: if((object) instanceof Shape3D))

                Then when you have the shape3D you can construct your morph
behavior. When you
                use a morph behavior you have to be sure that all you
geometry object have the
                same number of vertices, or it throw an error.

                Dont know if it gone a help you. Best luck!

                Serge



                Selon Franck Calzada <[EMAIL PROTECTED]>:

                > Hi all,
                >
                > Question:
                > I'd like to know if it's possible to build 1 shape3D
object from a
                > TransformGroup or 3DS object?
                >
                > Final goal:
                > To be able to morph a 3ds object. (I have many instance of
my object in
                > different positions, but I need to convert them in Sahpe3D
object in order
                > to morph them)
                >
                > Thanks for your help,
                > Franck
                >
                > http://www.geocities.com/calzada_us/Billard3D/Pool.html
                > <http://www.geocities.com/calzada_us/Billard3D/Pool.html>
                >
                >
                >
                >
                >
                > Confidentiality Notice: This email and any files
transmitted with it are
                > confidential and are intended solely for the use of the
individual or entity
                > to whom they are addressed. If you are not the original
recipient or the
                > person responsible for delivering the email to the
intended recipient, be
                > advised that you have received this email in error, and
that any use,
                > dissemination, forwarding, printing, or copying of this
email is strictly
                > prohibited. If you received this email in error, please
notify the
                > originator immediately.
                >
                >
===========================================================================
                > 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".
                >


===========================================================================
                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".



Confidentiality Notice: This email and any files transmitted with it are
confidential and are intended solely for the use of the individual or entity
to whom they are addressed. If you are not the original recipient or the
person responsible for delivering the email to the intended recipient, be
advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is strictly
prohibited. If you received this email in error, please notify the
originator immediately.

===========================================================================
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".

Reply via email to