Hey, guys. I am using NullEngine on the node.js server.
With the babylonjs-serializers
's GLTF2Export.GLBAsync
exports nothing.
Is there any way to export the scene as glb with the NullEngine.
Hey, guys. I am using NullEngine on the node.js server.
With the babylonjs-serializers
's GLTF2Export.GLBAsync
exports nothing.
Is there any way to export the scene as glb with the NullEngine.
ping @bghgary
@JoeyKo Can you create a PG that works but doesn’t work with a NullEngine so I can investigate?
This PG requires the nodejs environment. so you need to run it locally
I don’t see any difference between using a null engine vs a normal engine.
PG: https://playground.babylonjs.com/#YEQXD2#1
The exported file obviously has some issues, but they are the same whether it is null engine or normal.
Skin is not exported - joins array is empty.
Yes, I know. This skin didn’t come from a glTF so it doesn’t have linked transform nodes, which is not supported yet in the glTF serializer, but this has nothing to do with a null engine.
Hello just checking in, are you still having issues? @JoeyKo
Yeah, still having the issues. @carolhmj
bringing @bghgary into the discussion again, and can you describe your issues in more detail? If possible? Gary didn’t find a difference in the export of your first PG, so maybe you could provide a different example.
There are two different topics we are discussing here. One is about the null engine which I believe has nothing to do with the problem. The second topic is that the exporter currently does not export skins that are not loaded from a glTF (i.e., skins with joints that have linked transform nodes). Adding support for this is a feature request.
greetings, We too are trying to achieve this with difficulties. What are we doing wrong with reference to NullEngine here? Seems the exported GLTF are missing lights and materials.
Additionally, we tried using our BabylonNative based image renderer. We thought perhaps it would be easy enough to try exporting GLTFs from our Native renderer and that also has issues (mainly dealing with weirdnesses converting Blob to ArrayBuffers). So we thought we’d fall back on using NullEngine as for this usecase we dont need to actually render anything to the canvas. If we can get this minimal PG to work, then all is well as we can just build a NullEngine/Node based backend to serve up GLTFs. @bghgary ?
Exporting glTF from Babylon Native is not currently supported. It’s tracked here: Add support for GLTF Serializer · Issue #1448 · BabylonJS/BabylonNative.
Whether using NativeEngine or NullEngine probably doesn’t make much difference in BabylonNative as the same problems will still occur.