Blockade-Games / BlockadeLabs-SDK-Unity

44 stars 16 forks source link

Download glb from API #9

Open yosun opened 4 months ago

yosun commented 4 months ago

Is there a way to download .glb from the API?

StephenHodgson commented 4 months ago

Is there a way to download .glb from the API?

There isn't a way to do this. But the latest version in the app store does support mesh generation.

See #7

yosun commented 4 months ago

Hence why it's a feature request? The web app generates .glb so I assume the server is already setup to generate the .glb ... just expose the API

yosun commented 4 months ago

Major issue is that the depth mask shader does not work for visionos's strict URP - but I have been able to load .glb at runtime https://github.com/Blockade-Games/BlockadeLabs-SDK-Unity/issues/8

StephenHodgson commented 4 months ago

Hence why it's a feature request? The web app generates .glb so I assume the server is already setup to generate the .glb ... just expose the API

No API needed. Mesh generation is done in the unity package directly based on the depth information.

yosun commented 4 months ago

ah only quickly tested on visionos -

is that editor only or runtime as well?

if mesh is generated what's with the depth masks? Shader 'BlockadeLabsSDK/BlockadeSkyboxDepth etc

StephenHodgson commented 4 months ago

is that editor only or runtime as well?

Yes you should be able to request a skybox at runtime and it generate the mesh for you. Unfortunately I think it is going to use the shader that breaks for visionOS. I believe a fix is in progress for #8

Edit: I was informed that mesh is driven completely by shader. So you'll likely need to download directly in website until it can be addressed properly.

yosun commented 4 months ago

or just request that they add a .glb to their API endpoint