There is CullFace property in MeshView which allows to see 3D surfaces from inside, for example, if you put a camera inside a sphere. However the lightning would still be reversed.
For example, if you put a camera and a light source inside a sphere and set cullFace to None, the sphere surface will still be black if there are no light sources outside the sphere.
Run the attached sample. It shows several planes (2 triangles connected to form a rectangle) having different wind order and different colors. Light source is attached to camera. CullFace set to NONE.
Only those rectangles with correct wind order are rendered bright, other two are rendered black. When the whole thing is rotated 180 degrees, you can see that the same things happens to the rectangles which were bright - they became black and those which were black become bright.
For example, if you put a camera and a light source inside a sphere and set cullFace to None, the sphere surface will still be black if there are no light sources outside the sphere.
Run the attached sample. It shows several planes (2 triangles connected to form a rectangle) having different wind order and different colors. Light source is attached to camera. CullFace set to NONE.
Only those rectangles with correct wind order are rendered bright, other two are rendered black. When the whole thing is rotated 180 degrees, you can see that the same things happens to the rectangles which were bright - they became black and those which were black become bright.
- relates to
-
JDK-8144503 Wrong rendering of 3D back faces
-
- Closed
-