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
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
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)
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: