Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SaveNode GLTF support #595

Open
peardox opened this issue Apr 2, 2024 · 2 comments
Open

SaveNode GLTF support #595

peardox opened this issue Apr 2, 2024 · 2 comments

Comments

@peardox
Copy link
Collaborator

peardox commented Apr 2, 2024

I notice that PasGLTF is read/write so this feature is desirable and appears already possible (to an extent?)

x3d files are massive while glb would be a lot more reasonable

@michaliskambi
Copy link
Member

Yes, this is planned.

@michaliskambi
Copy link
Member

I just finished a few "prerequisites" of it.

Namely, we had some hardcoded assumptions in our infrastructure that "X3D is the only model format we can write". They are all gone now :) This means that

  • SaveNode can now save other model formats. The first, aside from X3D, is STL -- as the simplest model format in the world, STL was nice to quickly test things :)
  • tovrmlx3d is now named castle-model-converter and supports command-line that allows to provide output type. ( https://castle-engine.io/castle-model-converter ). castle-model-converter input.x3d output.stl now works.
  • view3dscene is now castle-model-viewer and the "Save As" dialog allows to choose any supported output extension, including STL ( https://castle-engine.io/castle-model-viewer )
  • and even our online converter ( https://castle-engine.io/convert.php ) now supports other output formats. Again, the first new output format is STL, in addition to X3D.

I will announce it soon along with castle-model-viewer 4.4.0 release.

This opens the door for upcoming glTF output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants