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

Reply via email to