The rules have been updated, read them now: Rules!

Granny .GR2 Reader plugin for Noesis

Post questions about game models here, or help out others!
Post Reply
User avatar
Hairless Wookiee
beginner
Posts: 24
Joined: Wed Oct 26, 2011 12:05 pm
Been thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by Hairless Wookiee » Fri Oct 16, 2020 4:32 pm

Thanks for the script jayn23, most useful. One thing I have noticed though is that meshes appear to be X-flipped (something that LSLib does as well, despite having a setting for it). It's clearly noticeable on non-symmetrical meshes (like certain hairstyles) when comparing them to the originals in-game.

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 155 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Sat Oct 17, 2020 7:46 pm

Thanks for the script jayn23, most useful. One thing I have noticed though is that meshes appear to be X-flipped (something that LSLib does as well, despite having a setting for it). It's clearly noticeable on non-symmetrical meshes (like certain hairstyles) when comparing them to the originals in-game.
The problem is, the format is used by100's of games each with there own engine etc.. so everyone exports there models in what ever way there engine renders the 3d meshes, I have no way of knowing for each game if it is flipped or not, I tried in the past to add a feature where you choose if you want to flip the model, the reason I didn't add this already is because it messes up the animations for some reason...

User avatar
05SpeedMaster
beginner
Posts: 31
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster » Fri Oct 23, 2020 1:55 am

It messes up animations because they work with the models as are.
The Game engine renders things flipped one way or the other.

That's like asking why some models export inverted and Z is messed up but show fine in the Game.

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 155 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Fri Oct 23, 2020 6:37 am

It messes up animations because they work with the models as are.
The Game engine renders things flipped one way or the other.

That's like asking why some models export inverted and Z is messed up but show fine in the Game.
Thanks, i assumed as much , but i did try to flip mesh, skeleton and animations all separately that's why i hoped if i change them all in the same way it would work, i tried to do this with my total war Warhammer script as well a few months ago animation exploded :roll:

It seems i still have a lot to learn of game engines and renders

pewposterous
advanced
Posts: 41
Joined: Thu Jul 30, 2015 5:05 am
Has thanked: 13 times
Been thanked: 3 times

Re: Granny .GR2 Reader plugin for Noesis

Post by pewposterous » Fri Oct 30, 2020 11:02 am

Does anyone know how the face textures are done for companions? There doesnt seem to be any Diffuse Textures for them.

User avatar
05SpeedMaster
beginner
Posts: 31
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster » Sat Oct 31, 2020 9:01 pm

Be more specific on the Game.

pewposterous
advanced
Posts: 41
Joined: Thu Jul 30, 2015 5:05 am
Has thanked: 13 times
Been thanked: 3 times

Re: Granny .GR2 Reader plugin for Noesis

Post by pewposterous » Tue Nov 03, 2020 6:07 am

Sorry, Baldur's Gate 3

Drawing
mega-veteran
mega-veteran
Posts: 211
Joined: Wed Jan 11, 2012 10:21 pm
Has thanked: 31 times
Been thanked: 8 times

Re: Granny .GR2 Reader plugin for Noesis

Post by Drawing » Sun Nov 08, 2020 12:14 am

jayn23 wrote:
Fri Aug 14, 2020 6:11 am
DAE. This one looked promising.. Everything looked fine in blender except it was upside down. Getting it upwards caused some similar issues with that backflipping to reappear again. Once exported I noticed how for some reason no bone was moving except the very root bip01 one. Weird.
Hi,

my script only handles the import of gr2 data and does nothing for the export that is done by the built in plugins of noesis, but i did do some experimenting. on 3DS MAX since that is my goto 3D modeling software ,
importing with DAE gave me that same backflip you described, i then downloaded the openCollada plugin and used it to import the DAE instead of the built in plugin and it worked perfectly, but wiredly enough after exporing and reimporting an edited version animation was all wrong...

I dunno if it could help but I found that noesis export fbx version 7.7.0 , actually only recent version of 3dstudio max support it, most of older one support 7.4.0.
3dsm is my goto software too and I was experiencing "empty" .fbx exported from noesis, that was because I was using and old version of 3dsm that didn't recognize that version , with 2017 I can import correctly fbx exported by noesis.

Predator0000
beginner
Posts: 21
Joined: Sun Nov 08, 2020 1:32 pm
Has thanked: 4 times

Re: Granny .GR2 Reader plugin for Noesis

Post by Predator0000 » Sun Nov 08, 2020 5:46 pm

I deleted the link thank you :)
You do not have the required permissions to view the files attached to this post.
Last edited by Predator0000 on Mon Nov 16, 2020 8:27 pm, edited 1 time in total.

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 155 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Sun Nov 08, 2020 6:15 pm

hi i cant open the GR2 model even the PSSG textures ... AMY PS3 game. you are a programmer possible to make a Noesis script for the GR2 model is the PSSG texture also possible for the animations in GR2 Thank you models Amy gr2, textures in pssg and animations in gr2 please I just want help
I didn't look at your sample, but based on my knowledge is because PS3 uses big endian while PC uses little endian.
my script was written to support only little endian.
ill check how much work it is to get console versions to work (i did do some work on this in the past but never really tested it), if its not to much work ill do it this week along with my promised feature for loading multiple meshes.

Predator0000
beginner
Posts: 21
Joined: Sun Nov 08, 2020 1:32 pm
Has thanked: 4 times

Re: Granny .GR2 Reader plugin for Noesis

Post by Predator0000 » Sun Nov 08, 2020 6:32 pm

jayn23 wrote:
Sun Nov 08, 2020 11:49 pm

I didn't look at your sample, but based on my knowledge is because PS3 uses big endian while PC uses little endian.
my script was written to support only little endian.
ill check how much work it is to get console versions to work (i did do some work on this in the past but never really tested it), if its not to much work ill do it this week along with my promised feature for loading multiple meshes.
Thank you absolutely It's really kind of you I absolutely hope you can do it I would like to read all the models of this game with the animations,

and all textures

in Noesis

Thank you :keke:
Last edited by Predator0000 on Mon Nov 09, 2020 6:18 pm, edited 8 times in total.

Drawing
mega-veteran
mega-veteran
Posts: 211
Joined: Wed Jan 11, 2012 10:21 pm
Has thanked: 31 times
Been thanked: 8 times

Re: Granny .GR2 Reader plugin for Noesis

Post by Drawing » Sun Nov 08, 2020 6:51 pm

Drawing wrote:
Sun Nov 08, 2020 12:14 am

I dunno if it could help but I found that noesis export fbx version 7.7.0 , actually only recent version of 3dstudio max support it, most of older one support 7.4.0.
3dsm is my goto software too and I was experiencing "empty" .fbx exported from noesis, that was because I was using and old version of 3dsm that didn't recognize that version , with 2017 I can import correctly fbx exported by noesis.

Just to explain better:

When I used to export from noesis in .DAE i was experiencing the same backflip problem jayn23 stated.
I used the FBX export option but the file generated were not recognized by 3dsm. Later I found that the files were not load in 3dsm simply because was a 7.7.0 and my old 3dsm didn't recognize it. With 3dsm 2017 the 7.7.0 FBX were opened and no backflip during animation :)
This works for every model you want to export and not just for those related with this plugin.

sorry for repetition but I saw my message wasn't clear.

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 155 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Sun Nov 08, 2020 11:49 pm

Thank you absolutely It's really kind of you I absolutely hope you can do it I would like to read all the models of this game with the animations,

and all textures

in Noesis

Thank you :keke:
I remembered why i didn't do it in the first place, i couldn't get the decompression function to work correctly, it giving me an error as if my input is incorrect.

05SpeedMaster, do you by any chance know if console version uses a different granny.dll version or any other reason why it wont work.
i have tried changing everything to big endian, everything seems to be reading correctly (version, compression, CRC all the offsets etc..) but decompress function isn't working

Predator0000
beginner
Posts: 21
Joined: Sun Nov 08, 2020 1:32 pm
Has thanked: 4 times

Re: Granny .GR2 Reader plugin for Noesis

Post by Predator0000 » Mon Nov 09, 2020 6:06 pm

jayn23 wrote:
Sun Nov 08, 2020 11:49 pm

I remembered why i didn't do it in the first place, i couldn't get the decompression function to work correctly, it giving me an error as if my input is incorrect.
I wanted to thank you for your help, I really appreciate thank you I can't wait to test your script in Noesis Thank you :)

User avatar
05SpeedMaster
beginner
Posts: 31
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster » Tue Nov 10, 2020 10:54 pm

jayn23 wrote:
Sun Nov 08, 2020 11:49 pm


05SpeedMaster, do you by any chance know if console version uses a different granny.dll version or any other reason why it wont work.
i have tried changing everything to big endian, everything seems to be reading correctly (version, compression, CRC all the offsets etc..) but decompress function isn't working
Kind of looking at the AMY file linked.
Haven't tried it with your Noesis stuff but it appears like a normal GR2 and opens fine in several versions of grannyviewer I have.
I even ran a CRC check on the files and they are correct.
(Some GR2 files report a bad CRC and will not open even in Grannyviewer! I broke that problem a long time ago!)
1st thought is that maybe some stuff is stored in different sections from the most common sections used.
I'll look closer in the next several days as I have some free time.

Post Reply