gltf
gltf copied to clipboard
How about a Hello World?
Hi,
I'm very new to Go and gltf. Is there any chance of you (or someone else) adding a "Hello World" example to display a rotating cube? The program would read a gltf file (e.g. Box.gltf) using gltf.Open and extract the necessary vertices to display a rotating cube using the simplest vertex and frag shaders.
My main difficulty is going from opening a gltf.Document to displaying something. An example would be nice.
Thanks Andre
I haven't used this library to render meshes using simple shader that works for a helloworld. You may have more luck checking other projects depending on qmunta/gltf: https://github.com/qmuntal/gltf/network/dependents
Anyway, I'll add this to my TODO list.
Just popping in here to say would love it too. I've been struggling to get this library to generate gltf from scratch, which I believe is noted inside the readme as something not fully covered.. tried to peruse other folks usage but not seeing many trying to do what I am