glm model loader back

(L) [2007/07/09] [hanatos] [glm model loader] Wayback!

I meant to open-source this some time ago. It's a [LINK http://www.uni-ulm.de/~s_jhanik/glm.h C99 header file able to load ghoul2 models] with quaternion based skeleton (as used in Jedi Academy or Soldier of Fortune). Maybe for clarity the [LINK http://www.uni-ulm.de/~s_jhanik/Quaternion.h quaternion implementation] is interesting as well. It's C99, so it will probably not compile out of the box using C++, but I'm sure everybody can manage that.


I was able to load this very RTRT-suitable lo-poly model (3k tris) from the demo of JA and render it fully animated with ~20fps on a core2duo (2x2 BIH). wonder what you guys could do.. [SMILEY Wink]


[IMG #1 ]
[IMG #1]:Not scraped: https://web.archive.org/web/20071028084241im_/http://www.uni-ulm.de/~s_jhanik/jaden.png
(L) [2007/07/09] [craouette] [glm model loader] Wayback!

where can we find sample files ?
(L) [2007/07/09] [toxie] [glm model loader] Wayback!

buy the games.. ;)

there are also some mods for these games out there that use this format.


btw: lol @ "bonedreggn" in glm.h
_________________
The box. You opened it. We came.
(L) [2007/07/09] [craouette] [glm model loader] Wayback!

you can find some here:

[LINK http://jediknight2.filefront.com/files/Jedi_Knight_II/Models;679]

pk3 file can be unpacked with winrar.


pierre
(L) [2007/07/09] [hanatos] [glm model loader] Wayback!

oh. maybe i should have added that.


yes, unpack the pk3 (seems to be std zip file). you need a .glm and the matching .gla.


for the above example it was assets1.pk3: /models/players/jedi_tf/model.glm and /models/players/_humanoid/_humanoid.gla and the /models/players/jedi_tf/model_siege.skin file to chose the clothes etc. in the header there is a #if 0-ed main function that should explain how to load these files.

back