Adrian,
That's exactly correct. If there is no material associated with a face
then there is no Shape3D created. Essentially if the shape has no color
it's "invisible" and thus we don't import it. We don't import geometry
that has no information for displaying it ({laugh} It's a feature not a
bug!).
- John Wright
Starfire Research
Adrian Meekings wrote:
>
> Sorry to harp on. Ive done some further research and found that the Starfire
> Research 3ds loader when loading the Amapi exported 3ds file does not have a
> Shape3D object associated with it.
> If 3ds and MAX can see the shape (granted no colours) perhaps this means
> the problem is a compatabiltiy issue with the 3ds loader (dont hit me...
> please) Heres that sphere attached again. Can anyone confirm by loading this
> into Java (without first opening it in an editor) That there is a Shape3D
> present? Sorry I cant pay you for this work!
>
> Kind Regards
> Adrian
> ----- Original Message -----
> From: "Adrian Meekings" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 10:32 AM
> Subject: Re: [JAVA3D] loading a 3ds file constructed in Amapi
>
> > Thankyou everyone for the help and suggestions.
> > Ive just joined an Amapi user group but no luck yet.
> > The 3ds files sent to me both import and are white (default?) This is
> better
> > than Ive had :?)
> > When I import the files into Amapi,do nothing ,and export them they loose
> > all colour information (or perhaps they loose it on the import ). Im
> stumped
> > :?(
> > Since this is obviously an Amapi issue and not j3d i'll drop this here and
> > move on.
> >
> > Know any free renderers (or trial products that do export colour info)
> >
> > Thanks for your help
> > ----- Original Message -----
> > From: "John Wright" <[EMAIL PROTECTED]>
> > To: "Adrian Meekings" <[EMAIL PROTECTED]>
> > Sent: Thursday, August 23, 2001 12:24 AM
> > Subject: Re: [JAVA3D] loading a 3ds file constructed in Amapi
> >
> >
> > > Adrian,
> > >
> > > I loaded your sphere into 3D Studio Max. It clearly had no color
> > > associated with it. I've applied a blue color and I'm sending it back
> > > to you. I'm sorry I know nothing of "Amapi" and can't help you with
> > > it's operation.
> > >
> > > - John Wright
> > > Starfire Research
> > >
> > > Adrian Meekings wrote:
> > > >
> > > > Yes no details re colours. Unfortunately I can apply any range of
> > colours in
> > > > Amapi and have them rendered (by Amapi ) but it appears they dont
> export
> > > > this information.
> > > >
> > > > Just for kicks here is the sphere. Are you able to tell me if Im
> > applying a
> > > > colour or texture ? the Amapi material editor is not clear on exactly
> > what
> > > > Im applying to the object?
> > > > Kind Regards
> > > > A
> > > >
> > > > ----- Original Message -----
> > > > From: "Adrian Meekings" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, September 11, 2001 1:31 PM
> > > > Subject: Re: [JAVA3D] loading a 3ds file constructed in Amapi
> > > >
> > > > > Thanks Ill look into this...
> > > > > Your right I didnt realise that about modelers. Trap for young
> > players.
> > > > >
> > > > > Cheers
> > > > > A
> > > > > ----- Original Message -----
> > > > > From: "John Wright" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, August 22, 2001 11:11 AM
> > > > > Subject: Re: [JAVA3D] loading a 3ds file constructed in Amapi
> > > > >
> > > > >
> > > > > > Adrian,
> > > > > >
> > > > > > Most likely your sphere doesn't have a material applied (i.e. it's
> > > > > > "invisible").
> > > > > >
> > > > > > The best first step to debugging these issues is to look at the
> log
> > > > > > output. If you aren't getting any materials then you won't see
> > > > > > anything. Our loader doesn't render geometry unless it has a
> color.
> > > > > > Many people don't understand it because viewed in a modeling
> program
> > > > > > like 3D Studio Max you'll see an object color applied so you can
> see
> > > > > > your model as you build it.
> > > > > >
> > > > > > Look for lines in the log file like:
> > > > > > Material Name: Material #26
> > > > > > Mat Ambient Chunk ChunkID = a010 Length: 15
> > > > > > Color 24 Chunk ChunkID = 11 Length: 9Color Value (r,g,b) =
> > > > > > 25,25,25
> > > > > > Mat Diffuse Chunk ChunkID = a020 Length: 15
> > > > > > Color 24 Chunk ChunkID = 11 Length: 9Color Value (r,g,b) =
> > > > > > 127,127,127
> > > > > > and then down further:
> > > > > > Face Array Chunk ChunkID = 4120 Length: 1715
> > > > > > Number of Faces: 120
> > > > > > Mesh Mat Group Chunk ChunkID = 4130 Length: 261
> > > > > > Applying Mat Name: Material #32 <- if no material
> > applied
> > > > > > it's invisible!
> > > > > > Number of triangles = 120
> > > > > >
> > > > > > - John Wright
> > > > > > Starfire Research
> > > > > >
> > > > > > Adrian Meekings wrote:
> > > > > > >
> > > > > > > Hello all
> > > > > > >
> > > > > > > Im having dificulty seeing a simple sphere that Im loading using
> > > > > Starfire Research 3ds loader (as a test) I placed ambient lighting
> > within
> > > > > the scene
> > > > > > > but still no luck. Can anyone please tell me what Im doing
> wrong?
> > > > > > >
> > > > > > > The information to screen appears to inform me that the loader
> is
> > > > > working (there are no error messages)
> > > > > > >
> > > > > > > my code is:
> > > > > > >
> > > > > > > Inspector3DS loader = new
> > > > > Inspector3DS("S:/JDK_Forte/forte4j/sphere/sphere.3ds");
> > > > > > >
> > > > > > > loader.setLogging(true); // turns on writing a log file
> > > > > > > loader.setDetail(7); // sets level of detail of report log
> > > > > > > loader.setTextureLightingOn(); // turns on texture modulate mode
> > > > > > >
> > > > > > > loader.parseIt();
> > > > > > > TransformGroup max = loader.getModel();
> > > > > > > Transform3D sphereTransform = new Transform3D();
> > > > > > > max.getTransform(sphereTransform);
> > > > > > > //sphereTransform.setScale(new Vector3d(0.005,0.005,0.005));
> > > > > > > //sphereTransform.setScale(new Vector3d(0.001,0.001,0.001));
> > > > > > > //sphereTransform.setScale(new Vector3d(1.0,1.0,1.0));
> > > > > > > max.setTransform(sphereTransform);
> > > > > > > zoomTransformGroup.addChild(max);
> > > > > > >
> > > > > > > The loader will import successfully a .3ds file that I pulled of
> > the
> > > > web
> > > > > > > (a coffie table ) but not my sphere.
> > > > > > >
> > > > > > > The sphere was built and exported by Amapi.
> > > > > > >
> > > > > > > Kind Regards
> > > > > > > A
> > > > > > >
> > > > > > >
> > > > >
> > > >
> >
> ===========================================================================
> > > > > > > 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".
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> >
> ===========================================================================
> > > > > 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".
> > > > >
> > > > >
> > > >
> > >
> > ------------------------------------------------------------------------
> > > > Name: sphere.3ds
> > > > sphere.3ds Type: unspecified type (application/octet-stream)
> > > > Encoding: base64
> >
> >
> ===========================================================================
> > 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".
> >
> >
>
> ------------------------------------------------------------------------
> Name: sphere.3ds
> sphere.3ds Type: unspecified type (application/octet-stream)
> Encoding: base64
===========================================================================
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".