Hi David,

>From README of Java3D DirectX version:

=====================================================
Information on the Direct3D Implementation of Java 3D
=====================================================

  Unsupported Features
  --------------------
  The following features are currently unsupported in the Direct3D
  implementation of Java 3D:
    Line width
    Line antialiasing
    Point antialiasing
    PolygonAttributes backFaceNormalFlip
    RenderingAttributes ROP_XOR
    Stereo

 Limited Support
  ---------------

 if the driver did not expose D3DPMISCCAPS_LINEPATTERNREP capability
  bit then it didn't support line patterns. A solid line will be shown
  in this case. Most driver currently available need to workaround
  using reference mode.

Use OpenGL version of Java3D if line width and pattern is a must
in your application.

- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.


>Date: Tue, 16 Jul 2002 08:50:56 +0100
>From: David Wedge <[EMAIL PROTECTED]>
>Subject: [JAVA3D] LineAttributes problem
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
>X-Priority: 3
>X-MSMail-priority: Normal
>Delivered-to: [EMAIL PROTECTED]
>
>Dear list,
>I am trying to apply style properties to a line. When I use the following code,
the color is applied but the linewdith and dashpattern are ignored when the line
is rendered. Am I missing something?
>
> Point3d point1=new Point3d(0,0,0);
> Point3d point2=new Point3d(1.0,1.0,1.0);
> LineArray lineTest =new LineArray(2,LineArray.COORDINATES);
> lineTest.setCoordinates(0,new Point3d[]{point1,point2});
> Appearance app=new Appearance();
> LineAttributes attr=new LineAttributes();
> attr.setLineWidth(5.0f);
> attr.setPatternMask(0x00ff);
> app.setLineAttributes(attr);
> ColoringAttributes colAttr=new ColoringAttributes(new
Color3f(Color.red),ColoringAttributes.NICEST);
> app.setColoringAttributes(colAttr);
> Shape3D sh=new Shape3D(lineTest,app);
> objRoot.addChild(sh);
> objRoot.compile();
>
>Thanks in advance,
>David

===========================================================================
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".

Reply via email to