Page 1 of 1

Skeletal animation support

Posted: Fri Dec 07, 2012 2:49 pm
by jonaspm
Dont have enough time to explain, but check this out

http://code.google.com/p/glsnewton/down ... r&can=2&q=

Posted: Sat Dec 08, 2012 2:39 pm
by jph_wacheski
nice stuff,. I hope to see some of this integrated into zge at some point.

Although, if we did have animated skeletal meshes, I would loose so much game-dev time building meshes and animations,. . lolz.

Suppose there are ready-made free ones floating around,. .

Posted: Sat Dec 08, 2012 8:35 pm
by Kjell
:?

Should be build-in yea. But in case you don't want to wait you could script this yourself. Be prepared for some serious headaches though ..

- The .3ds format doesn't support bones & weights¹, so you need to "roll" your own exporter / importer.
- The Mesh component doesn't support custom attributes, so upload your mesh using pure OpenGL.
- The Shader component doesn't support uniform matrix arrays², so .. again pure OpenGL to the rescue.
- There's no matrix variable type & math available in ZGE, so you need to do this using arrays & functions yourself.
- Arrays cannot be referenced / passed as argument³, so writing a isolated library is virtually impossible.

¹ Although you can bake your weights as vertex colors if you're using only 2 bones per vertex.
² It used to actually, but Ville removed it in favor of a sampler based solution.
³ Nor can you access Model-defined arrays ( this is a known bug ).

Image

*Quick & ugly rig + ultra low-color to keep the file-size down.

K

Posted: Sun Dec 16, 2012 7:11 am
by jonaspm
what do you think about this?
http://assimp.sourceforge.net/

Can it be used in ZGE?