• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Is there a maximum of PointLights to add to a Parent?

 
Bartender
Posts: 5567
213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi All,

just been adding 6 PointLights to my Group, however, only three show up. I searched through the documentation and on the internet, but I cannot find anything about a maximum. Any help? Or is there some pitfall that I am not aware of?

Thanks!
 
Bartender
Posts: 303
12
IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've never used that class, but have you tried removing one of the working ones in real time while the application is running to see if one of the others "activate"?
 
Piet Souris
Bartender
Posts: 5567
213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've added some togglebuttons to my code, where each togglebutton decides whether the corresponding light is on or off.

Initially, all togglebuttons are selected, so all lights should be on. Only three are visible though, left, right and top. You can see this by dragging over the box and rotating it. If you click on say left, then the left light goes out, and another light goes on.

Another thing that I noticed is that although all togglebuttons are selected, only the left one has a blue border. It almost seems as if these buttons are in a togglegroup, although that is not the case.

Admitted, I am reading the book "Learn JavaFX 17" (and if you want to buy it: buy the e-pub or pdf-version, since the book is a whopping 6 a 7 centimeters thick, making it hard to handle), and started reading at chapter 16, the 3D part, so I may have missed a thing or two
 
Lou Hamers
Bartender
Posts: 303
12
IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting, yeah I see the same thing you're describing (on Linux so it probably isn't an OS type thing unless you're on the same). Maybe there is a max of three... so you can't just go with an AmbientLight?
 
Piet Souris
Bartender
Posts: 5567
213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The thing is that I could not find anything about a maximum, not in the api and not on the internet. I did use AmbientLight, no problem there. And javafx 18 contains some extra lights as well: directional, spot. Go on with experimenting. Thans for reacting!

By the way: I am on windows.
 
eat bricks! HA! And here's another one! And a tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic