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 -----
Sent: Saturday, April 23, 2005 12:05 PM
Subject: Re: [JAVA3D] Origin of the 3dVector

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);
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 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 to?
 
(IIRC, ColorCube is visible w/o light, right? Otherwise, some ambient light in the scene would be helpful....)
 
 
----- Original Message -----
Sent: Saturday, April 23, 2005 11:51 AM
Subject: [JAVA3D] Origin of the 3dVector

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 I can't find where id the origin of the 3d Vector on
the screen.
Can you help me?
 
=========================================================================== 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".

__________________________________________________
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".


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21.04.2005
=========================================================================== 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".

Reply via email to