I put this code in my application, but the cube object
doesn't appear .
What could be wrong ?
//Construindo um ContentBranch
private BranchGroup constructContentBranch()
{
ObjectFile myOBJ = new ObjectFile();
Scene myOBJScene = null;
//Attempt to load in the OBJ content using
ObjectFile.
try {
myOBJScene =
myOBJ.load("c:\\Teste_JAVA3D\\GACIVBrowser\\cube.obj");
}
catch (Exception e)
{
System.out.println("Could not open OBJ
file...exiting");
//System.exit(1);
}
//Construct and return branch group containing
our OBJ scene.
BranchGroup contentBranchGroup = new
BranchGroup();
contentBranchGroup.addChild(myOBJScene.getSceneGroup());
return(contentBranchGroup);
}
_______________________________________________________________________________________________
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/
===========================================================================
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".