Relates :
|
|
Relates :
|
Take a look at the code in the attachment. It sets a MeshView with TriangleMesh and PhongMaterial of RED color and adds it to the scene. What you get is black rectangle. It is not obvious that in order to see the color of the material you have to set AmbientLight. I believe there should be default white AmbientLight if no ambient light is specified to the scene. It would make easier for developers to start with 3D in JavaFX.
|