gltf icon indicating copy to clipboard operation
gltf copied to clipboard

How about a Hello World?

Open andrebolle opened this issue 3 years ago • 2 comments

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

andrebolle avatar Nov 27 '21 15:11 andrebolle

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.

qmuntal avatar Nov 30 '21 16:11 qmuntal

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

xackery avatar Jul 09 '22 03:07 xackery