Join also our Discord channel! Click here.

Granny .GR2 Reader plugin for Noesis

Post questions about game models here, or help out others!
User avatar
05SpeedMaster
beginner
Posts: 21
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster » Mon Sep 07, 2020 6:22 pm

jayn23 wrote:
Wed Jun 17, 2020 7:36 pm


i took a look at you "clumbsy way" unfortunately i cant help since textures in file are stored in compressed .bik format which i have no clue how to read.
If you dump the texture as a bik file?
RAD has free tools to convert them to many different formats.

VERY nice work you've done here Mate!
:up: :up: :up:

Just looking at your script I see brilliance!
Image

User avatar
kingfisher13
advanced
Posts: 77
Joined: Mon Jul 26, 2010 7:32 pm
Has thanked: 8 times

Re: Granny .GR2 Reader plugin for Noesis

Post by kingfisher13 » Tue Sep 08, 2020 5:03 am

This tool looks very promising! One question tho. I KNOW I've played some games that use this engine, but I don't know which ones, and I know that I wanted models from those games. Does anyone have a decent list of the games that use the Granny Engine?
Game models/characters RULE. Shura, all the way.

jayn23
veteran
Posts: 130
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 34 times
Been thanked: 119 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Tue Sep 08, 2020 5:48 am

If you dump the texture as a bik file?
RAD has free tools to convert them to many different formats.

VERY nice work you've done here Mate!
:up: :up: :up:

Just looking at your script I see brilliance!
Thanks a lot mate means a lot coming from a gr2 master :D

since i have you here, i wonder if i posted those few animations that dont work correctly maybe you can give me an idea where the problem is
and how to fix them.

Regarding the textures
Do you mean i could extract the compressed texture data, write it to a file and use a conversion tool..interesting but wouldn't i need to manually add a specific header?
or do you mean the tool can extract directly from the gr2 file?
I actually have a bik source files from a game that had all it source leaked years a ago, but i never tried writing a script for it was just to lazy [roll]

This tool looks very promising! One question tho. I KNOW I've played some games that use this engine, but I don't know which ones, and I know that I wanted models from those games. Does anyone have a decent list of the games that use the Granny Engine?
they have on the official site a partial list of games using the granny format
http://www.radgametools.com/granny/customers.html#games

User avatar
05SpeedMaster
beginner
Posts: 21
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster » Tue Sep 08, 2020 11:09 pm

jayn23 wrote:
Tue Sep 08, 2020 5:48 am


Thanks a lot mate means a lot coming from a gr2 master :D

since i have you here, i wonder if i posted those few animations that dont work correctly maybe you can give me an idea where the problem is
and how to fix them.
You got me on the animation stuff so I do believe your a GR2 Master yourself!
:largegrin:

Yeah. I can check those other files and see if I spot something.

User avatar
05SpeedMaster
beginner
Posts: 21
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster » Wed Sep 09, 2020 12:19 am

For some info on GR2 files here's my 010 header information.

// Define structures for Magic Block, header and Section Indexes in Gr2 files

typedef struct { // GR2fh
quad GR2Magic[2]<hidden=true>;
UINT HeaderSize<comment="Size of all information before the start of Section 0">;
LONG Unknown_info[3]<hidden=true,format=hex>;
} GR2FILEHEADER;

typedef struct { // GR2ih
UINT File_format_revision <format=decimal>;
UINT File_Size_in_bytes;
UINT CRC <format=hex,comment="CRC of file (from begin of section array up to EoF). Algoritm CRC-32">;
UINT SectionArrayOffset <bgcolor=0xffffb0,fgcolor=cRed,comment="Offset to section array">;
UINT SectionArrayCount <comment="Total number of sections">;
UINT Unknowns[4]<hidden=true,format=hex>;
UINT Tag<format=hex>;
UINT Unknown[8]<hidden=true,format=hex>;
} GR2INFOHEADER;

typedef struct { // Sectionsinfo
UINT Format<comment="Compression Format">;
UINT Pointer<format=hex,bgcolor=cLtGreen,comment="Start of section data">;
UINT True_Block_Size_in_file<comment="Compressed Data size">;
UINT Block_Size_In_file<comment="Actual amount of Data uncompressed">;
UINT Internal_Alignment<comment="offset">;
UINT Unknown[2]<bgcolor=cLtYellow,hidden=true>;
UINT Another_Pointer<format=hex,bgcolor=cLtGreen,comment="Will explain at a later date">;
UINT WTH[3]<bgcolor=cLtYellow,hidden=true>;
} SECTIONS;

/*Sections as used in SH5 GR2 files.
NOt all GR2 files follow this layout.

0 - MainSection
1 - RigidVertexSection
2 - RigidIndexSection
3 - DeformableVertexSection
4 - DeformableIndexSection
5 - TextureSection
6 - DiscardableSection
7 - UnloadedSection */


Now I have MUCH more information in other files used in 010 if you need that.

jayn23
veteran
Posts: 130
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 34 times
Been thanked: 119 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Wed Sep 09, 2020 12:14 pm

Yeah. I can check those other files and see if I spot something.
Thanks a lot for taking a look at it :D , i really tried everything but couldn't get these to work, and obviously they work perfectly in the granny viewer...

So here is a sample of gr2 file where animation isn't working correctly:
i try to show in the gif below, at frame 0 skeleton looks correct - so i am loading the skeleton/frame 0 correctly.
you will notice that both files have the same issue where 1 side seems to function correctly while the other is all messed up

Image

Image

v_Wuestenspinne_run_bh.rar
You do not have the required permissions to view the files attached to this post.

Post Reply