Results 1 to 2 of 2
  1. #1
    Bit2_Gosu is offline Member
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    Default change viewing platform orientation

    Hallo dear community from Germany! (this is my first post, so I should be polite ;))

    In Java3d I have managed to move a viewing platform to another position:

    Java Code:
    Transform3D transform = new Transform3D();
    transform.setTranslation(new Vector3d(0,0,10)); 
    universe.getViewingPlatform().getViewPlatformTransform().setTransform(transform);
    Now I would like to change the orientation of the viewing platform (in which direction the viewer looks). I tried

    Java Code:
    transform.rotX(Math.PI/2);
    But it doesn't work yet.
    Is this way to change orientation maybe completely wrong?

  2. #2
    Bit2_Gosu is offline Member
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    Default

    Ok problem solved: You may only add one Transformgroup to the Viewingplatform. Therefore I had to combine my two Transforms by combining two Transformgroups.

Similar Threads

  1. Viewing contents of zip file
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-03-2008, 05:16 PM
  2. Viewing contents of JAR file
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-21-2007, 03:12 PM
  3. Viewing a user's periphials from an applet
    By jason2li in forum Java Applets
    Replies: 0
    Last Post: 08-07-2007, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •