I'm not sure, but I believe there was a post similar to this some time ago, probably why you didn't get an answer straight away.
From what I remember the way you are doing it is correct, e.g., 2 Shape3Ds with appropriate polygon attributes. I don't believe the polygon offset was ever considered before. It seems like its a constant offset on the Z buffer, which means sometimes it would be correct, but at other times the wire frame would be offset to inside the filled shape. I think the solution last time was to add the 2 shape 3ds to a branch group in the correct order, so the filled shape was drawn before the wire frame. I suppose this was something to do with order of drawing. It might be worth search the archives, Kev Michael Saunders wrote:
I have not received a response to my last question for a few days so I am reposting a similar one assuming that my previous question has fallen to the side. Hopefully there is someone who can tell me the most efficient way to render in Java3D for the situation I am presenting: If I want to draw a shaded surface and the wire frame for a particular geometry must I create two Shape3D nodes (both based on the same geometry primative) and attach them to the transform group or is there a way to have a single Shape3D render both the shade and the wire frame of a particular geometry. If the latter is true can the shaded surface have different lighting effects and color attributes than the lines of the wire frame? If the former is true, will the polygon offset specified for PolygonAttributes prevent stitching of the wire frame mesh with the shaded surface? Finally, am I think about this all wrong? Is there a Java3D way of doing this more efficiently (and correctly)? Thanks, Michael =========================================================================== 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".
