- To: visad-list@xxxxxxxxxxxxx
- Subject: Re: setPointSize makes points disappear
- From: Ed DeRouin <ed@xxxxxxxxxxx>
- Date: Fri, 15 Feb 2002 07:02:12 -0500
Thanks, Bill. I am using the OpenGL version of Java3D 1.2.1_03 on
WindowsMe OS. Write once, run almost anywhere, eh?
Ed
Hi Ed, > I am displaying x,y,z points in 3D, similarly to the 2D example P2_04 in > the tutorial. I can see the tiny points on the display, but when I add the > line > > dispGMC.setPointSize(20.0f); > > the points completely disappear. > > I compiled and ran example P4_14, which uses this line, and it works > fine. A little exploration revealed that if I remove the line much later > in the program > > dRenderer.setBoxOn( false ); > > the points disappear in this progam as well. I tried this in P4_14 and the points did not disappear. So I think this is a Java3D problem. Are you using the OpenGL or DirectX version of Java3D? I think DirectX is not so good with point and line sizes. Furthermore, the effect of setBoxOn() is to make a call to setWhichChild() on a Switch node in the Java3D scene graph. Point size goes into the PointAttributes of every Appearance in the scene graph. These two things should be independent in any correct Java3D implementation. Good luck, Bill ---------------------------------------------------------- Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706 hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738 http://www.ssec.wisc.edu/~billh/vis.html
- Follow-Ups:
- Re: setPointSize makes points disappear
- From: Bill Hibbard
- Re: setPointSize makes points disappear