• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java3D World coordinate system vs. Object coordinate system

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Im new to Java3D but have a fair to good amount of 3D application development experience. I am trying to write a swing application that has an object centered around the origin. I want to be able to rotate this object around, but it seems to me that when I perform the rotations using the functions
transform3D_object.rotX(radians);
etc, it rotates the object around the WORLD coordinate system. I am trying to figure out how to get the rotations to apply to the OBJECT's coordinate system. That is to say, the object has an implicit x,y, and z axis of its own. I want the rotations to be performed about the object's coordinate system. Therefore, say if the object is rotated about it x axis, the object's y axis will rotate around, so if you then do a rotation about the object's y axis, that rotation would not be the same as rotating the object around the world's y axis.
I see in a Java3D book I have that you can use quaternions to rotate an object about an arbitrary axis. I guess what i really want to know is that is it true that a) objects being rotated using the rotX function ALWAYS are rotated around the world coordinate axis, regardless of orientation of the object's coordinate system. and b) if so, what is the method for doing rotations about an object's coordinate system if a) is true.
Thanks for the help, I much appreciate it.
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi "Greg B", welcome to JavaRanch.
Sorry I can't answer your specific question as I don't know much about the Java3D API, although I have the Manning book and plan to go over it at some point.
In the meantime, please change your name to comply with the naming policy to which you agreed when you registered here. You need more than a single letter in your last name.


For your publicly displayed name,
use a first name, a space, and a last name.


You can change your name:
here

You can also find the naming policy:
here
Thank You!
[ June 28, 2002: Message edited by: Rob Ross ]
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic