Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Lighting up 3D Objects in FX... AmbientLight and PointLight questions

KonradZuseMar 17 2013 — edited Mar 17 2013
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?
This post has been answered by shakir.gusaroff on Mar 17 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2013
Added on Mar 17 2013
2 comments
177 views