I have this exact scenario.  I am loading a simple sphere with blue plastic
material on it with simple ambient lighting.  I am also using the Starfire
driver and my log file includes similar output as below and appears to be
error free, but I just get black space, no object.  I created the file in
3DS3, not MAX, but the old version 3 that runs in dos or a dos window.  I
saved the file as 3DS format.  Has the format changed in the latest 3DS
versions?  Should the Starfire driver work with this old version of
3DStudio?

thanks,
daveh

----- Original Message -----
From: "John Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 7:11 PM
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".

Reply via email to