You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
OpenXR supplies controller models as GLTF (GLB) data. These are totally dependent on the runtime the end user uses to play their game with and are thus not available during development but supplied when the game is started.
As the GLTF import code is only available in the editor the only option left is to duplicate the entire importer as part of the plugin (or in core for Godot 4)
Describe the feature / enhancement and how it helps to overcome the problem or limitation
The idea here is to move the importer code in a more general location. The editor will use it as before but in runtime it would now be possible to load external GLTF files.
There are two more changes needed here:
there is never a file involved, the GLTF data is held within a memory variable so the importer needs to be able to work with a memory stream
there is no need to first save the imported data into scene and mesh files to then be reloaded.
This would also solve problems for people working on online games where models could be supplied by the server.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
See section above
If this enhancement will not be used often, can it be worked around with a few lines of script?
This is critical to any OpenXR application and without the functionality available in Godot the only option is to duplicate the GLTF loader.
Is there a reason why this should be core and not an add-on in the asset library?
This is critical for VR to work out of the box.
The text was updated successfully, but these errors were encountered:
To clarify, the simplest version of this api would be getting an in-memory buffer, parsing it into the existing in-memory document format and then doing things with it, like using meshes with transforms, hierarchies and skeletons for display or saving to disk. The mirror for export too.
The api needs to be available during the game.
Godot has two separate universes for buffer based (network) and file based things which is confusing and bad. So we require an api that takes a File and another api that takes a StreamPeerBuffer. The file based api is here. The stream peer buffer api is missing.
Describe the project you are working on
Implementing OpenXR support for Godot
Describe the problem or limitation you are having in your project
OpenXR supplies controller models as GLTF (GLB) data. These are totally dependent on the runtime the end user uses to play their game with and are thus not available during development but supplied when the game is started.
As the GLTF import code is only available in the editor the only option left is to duplicate the entire importer as part of the plugin (or in core for Godot 4)
Describe the feature / enhancement and how it helps to overcome the problem or limitation
The idea here is to move the importer code in a more general location. The editor will use it as before but in runtime it would now be possible to load external GLTF files.
There are two more changes needed here:
This would also solve problems for people working on online games where models could be supplied by the server.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
See section above
If this enhancement will not be used often, can it be worked around with a few lines of script?
This is critical to any OpenXR application and without the functionality available in Godot the only option is to duplicate the GLTF loader.
Is there a reason why this should be core and not an add-on in the asset library?
This is critical for VR to work out of the box.
The text was updated successfully, but these errors were encountered: