Open br-matt opened 2 years ago
I would like to take this up :) ! Would a good start be from porting it from Three.js here
Hey thanks! That seems like a reasonable start to me. Maybe some of the BJS folks will chime in otherwise though @sebavan
Seems reasonable to me as well !!! let's see if @bghgary approves the idea ???
I don't see why this won't work.
Hey @lokiiarora just checking in and wondering how this was going ?
Hey @br-matt , working on it, I've got to the point where I can export a USDZ file with all textures, geometries and zip working fine.
Haven't specifically gotten the scene file .usda
working as such
Hey @lokiiarora guessing some things came up. Is it alright if I move this back to Ready status or are you still able to finish it? Not a big deal but want to open it up for someone else in case you became busy
https://github.com/Pryme8/USDZExport/blob/main/src/exporter/exporter.ts
So Ive got this to the point where it will load nearly the same as the Three.js export.
There are a few TODOs but those are probably out of scope for the initial commit.
One thing that I could use some help with is why some geometry is not loading on the viewer even though the underlying buffers are the same on both exports from Three.js and our export. Not sure how that works but yeah....
Also don't want to spend a ton of time on this as the bounty would then become not cost effective for my time.
Ours is on the left, Three.js is on the right.
Pretty sure the color difference is the normal texture being in sRGB space instead of raw. That is on the list of TODOs that needs to be fixed.
Wow awesome @Pryme8 :) thanks for picking this up instead. @sebavan what do you think maybe forums is best place or here for assistance ?
Yup the PR is up so we can discuss on the PR on the forum. @bghgary and @popov72 will do a first PR pass there
requirements
Mesh exported as USD can be loaded into Unreal Editor with Meshes and Materials showing up correctly. PBR Material exported correctly as well.
Mesh exported as USDZ can be viewed in AR using iOS built in viewer. Meshes and Materials showing up correctly with PBR or not.
Documentation in the BJS Docs somewhere
recommended approach
None
Notes
Skeletons, Lights, Node Materials and many other things USD supports are out of scope for this first version