Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about a Hello World? #44

Open
andrebolle opened this issue Nov 27, 2021 · 2 comments
Open

How about a Hello World? #44

andrebolle opened this issue Nov 27, 2021 · 2 comments

Comments

@andrebolle
Copy link

andrebolle commented Nov 27, 2021

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

@qmuntal
Copy link
Owner

qmuntal commented Nov 30, 2021

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.

@xackery
Copy link
Contributor

xackery commented Jul 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants