Lighting up 3D Objects in FX... AmbientLight and PointLight questions
Okay so, from what I've seen from the 3d build has shown us how to use PointLight, but when I try to use AmbientLight I get nothing but a blackBox.
http://download.java.net/jdk8/jfxdocs/javafx/scene/AmbientLight.html
Defines an ambient light source object. Ambient light is a light source that seems to come from all directions.
I looked into the "LightBase" superclass and found things like "lighton" and "scope" for which I added my box into the scope, and made sure my light was on
light.getScope().add(f);
System.out.println(light.getScope());
System.out.println(light.isLightOn());
it was added to the root group originally as a point light. I tried changing it's location, and whatever I could, but I'm still left with a black box... If light is supposed to come in at all directions, this bad boy should be blue.
I want to be able to color all of my boxes different colors without having a light glare, or any interference with what I want to have on the screen..... Thoughts?