How to overlay GUI over 3D scene in JavaFX?

拥有回忆 提交于 2019-12-04 14:13:15
José Pereda

The best solution for what you are looking for is the SubScene, a built-in JavaFX container:

The SubScene class is the container for content in a scene graph. SubScene provides separation of different parts of a scene, each of which can be rendered with a different camera, depth buffer, or scene anti-aliasing. A SubScene is embedded into the main scene or another sub-scene.

If you have a look at the 3DViewer project, you'll find it is like the pictures you have posted:

You can find a small sample of how to add a subScene to a regular scene in this question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!