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);
View_Transform3D.setTranslation(new Vector3f(0.0f,0.0f,0.5f));
View_TransformGroup.setTransform(View_Transform3D);
TransformGroup View_TransformGroup = vp.getMultiTransformGroup().getTransformGroup(0);
Transform3D View_Transform3D = new Transform3D();
View_TransformGroup.getTransform(View_Transform3D);
View_Transform3D.setTranslation(new Vector3f(0.0f,0.0f,0.5f));
View_TransformGroup.setTransform(View_Transform3D);
Is it correct or not ?
Regards,
Saeed
Joerg 'Herkules' Plewe <[EMAIL PROTECTED]> wrote:
Transform3D trans3D = new Transform3D();
trans3D.setTranslation(new Vector3f(0.0f,0.0f,0.0f));is pretty much the same asTransform3D 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 to?(IIRC, ColorCube is visible w/o light, right? Otherwise, some ambient light in the scene would be helpful....)=========================================================================== 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".----- Original Message -----From: Saeed AnsariSent: Saturday, April 23, 2005 11:51 AMSubject: [JAVA3D] Origin of the 3dVectorHello,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 I can't find where id the origin of the 3d Vector onthe screen.Can you help me?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.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".