java3d-interest: I've downloaded the java3d-1_3-windows-i586-directx-sdk.exe from java.sun.com and had it installed in my win2000professional OS. It seems to work well with my "j2sdk-1_4_1_01-windows-i586.exe". Also I can run the java3d demo _HOME\demo\java3d\PickTest\PickTest.class properly. Yet when I try to change the view mode of the javax.media.j3d.View object using method View.setProjectionPolicy(View.PARALLEL_PROJECTION), I found that it didn't show the effect as expected, with my customed Transform3D object for the view branch, in another java3d program. Then I modified the "init()" method of the demo "PickTest.java" and the problem appeared again--when setting the projection policy of View to View.PARALLEL_PROJECTION, my customed Transform3D object takes no effect, yet the Transform3D object work well for View.PERSPECTIVE_PROJECTION.
Is there anything undone before I should set the projection policy? I just want to move the view point a little more far from (0,0,0). PickTest.java original code: ............... u = new SimpleUniverse(c); // This will move the ViewPlatform back a bit so the // objects in the scene can be viewed. u.getViewingPlatform().setNominalViewingTransform(); ................. changed to: ............. u = new SimpleUniverse(c); double viewAngle = Math.PI * 0.1, viewDistance = 5; Transform3D normalViewTrans = new Transform3D(); normalViewTrans.set(new Vector3f(0f, (float)(Math.sin(viewAngle) * viewDistance), (float)(Math.cos(viewAngle) * viewDistance))); Transform3D t = new Transform3D(); t.rotX(-viewAngle); normalViewTrans.mul(t); u.getViewingPlatform().getViewPlatformTransform() .setTransform(normalViewTrans); ....................... Recompile the PickTest.java and run it, then you will find two complete different scene when you now click the different "View Mode" radios. Only the "Perspective" mode workes properly. Thanks and best regards, ioly [EMAIL PROTECTED] 2002-11-19 =========================================================================== 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".