Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+18 votes

If you're having rendering issues with your jfx 3D boxes all showing up and having weird visibility through the middle, it's because JavaFx isn't able to recognize which object is in fornt of the others, and that's an issue with the "depth buffer" when setting the scene.

To fix this: When you create your scene, you need to set the depthBuffer to true in the fourth parameter. By default it's false which is why JFX doesn't know what to do with the multiple object rendering.

Scene scene = new Scene(group, width, height, true);


(This problem was driving my group INSANE, so I hope it helps if anyone else is having the same problem)

asked in CSC305 Fall 2022 by (1 point)

Great! Extra Q&A points awarded for sharing this with everyone!


Thanks a lot, your solution helped me fix the glitch I had.

Please log in or register to answer this question.