[JAVA3D] Origin of the 3dVector

2005-04-23 Thread Saeed Ansari
Hello, I want to transfer a ColorCube.I am using Transform3D Class to locate the Color cube. But when I set Location :     Transform3D trans3D = new Transform3D();    trans3D.setTranslation(new Vector3f(0.0f,0.0f,0.0f)); nothing appears, just a black screen. I tested with another locations, and now

Re: [JAVA3D] Origin of the 3dVector

2005-04-23 Thread Joerg 'Herkules' Plewe
      Transform3D trans3D = new Transform3D();    trans3D.setTranslation(new Vector3f(0.0f,0.0f,0.0f));   is pretty much the same as       Transform3D trans3D = new Transform3D(); The origin of course IS Vector3f(0.0f,0.0f,0.0f). If you cannot see anything ... where is your camera looking t

Re: [JAVA3D] Origin of the 3dVector

2005-04-23 Thread Saeed Ansari
I have used the below code for angle of the view:      ViewingPlatform vp = simpleU.getViewingPlatform();   TransformGroup View_TransformGroup = vp.getMultiTransformGroup().getTransformGroup(0);   Transform3D View_Transform3D = new Transform3D();   View_TransformGroup.getTransform(View_Transform3D)

Re: [JAVA3D] Origin of the 3dVector

2005-04-23 Thread Joerg 'Herkules' Plewe
From a first glance, View_Transform3D.setTranslation(new Vector3f(0.0f,0.0f,0.5f)); would in any case place the camera inside of the ColorCube.   Experiment a bit with the Z-value. Try 10 or -10 (dunno wich direction the camera is looking be default).   - Original Message - From: