Send me your source and model and I'll take a look at it. Make sure you
send it to me and not the whole list.
----- Original Message -----
From: "F�bio Magalh�es" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 8:11 PM
Subject: [JAVA3D] i tried, but anything occurs ????
> I tried the both suggestions, but nothing correct my
> app, the cube file still invisible or doesn't appear
> the suggestions were:
>
> private void init()
> {
> setLayout(new BorderLayout());
> Canvas3D canvas = createCanvas();
> add("Center", canvas);
> this.simpleUniverse = new SimpleUniverse(canvas);
> }
>
> private Canvas3D createCanvas()
> {
> GraphicsConfigTemplate3D template = new
> GraphicsConfigTemplate3D();
> GraphicsConfiguration gc1 =
>
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().g
> etBestConfiguration(template);
> return new Canvas3D(gc1);
> }
>
>
> and:
>
>
>
> TransformGroup vtg =
> simpleUniverse.getViewingPlatform().getViewPlatformTransform();
> Transform3D backup = new Transform3D();
> backup.setTranslation(new Vector3f(0.0f, 0.0f,
> 10.0f));
> vtg.setTransform(backup);
>
>
> and my code is the method :
>
> //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);
>
>
> }
>
> Please, if someone want, i could send all my app. I
> NEED to correct this. Thanks.
>
> F�bio
>
>
____________________________________________________________________________
___________________
> 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".
>
===========================================================================
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".