简体   繁体   English

如何获得功能,例如在JavaFx 3d中将场景放置在场景中

[英]How to get functionality like placing a scene with in a scene in JavaFx 3d

I've recently started working with javafx 3d. 我最近开始使用javafx 3d。 Before that I worked with cocos2dx, a C++ 2d engine. 在此之前,我曾使用过C ++ 2d引擎cocos2dx。 So, In cocos2dx, there is a layer concept, in which we can add elements in layer. 因此,在cocos2dx中,有一个层概念,我们可以在层中添加元素。 This layer has its own coordinate system. 该层具有自己的坐标系。 So when I add layer inside a layer, the parent layer has its own coordinate system and the child layer has its own. 因此,当我在层内添加层时,父层具有自己的坐标系,子层具有自己的坐标系。 If the position of the child layer is updated/translated, the position of objects inside the child layer also gets updated accordingly. 如果子层的位置被更新/翻译,则子层内对象的位置也将相应地更新。 So how can I achieve this kind of functionality in JavaFx 3d. 因此,如何在JavaFx 3d中实现这种功能。 Specifically, I am looking for something like parent and children node in JavaFx 3d, in which parent has its own coordinate system and camera and children has its own. 具体来说,我正在寻找JavaFx 3d中的父级和子级节点,其中父级具有自己的坐标系,而相机和子级也具有自己的坐标系。 Does javaFx 3d supports this kind of scene arrangement/functionality?, if yes, how can I achieve the same. javaFx 3d是否支持这种场景布置/功能?如果可以,我如何实现相同的效果?

SubScene可能就是您想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM