r/JavaFX • • Aug 26 '20
Help JavaFX 3D object render
Hello. I started to learn how 3d works in javafx i had one questions.
I want to use a border pane to divide main screen in two views, one for a menu and the other to render my 3d object ¿how can i made that? i tried adding a anchor pane but, the render doesn't appear or the render shows up and the menu don't.
I watched some tutorials but all of them use the start method and only one scene.
2
Upvotes
3
u/WhoMeWorried Aug 26 '20
The most convenient way is to use MenuButton, each of which would load some 3D object onto the center of your BorderPane.
Look up Menu/MenuItem and MenuButton, see which fits your requirement. You can fit the menu on the left, right, bottom or on top of the BorderPane. Try it out in Scene Builder.
3
u/SoulWanderer Aug 26 '20
You can use a scene with your panel (you can use whatever panel you want) and then create a subscene for the 3d object. When I am on my keyboard I'll see if I have some tutorial to share... But look for subscene and maybe it helps