Viewer Positioning

  5 posts   Feedicon  
Replies: 4 - Last Post: July 14, 2010 22:17
by: Bergtroll
showing 1 - 5 of 5
 
Posted: July 14, 2010 11:16 by Bergtroll

I have not found a way yet to Setup the initial users view point viewing direction, I guess I overlooked something, can you help me out ?

 
Posted: July 14, 2010 12:17 by Bruce Schubert
My project, http://cps.kenai.com, will start making heavy use of the 3D viewers in about two weeks. Right now I'm trying to wrap up v1.0 help set and docs for the app. I hope to be of assistance after that.

-- Bruce
Emxsys.com
 
Posted: July 14, 2010 13:13 by Bergtroll

Hi Bruce, nice to see you here. Good luck for your new version of the CPS, I already took a look and think its a really interesting project.

I also asked the questions in the VisAD mailing list and I am going to collect the answers in this forum as well :-)


Quoted from VisAD mailing list, Answer from Bill Hibbard, 14.07.2010, 14:50

You should be able to do this via the setMatrix() method of the ProjectionControlJ3D you get from DisplayImplJ3D.getProjectionControl(). Of course, you've got to figure out how to set a user view point as a 4x4 matrix.

Can any active VisAD programmers suggest tools to help define J3D matrices?


 
Posted: July 14, 2010 22:05 by Bergtroll

Quoted from VisAD mailing list, Answer from Tom Rink, 14.07.2010, 15:36

I believe Transform3D in Java3D has methods which will help you.


 
Posted: July 14, 2010 22:17 by Bergtroll

Quoted from VisAD mailing list, Answer from Curtis Rueden, 14.07.2010, 18:39

As part of VisBio, I wrote some helper methods to zoom, translate and pan a display. They take care of applying the correct 4x4 >matrix to the projection control (using DisplayImpl.make_matrix). You can find the code here:

http://www.loci.wisc.edu/trac/java/browser/trunk/components/visbio/src/loci/visbio/view/ViewHandler.java?rev=5093#L124

Cheers, Curtis


Replies: 4 - Last Post: July 14, 2010 22:17
by: Bergtroll
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close