If it's not too much to ask, would like some help converting qml example

31 views
Skip to first unread message

Kyle Wolfe

unread,
Jun 17, 2015, 4:29:59 PM6/17/15
to go...@googlegroups.com
Full disclosure, I have no idea what gl programming really even is. I love Go and wanted to start to tackle it with something that interests me, and that would involve some 3d models. So I decided to convert the qml example of the gopher in to go-gl (https://github.com/go-qml/qml/tree/v1/examples/gopher). my source is here: http://gitlab.kylewolfe.me/kylewolfe/gl-gopher/tree/master.

I'm having a hard time understanding the use of pointers to floats (http://gitlab.kylewolfe.me/kylewolfe/gl-gopher/blob/master/main.go#L96). I'm sure theres a slew of other errors waiting behind this one, but if I could get some info on how to get passed line 96, that'd be great!

Thanks,
Kyle

Dmitri Shuralyov

unread,
Jun 17, 2015, 10:28:31 PM6/17/15
to go...@googlegroups.com
If it helps, I have a working example of a simple .collada loader and renderer at https://github.com/shurcooL/play/blob/master/97/main.go.

You can go get it (go get -u github.com/shurcooL/play/97) then cd into that folder and go run main.go to run.

I have no experience with loading/rendering .obj 3d models so I can't help there. But at a high level, your code looks reasonable.

Kyle Wolfe

unread,
Jun 18, 2015, 9:23:24 AM6/18/15
to go...@googlegroups.com
Thanks! I'll see if there's some things in there to hint at what I need to do here. Since I also have the blender file for the gopher, I may also try to use your loader on a collada export of the model.
Reply all
Reply to author
Forward
0 new messages