Comments (10)
I've just checked in a super-preliminary sketch of a GLB exporter:
https://github.com/playcanvas/playcanvas-gltf/blob/master/src/export-gltf.js
Right now, it just generates a download of a GLB containing the entity hierarchy. Ignores meshes, animations, lights and cameras for now. But it's a starting point! Checking something in just in case anybody else wants to contribute. 😄
from playcanvas-gltf.
Hi!
I am also trying to export a scene at runtime, and I was wondering what was the status on this?
My use case is to get glTF files (or if not possible some other 3D format) from some old PlayCanvas JSON assets for which I unfortunately do not have the original models anymore. As far as I understand, loading these JSON files is currently only doable at runtime, and as such, a runtime exporter would also be needed...
I have taken a look at the very initial export-gltf.js
file, but I do not understand how I could build on it, as I am not sure the underlying 3D data that would need to be packaged is actually accessible? @aidinabedi would you be able to share some insight and/or code?
Thanks a lot in advance!
from playcanvas-gltf.
Not yet @ThorstenBux (at least, not from me). I'm not sure if @aidinabedi looked into this at all. Just so you know, we're making really awesome progress fully 100% integrating glTF (GLB specifically) into the Editor itself. While it doesn't have glTF export in the initial release, it would be a cool feature to add (e.g. right click any entity in the hierarchy and say 'Export GLB'). cc @slimbuck
from playcanvas-gltf.
I am also trying to export a scene at runtime, and I was wondering what was the status on this?
Current status is that this repo is somewhat obsolete and the active development of glTF is in the engine itself now.
I'm happy that @willeastcott is continuing the work on the exporter here: playcanvas/engine#3366
from playcanvas-gltf.
Yeah, as a result, I'll close this issue since the work is continuing in the main repo.
from playcanvas-gltf.
Thank you @willeastcott. I'll take stab at it, hopefully, next month after some critical deadlines.
from playcanvas-gltf.
Hi @willeastcott , @aidinabedi , do you know if there has been any movement on a gLTF exporter?
from playcanvas-gltf.
Hello @ThorstenBux. We've actually started working on a glTF exporter. However, it's written entirely in TypeScript (to reduce development time) and I'm not sure how to contribute it back to this repo. I'm open to suggestions, @willeastcott?
from playcanvas-gltf.
So here's the thing @aidinabedi. This repo will probably be deprecated soon because the main engine repo is about to receive first class support for loading GLB files. However, the engine won't (at least initially) have support for exporting glTF. So I'm wondering if this might warrant a new repo (called playcanvas-gltf-exporter or something). 😄
from playcanvas-gltf.
@aidinabedi Do you share the source of the exporter somewhere? I converted lots of playcanvas-gltf code to TypeScript aswell, to make it easier to read, debug and composable with other TS projects. https://github.com/KILLTUBE/playcanvas-gltf
Currently working on another project, but once I come back to 3D programming, I would enjoy synthesizing all features together through TS.
from playcanvas-gltf.
Related Issues (20)
- Exported model from Blender 2.83 LTS breaks ForwardRenderer HOT 13
- Animation doesn't play
- I need help getting this gltf file imported into playcanvas HOT 3
- AnimationKeyable#clone ignores inTangent/outTangent HOT 3
- Hello, I'd like to ask which JSDoc template you use? HOT 4
- new `pc.Vec3`/`pc.Quat` in `AnimationCurve.prototype.evalCUBICSPLINE_GLTF_cache` HOT 2
- Replace curve names (strings) with IDs (numbers) HOT 2
- AnimationSession for curves HOT 4
- AnimationKeyable - normalize() is not a function HOT 3
- Error loading Draco model with latest version of glTF Loader HOT 2
- A simple gltf cube render incorrectly in playcanvas gltf viewer, but it works in other engine HOT 2
- KHR_materials_unlit not correctly handled HOT 1
- Point cloud not rendered HOT 4
- [Feature Request] Support error handler HOT 4
- Hardcoded path to playcanvas.github.io HOT 1
- Assigned texture not mapped correctly HOT 2
- Some models render incorrectly with playcanvas-gltf HOT 1
- feature request about animation playback HOT 3
- Pictures that are not a power of 2 cannot be displayed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playcanvas-gltf.