Re: setPointSize makes points disappear

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 Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: