Dear all! After the whole afternoon and evening of experiments, reading Java3D API documentation and tutorial I decided to ask a (trivial?) question.
I have set of objects (ColorCubes) close to the origin of coordinate system. I can't use setNominalViewingTransform() as I want to set up the "eye" to point [10,10,10] and let it look to the origin [0,0,0]. How? I think it must be so easy (and it must be in documentation) but I can't find it. 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)); ;-) Thank you a lot! Ondrej ------------------------------------------------------------- Ondrej Rohlik Automatic Control Laboratory Swiss Federal Institute of Technology (ETH) Physikstrasse 3, ETL K14.1 CH-8092 Zürich Email: [EMAIL PROTECTED] Office: +41 16 32 78 12 Fax: +41 16 32 12 11 Mobil: +41 76 540 17 81 Privat: +41 76 420 03 10 Kolbenacker 6/19, 8052 Zürich ICQ: 130294843 & 273683740 http://www.kiv.zcu.cz/~rohlik =========================================================================== 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".