Page 2 of 6

Posted: Wed Feb 07, 2007 3:53 pm
by Wobble
[out]

Posted: Mon Mar 12, 2007 11:59 pm
by Rheini
I tested on a file. I think this function just decompresses the gr2 file and returns the raw data.

Posted: Mon Mar 19, 2007 12:16 pm
by Rheini
I tested Ykkrosh's approach on a Settlers 2: building. works quiet well.
http://img106.imageshack.us/my.php?image=bildhy8.jpg

Posted: Mon Mar 19, 2007 2:45 pm
by mambox
just tried now with gmax and some 'cars' granny..only a wheel out script,the viewer watch correct cars and textures...

nothing good for me in this.

without sdk nothing is documented..whats about:
GrannyConvertFileInfoToRaw@8 _GrannyConvertFileToRaw@8 _GrannyConvertIndices@20 _GrannyConvertPixelFormat@32 _GrannyConvertSingleObject@16 _GrannyConvertTree@12 _GrannyConvertTreeInPlace@16 _GrannyConvertVertexLayouts@20

etc...

Posted: Mon Mar 19, 2007 7:29 pm
by Rheini
So I assume that you mean only 1 wheel of the car was imported into gmax.
The cause might be that the program only exports the first mesh in the file.
Here's a slightly modified version that outputs all meshes.

Posted: Tue Mar 20, 2007 4:01 pm
by mambox
slightly modified that make it!

dunno where you found it but work like a charm,at least for the granny models i have.

time to render it ;)

thanks!

what do you suggest to render it?

Posted: Tue Mar 20, 2007 4:20 pm
by Rheini
Compiled it myself.

Posted: Tue Mar 20, 2007 5:28 pm
by mambox
thats the secret...you master it!

Posted: Wed Mar 21, 2007 10:08 am
by Rheini
Still wondering how they save the bones and that stuff.

Posted: Sun Mar 25, 2007 2:03 pm
by mambox
found this...

Posted: Sun Jan 20, 2008 1:35 am
by Rheini
This guy also coded some Granny supporting stuff:
http://www.codesuppository.blogspot.com/

Posted: Tue Jan 22, 2008 5:58 pm
by mambox
This guy just rock!

i had lost the place but played with some kinetik sdk and it's amazing ;)

Re: granny engine .gr2 question

Posted: Thu May 15, 2008 1:11 pm
by federico
I'm not a real programmer, though I have some knowledge about game development.
I'm interested in this topic because I want to create a plugin to grab the gr2 animations. To me the geometry is not interesting (though is useful to have) but the real divide between a professional product and an indie production is the animation quality. I'm much into the adventure genre: find me a moddable game with good talking animation to grab... :?

I took the Neverwinter Night importer and I started to modify it. Here' some tings I noticed and some thoughts:

- You can be successfull or not depending by the granny2.dll version. Some files are opened with a version and not another one. I'm using the granny crowd demo dll (2.6.0.10 version). This is a serious limitation, because I won't be able to tell if the plugin would work in every condition. I'm currently working with two adventures "murder on the orient express" and "And there were none" : I'm able to iimport the skeleton from the model file as well as the animation file from of the former but only from the model file of the latter.

- The NW2 importer is used to grab the skeleton data. In the source you can clearly see that the gr2 data are converted to raw data and then composed to be read and useful. I'm not able to dump this code in a standalone program so I'm currently using the dlu plugin to grab the data. Right now I'm able to export the skeleton directly to SMD format (not exporting from 3ds MAX, directly from the gr2 file). The SMD is really easy to understand and it's a blessing. Here's a shot of the skeleton in Milkshape:
Image
this file is a gr2 animation file, containing only animation data. The skeleton is there, so the export is successful and the first frame is taken as reference.

- I figured out much of he data needed to get the animation working (SMD format as well). I have only problem with the datas of the keyframe coordinates but I'm quite confident I will be able to fix it.

i hope to figure it out. I'll keep you posted... :wink:

Re: granny engine .gr2 question

Posted: Fri May 16, 2008 3:19 pm
by federico
I got it. Preparing a video...

Re: granny engine .gr2 question

Posted: Fri May 16, 2008 6:15 pm
by federico
ok Sorry for the third post in a row, but in this forum there's not the modify option.

i post here a little video showing the skeleton and animation importer. I had to swith back in 3dsmax format because the SMD format doesn't support this kind of keyframe manipulation (the rotation and position keyframe are distinct and asymmetrical). The NeverwinterNight2 skeleton importer has done the main part of the job. I only deleted some useless parts that could crash the import process and I found different errors in the animation part. Strange errors that I (an unprofessional) was able to find quite easily. So i think that the importer was working and unreleased to avoid a legal battle with the owners. Do you like this "inside-job" theory? Too conspirational for thew game industry? :D
Some gr2 files have a different rotation format for the keyframes (the skeleton is working for all the model I tried). I thinlk I can solve this and release the plugin with the source. Do you think that the old scary Granny would sue me in a court of law for this? no, seriously, in your experence is that illegal?

video:
http://it.youtube.com/watch?v=d84KvoCN40Q