r/JavaFX • u/dunc-60 • Jun 20 '24
Help Javafx handling perspective
Have used javafx to develop an app for modeling real estate. Uses the Meshview class to create walls, windows, floors, roofs etc then assembled them into a structure somewhat like building with Lego. Difficult part is retaining correct perspective when the model is rotated on its x, y or z axis. Has anyone run into this issue on a similar app?
2
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jun 23 '24 edited Jun 24 '24
As you mentioned above, you didn't specify the depth buffer for the (sub)scene before. Maybe that was the reason it didn't work as expected? Transforming the camera correctly should produce all views you need.