:DI have made a wireframe model. So lines on back faces are visible.
Now i need that no line on back face should be visible. Can any 1 help me in geting out of this.
Thanks in advance.
Expecting a favourable reply
Regards
Rosemary
:DI have made a wireframe model. So lines on back faces are visible.
Now i need that no line on back face should be visible. Can any 1 help me in geting out of this.
Thanks in advance.
Expecting a favourable reply
Regards
Rosemary
You need to set the culling in your appearance
Appearance app = new Appearance();
PolygonAttributes polyAtt = new PolygonAttributes();
//Only lines, wireframe
polyAtt.setPolygonMode(PolygonAttributes.POLYGON_LINE);
//It depends on the order of the vertices in your geometry,
if it don't work, try PolygonAttributes.CULL_FRONT
polyAtt.setCullFace(PolygonAttributes.CULL_BACK);
app.setPolygonAttributes(polyAtt);
Hope it helps,
Rafael.-
i guess i cant explain u properly what i need
Ya the code given works but i need something else.
While culling it removes the portion of 3d objects.
Actually i dont need to cull the faces, what i need is whn i see my 3d shapes from any view it shd look as a whole ( not culled) and at the same time
the lines on back faces should not be visible.
So the geometry should not be affected but only the lines on back faces should be hidden from any view.
i think u can understand now.
thanks
rose
I don’t understand very well what are you trying to do.
Please correct me:
You have a model in memory.
You render it using Wireframe Mode (as done in my code)
3)You also render it with polygons (to see it shaded)
Questions:
Why do you need the back faces (in polygon mode) of the model to be visible??
Is it transparent??
Rafael.-