Since I don’t know if this is expected or a bug:
I was trying to draw a Sphere in wireframed mode, however the inner side isn’t visible.
Sphere s = new Sphere(48, 48, radius);/*, false, true);*/ Material m = new Material(getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md"); m.setColor("Color", ColorRGBA.Cyan); m.getAdditionalRenderState().setWireframe(true); Geometry g = new Geometry("DebugShape.ExplosionRadius", s); g.setLocalTranslation(explosivePosition); g.setMaterial(m); g.setCullHint(Spatial.CullHint.Never);
Now I can only see the outer side of the sphere, even though I set CullHint to Never.
If I set the 4th parameter (which is undocumented, by the way!) it inverts the normals, however the outside is invisible then. I can’t have both.
The Main question is: Is this a bug or is it intended, that the wireframe is “one sided”?