简体   繁体   中英

Is there a 3D scene graph implementation for libgdx?

I am using libgdx for some time now, and I have been asking myself for weeks now, if there is any suitable scenegraph implementation for libgdx. I do not mean the scene2d classes. I mean some graph function for 3d games. I searched a bit and did not find any... Do you know any?

Currently there is no 3D scene. It might be added in the near future. However the new 3D api provides everything to load a 3D scene (see my loading a scene with libgdx tutorial). It is also possible to load scene physics if your like (see the bullet ImportTest). So practically for the actual rendering a Scene3D would only have to take care about frustum culling and multiple render passes (like shadow mapping). This can be as simple as an array of model instances or an entity system if you like.

Probably not, but it depends on what exactly you're looking for. See https://code.google.com/p/libgdx-users/wiki/scene3d

If you just want to optimize loading and share model resources when rendering, it looks like the new Libgdx 3D API (will be part of the 0.9.9 release, part of the current nightly builds) has some support for that: http://blog.xoppa.com/loading-a-scene-with-libgdx/#more-71

If you're just looking for something to organize your objects, there may be a generic Java scene graph library that you can adapt to Libgdx. Try 3D scene-graph library for Java?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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