Hi,
I've been encountering some weird display behavior regarding the
width of lines (LineArray) and the size of points (PointArray)
I developped a program where you can draw or leave points on 3D
surfaces (imported VRML models).
I've been testing my program on Windows 98, Windows ME and Windows 2000.
On Win98, lines and points appear the way I assigned them to appear:
Lines are 3 pixel thick and points are 6x6 pixels square.
On Win2000, lines appear 1 pixel thick (so very difficult to see) and
points appear 1 pixel wide (almost invisble!)
On WinME, lines appear normally (3 pixel thick) but points are only 1
pix wide !!
I can't figure out if it's an OS problem or a Java3D installation
problem... Or a implementation problem...
Can you help me out on that one ?
I'm pretty new in Java3D and in programming in general !!
Thanks....
Here are some elements that might be important:
I can't remember which version of Java3D (OpenGl or ActiveX) I
installed on Win98 and Win2000, but on WinME I installed the OpenGl
one.
And here is the portion of code that is concerned:
[...]
Shape3D commentPin = new Shape3D();
PointArray pin = new PointArray(1, PointArray.COORDINATES |
PointArray.COLOR_3);
Appearance pinApp = new Appearance();
PointAttributes pinAtt = new PointAttributes();
pinApp.setPointAttributes(pinAtt);
pinAtt.setPointSize(6.0f);
commentPin.setAppearance(pinApp);
[...]
Shape3D segment = new Shape3D();
LineArray oneLine = new LineArray(4, LineArray.COORDINATES |
LineArray.COLOR_3 | LineArray.NORMALS);
Appearance lineApp = new Appearance();
LineAttributes bold = new LineAttributes();
lineApp.setLineAttributes(bold);
bold.setLineSize(3.0f);
segment.setAppearance(lineApp);
[...]
Thomas
_______________________________________
Thomas Jung
Architect, Research Scientist
Design Machine Group
University of Washington
Department of Architecture
Box 355720
Seattle, WA 98195-5720
[EMAIL PROTECTED]
_______________________________________
--
===========================================================================
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".