Hi Marco, I have done it by adding a second cube and then setting the render 
parameters
for this second cube to render in wireframe mode. Just add the second cube in the same
BG/TG as the the first one, so they have the same translation and rotation.

  This is the code to let the cube render in wireframe mode:

    Appearance app = new Appearance();

  // Select the color for wireframe lines
     Color3f objColor = col;
     ColoringAttributes ca = new ColoringAttributes();
     ca.setColor(objColor);
     app.setColoringAttributes(ca);

  // Here you set the width for the lines in wireframe
 // (as long as I know changing line width just works for OpenGL version).
     LineAttributes la = new LineAttributes();
     la.setLineWidth(3);
     la.setLineAntialiasingEnable(false); // Setting antialising to true it far more
slower.
     app.setLineAttributes(la);

  // This will force render in wireframe mode for the cube.
     PolygonAttributes pa = new PolygonAttributes();
     pa.setPolygonMode(pa.POLYGON_LINE);
     pa.setCullFace(pa.CULL_NONE);
     app.setPolygonAttributes(pa);

     YourCube.setAppearance(app);


      Greetings from Spain

          Hope it helps

           V�ctor

marco fiocca ha escrito:

> Hello everybody,
>         I have a problem an I don't know how to solve it, so I hope that someone can
> help me!
>
> I have a cube and at its borders I have to attach segments of different
> colors that emphasize some parts of the borders.
> I make these segments as LineArrays and I give them some coordinates lievely
> different from those of cube's vertices, in a way that they are rendered in
> front of the cube's faces when are visible, and are adiacent to the borders.
> The problem is that when I rotate the cube some lines didn't appear even if
> the correspondent border is visible; this is because the coordinates between
> border and line vertices are not exactly the same, and so the lines appear
> more far then the cube face.
> How can I solve my problem?
> There's not a way to outline the borders of a cube with different colors?
>
> Thanks in advance
>
> Marco Fiocca
>
> ===========================================================================
> 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".

--



    _____________________ooO_(_)_Ooo_____________________

  "Lo importante no es saber, sino tener el tel�fono del que sabe".

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