Turned Texture Lighting off.  No luck.  Perhaps, though, now the problem is
with where I am positioned in viewing the object....  the cube is
1unit*1unit*1unit.  I used the setNominalViewingTransform method, and the
documentation says that this causes the view to be 2.41 units (they say
meters) away from 0,0,0.  Is this right?  wrong?  Should I move the view?
If so, what params should I pass into the Vector3f that I use to modify the
view?



-----Original Message-----
From: John Wright [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 8:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] 3DS Loader


Eric,

If you told the loader to enable lighting for the object but you didn't
put any light into your scene (your scene, NOT your 3D model) then the
object will not show up as there is no light to shine on it and
illuminate it.

- John

"Sandegren, Eric S." wrote:
>
> There aren't any lights, just the object.  the diffuse is set to a
material
> that is light in color (a wood grain color).  The Ambient color is not
> checked, and does not have a bitmap applied.  Should I set this?  What is
> ambient color?  There are no other settings checked for this material...
> just diffuse.
>
> -----Original Message-----
> From: John Wright [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 07, 2003 6:20 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] 3DS Loader
>
> Eric,
>
> Did you put in a light?  Are the diffuse and ambient colors of your
> object black?
>
> Try it without turning on texture lighting.
>
> - John Wright
> Starfire Research
>
> "Sandegren, Eric S." wrote:
> >
> > All - I have a question, I hope it is simple to answer...
> >
> > I have a cube that I've created in 3D Studio Max.  I have attached a
> > material to it, in the form of a GIF.  I then export the cube into a
.3DS
> > file.
> >
> > I am using Starfire's Inspector3DS loader to load the cube, and place in
> the
> > scenegraph, but when I do so, I cannot see my object.  The
> > height/width/width of the cube is one unit.
> >
> > Here is the code to create the universe and start up -
> >
> >         BranchGroup scene = createSceneGraph();
> >         scene.compile();
> >
> >         SimpleUniverse su = new SimpleUniverse(can);
> >
> > //        su.getViewingPlatform().setNominalViewingTransform();
> >
> >         TransformGroup vpTrans =
> > su.getViewingPlatform().getViewPlatformTransform();
> >         Vector3f translate = new Vector3f();
> >         translate.set(0,0,2); // move the view to wherever you want it.
> >         Transform3D T3D = new Transform3D();
> >         T3D.setTranslation(translate);
> >         vpTrans.setTransform(T3D);
> >
> >         su.addBranchGraph(scene);
> >
> > Here is the code inside createSceneGraph() -
> >
> >           Inspector3DS loader = new
> Inspector3DS("c:\\models\\mycube.3ds");
> >         loader.setLogging(true); // turns on logging to a disk file
> > "log3ds.txt"
> >         loader.setDetail(6); // sets the level of detail to be logged
> >         loader.setTextureLightingOn(); // turns on modulate mode for
> > textures (lighting)
> >         loader.parseIt();
> >
> >         TransformGroup theModel = loader.getModel();
> >
> >         grpRoot.addChild(theModel);
> >
> >           return grpRoot;
> >
> > Does anything stand out to anyone about why I cannot see my cube?  Is
> there
> > something obvious that I am forgeting to do?  I've tried moving the
> viewing
> > platform, but that didn't seem to resolve my problem...  any thoughts?
> >
> > Thank you
> >
> > Eric Sandegren
> >
> >
>
===========================================================================
> > 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".

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