[Algorithms] OT: View to the origin in Java3D API (cont...)
Brought to you by:
vexxed72
|
From: Ondrej R. <ro...@co...> - 2003-12-14 21:23:46
|
I think that I should add few remarks on what I do know: I can acces the ViewingPlatform and I can use it to change the position of the "eye" by this: ViewingPlatform vp = simpleU.getViewingPlatform(); Transform3D t3d = new Transform3D(); t3d.set(new Vector3d(3.0, 4.0, 5.0)); vp.getViewPlatformTransform().setTransform(t3d); If I use t3d.set(new Vector3d(-3.0, -4.0, 5.0)); command instead of t3d.set(new Vector3d(3.0, 4.0, 5.0)); I will have all my ColorCubes (located in the origin) in the upper right corner istead of in the lower left corner. What I don/t know is how to change it in order to have the ColorCubes (the origin) in the center of the window. Of course I need other answer than t3d.set(new Vector3d(0.0, 0.0, 5.0)); ;-) Thanks Ondrej |