#Very silly doubt regarding khronosgroup gltfs

27 messages · Page 1 of 1 (latest)

gritty lotus
#

first of all i would like to apologize if this question goes against server rules but this is really important for me and i cant figure out an answer anywhere else .I found this github of gltf assets by khronos group https://github.com/KhronosGroup/glTF-Sample-Models/blob/main/2.0/Buggy/glTF-Embedded/Buggy.gltf
and when i click its raw to get this https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/Buggy/glTF-Embedded/Buggy.gltf

i can use this in my projects ,etc...

i am assuming its just an asset in the github hence its working but my i am tryin to use one of my assets i uploaded along with a project in a github i cant use it
the same raw link of my gltf:

https://raw.githubusercontent.com/Anupam-Kumar2505/Sangeet-Music-APP/main/FrontEnd/public/Headphones/scene.gltf

Please help me figure out why, whats the difference and how do i achieve the same properties as above

GitHub

glTF Sample Models. Contribute to KhronosGroup/glTF-Sample-Models development by creating an account on GitHub.

mild lion
#

Gltf use multiple files generally

#

Like a .bin with the data in it

gritty lotus
# mild lion Gltf use multiple files generally

yeah but even when i use just the gltf file, like i went to the assets folder clicked on just the gltf, clicked on raw, used it, it still works, mine doesnt... is it something embedded inside it? or is it hosted somewhere i cant figure it out

mild lion
#

Yours use a bin file, do you have it?

gritty lotus
#

right beside it

gritty lotus
# mild lion

yeah this too, the uri in the gltf by khronos group is like sooo long and mine is this?? how and why?

mild lion
#

In the uri, you can put a file or a base64 containing the entire data directly

#

Can you check that this bin file is found by your program? You may have a working directory issue

gritty lotus
mild lion
#

No idea unfortunately, Blender might be able to do it? But I'm not sure

gritty lotus
#

nvm nvm , it doesnt work that way im dumb, even the gltfs one (without the embedded is working)

gritty lotus
mild lion
#

Depends on your gltf reader

#

The gltf I use are from the same repo you linked

gritty lotus
# mild lion Depends on your gltf reader

okay let me describe what i am using this for , im building a mapbased mobile app and i want to display 3d models on that , for some reason the /...../..../..... .gltf type of directories is not working so im resorted on using this, now tell me what type of gltf reader do i have

#

im really beginner at this and sorry in advance if it is getting annoying for you

steady robin
#

just fyi, the gltf people hang out on the khrnos server,
#invite message

gritty lotus
steady robin
#

but if the viewer is your code then you are going to be able to inject logging to know why it failed to load

gritty lotus
#

im sorry i dont understand?

steady robin
#

if the program that is having problems displaying your gltf is your program, as in you made it, then you should be able to add logging and error handling to detect why it failed to load/display

gritty lotus
#

im hoping by program you mean my app, yes im building the app but it is using services of a map based service, so even if i try to debug i wont get that far, but this doubt is irrespective of what i use, in my other projects too it doesnt load so yeah, its the link and export settings and something else ig

#

im sorry, as i am writing this , my program suddenly worked, i tried it with a new model and it was an issue of scaling+export settings, i tried toggling with this one and it worked

#

i want to thank everyone in this thread and sorry if i wasted your time , and genuinely i want to say it didnt work before i have done this , maybe they updated the version thats why