Giter Club home page Giter Club logo

Comments (10)

willeastcott avatar willeastcott commented on July 28, 2024 3

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.

silvainSayduck avatar silvainSayduck commented on July 28, 2024 2

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.

willeastcott avatar willeastcott commented on July 28, 2024 1

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.

kungfooman avatar kungfooman commented on July 28, 2024 1

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.

willeastcott avatar willeastcott commented on July 28, 2024 1

Yeah, as a result, I'll close this issue since the work is continuing in the main repo.

from playcanvas-gltf.

aidinabedi avatar aidinabedi commented on July 28, 2024

Thank you @willeastcott. I'll take stab at it, hopefully, next month after some critical deadlines.

from playcanvas-gltf.

ThorstenBux avatar ThorstenBux commented on July 28, 2024

Hi @willeastcott , @aidinabedi , do you know if there has been any movement on a gLTF exporter?

from playcanvas-gltf.

aidinabedi avatar aidinabedi commented on July 28, 2024

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.

willeastcott avatar willeastcott commented on July 28, 2024

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.

kungfooman avatar kungfooman commented on July 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.