Found the answer - seems like point anti aliasing is not supported in the directX version of java3d. Works fine in openGL.
Clifford Lyon wrote:
Hi - j3d newbie here. I have a class to plot a collection of points; I'd like them to be anti-aliased, but setting the property doesn't seem to have any effect. Does the flag get overridden somewhere possibly?
Here is an example using Shape3D; for me, these points are not Anti-Aliased.
TIA,
Cliff
public class ScatterBox extends Shape3D {
private PointArray pa = new PointArray(100, GeometryArray.COORDINATES | GeometryArray.COLOR_3); { for (int i = 0; i < 100; i++) { float x = (float) (Math.random() - 0.5); float y = (float) (Math.random() - 0.5); float z = (float) (Math.random() - 0.5); Point3f p3f = new Point3f(x, y, z); pa.setCoordinate(i, p3f); pa.setColor(i, new Color3f(1f, 0f, 0f)); } }
private Appearance app = new Appearance(); { app.setPointAttributes(new PointAttributes(5, true)); }
public ScatterBox() { super(); this.setGeometry(pa); this.setAppearance(app); }
public Shape3D getShape() { return this; } }
=========================================================================== 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".
=========================================================================== 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".