prefrontalcortex / UnityGLTF

Runtime GLTF Loader for Unity3D
MIT License
163 stars 41 forks source link

Sample Scenes can't be fetched? Don't know what I'm doing wrong. #115

Open Xantomen opened 1 year ago

Xantomen commented 1 year ago

I installed the package with the Package Manager, latest version. That's all good, I can export GLBs and so, but I don't understand how to make the Samples work.

This is what I receive whenever I try to run any sample Scene, I don't know what to do:

Error when loading AnimatedCube.gltf (C:/UnityProjects/DownOnly/Assets/StreamingAssets/http://localhost:8080/glTF-Sample-Models/2.0/AnimatedCube/glTF/AnimatedCube.gltf): HTTP/1.1 404 Not Found

Note: In reality, the reason I want to check Samples is because I seem to be unable to make the GLBs contain Cameras in any way, so I want to check if the Cameras get exported/imported when making GLBs of the Sample Scenes to guess what's wrong with my Scenes.

My GLBs export animations, transforms and textures all right, just I don't know what I have to do to export the Camera so later when I view the GLB somewhere else it will view the model from my Camera. :shrug:

Would appreciate some help or explanation. Thank you!

pfcDorn commented 9 months ago

hey, Camera import was missing. Will be in the next release!

hybridherbst commented 9 months ago

@Xantomen Cameras are exported correctly in the current available release already. Any enabled cameras in your exported hierarchy will be exported as cameras in the glTF file.

As pfcDorn mentioned, import of cameras was not supported but will be in a next release.

I'll keep this issue open to look at samples issue – the included samples are pretty legacy but we can check if we can replace it with something better or at least clean it up.