I load a vrml file which is a cylinder
(d=105mm, h=180mm) to java 3d viewer but I can not see it clearly. The code is
like following,
Transform3D viewTrans = new
Transform3D();
Transform3D eyeTrans = new Transform3D(); sceneBounds =
(BoundingSphere)branchRoot.getBounds();
Point3d center = new Point3d(); Vector3d temp = new Vector3d(center); viewTrans.set(temp); temp.x =
0.0;
temp.y = 0.0; temp.z = 200; eyeTrans.set(temp); viewTrans.mul(eyeTrans); universe.getViewingPlatform().getViewPlatformTransform().setTransform(viewTrans); only when I set temp.z = 200 I can see something otherwise nothing shows
up. I also loaded a small cylinder(r=1) before and set temp.z = 10 and it works
great.
Anyone can tell me anything wrong within my
code?
===========================================================================
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".
|
- [JAVA3D] view problem A. Murat Tanyer
- Re: [JAVA3D] view problem Simeon H.K. Fitch
- [JAVA3D] View problem Nirun Sereesontivong
- Re: [JAVA3D] view problem Yuefeng Kang
- Re: [JAVA3D] view problem Mark McKay