Page 33 of 34

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sun Aug 27, 2023 4:16 pm
by 05SpeedMaster
Canyougiant wrote: Sat Aug 26, 2023 7:39 pm Hi,
I am using this script to import the gr2 models and animations from Age of Empires 3: Definitive Edition, but animation isn’t correct, only the whole body is moving. It works in legacy version of the game, which is Age of Empires 3. Apparently, something has changed. Have you ever tested it with Age of Empires: Definitive Edition?
Example Files would get you faster answers.

Re: Granny .GR2 Reader plugin for Noesis

Posted: Mon Aug 28, 2023 11:13 am
by Canyougiant
Hi, thanks for the replies!
In the end, I managed to resolve my own issue. It's because the bone names in the model files were not match the ones in the animation files. The bone names in the model files were like "Bip01_L_ForeArm", but it's "Bip01 L ForeArm" in the animation file. I guess maybe granny2.dll allows this inconsistency, so animations can be played successfully. There was a line "t.Name = Transform_Track.Name", I changed it to "t.Name = Transform_Track.Name.replace(' ', '_')". That's it.

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 3:31 am
by uroborostestsubject
Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 7:07 am
by Tosyk
uroborostestsubject wrote: Sat Sep 02, 2023 3:31 am Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.
if you mean albedo, normal and physic maps they are there but presented as virtual textures

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 7:31 am
by uroborostestsubject
Tosyk wrote: Sat Sep 02, 2023 7:07 am
uroborostestsubject wrote: Sat Sep 02, 2023 3:31 am Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.
if you mean albedo, normal and physic maps they are there but presented as virtual textures
Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 8:09 am
by Tosyk
uroborostestsubject wrote: Sat Sep 02, 2023 7:31 am
Tosyk wrote: Sat Sep 02, 2023 7:07 am
uroborostestsubject wrote: Sat Sep 02, 2023 3:31 am Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.
if you mean albedo, normal and physic maps they are there but presented as virtual textures
Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 1:03 pm
by Valoun
Does anyone know why there are messed up UVs in ESO meshes?

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 1:14 pm
by uroborostestsubject
Tosyk wrote: Sat Sep 02, 2023 8:09 am
uroborostestsubject wrote: Sat Sep 02, 2023 7:31 am
Tosyk wrote: Sat Sep 02, 2023 7:07 am if you mean albedo, normal and physic maps they are there but presented as virtual textures
Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/
Can I ask you one more question? Currently, the model I want to extract is the creature model. However, as I mentioned before, some of the creature models lack the texture to apply to the meshes. Textures corresponding to some weapons or items were not extracted at all. Should I apply shaders to the meshes of monsters and weapons the way you told me? Or is it a problem with the tool itself that the texture corresponding to the mesh of monsters or weapons is not being extracted?

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 2:40 pm
by Tosyk
uroborostestsubject wrote: Sat Sep 02, 2023 1:14 pm
Tosyk wrote: Sat Sep 02, 2023 8:09 am
uroborostestsubject wrote: Sat Sep 02, 2023 7:31 am

Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/
Can I ask you one more question? Currently, the model I want to extract is the creature model. However, as I mentioned before, some of the creature models lack the texture to apply to the meshes. Textures corresponding to some weapons or items were not extracted at all. Should I apply shaders to the meshes of monsters and weapons the way you told me? Or is it a problem with the tool itself that the texture corresponding to the mesh of monsters or weapons is not being extracted?
once again. Most of the textures are virtual textures. You need to extract them to get all the textures you want - they are there. As for creatures I think they share the same shader technique as characters from _HMVY, _CLEA, _MSK mixing

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 02, 2023 2:46 pm
by uroborostestsubject
Tosyk wrote: Sat Sep 02, 2023 2:40 pm
uroborostestsubject wrote: Sat Sep 02, 2023 1:14 pm
Tosyk wrote: Sat Sep 02, 2023 8:09 am
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/
Can I ask you one more question? Currently, the model I want to extract is the creature model. However, as I mentioned before, some of the creature models lack the texture to apply to the meshes. Textures corresponding to some weapons or items were not extracted at all. Should I apply shaders to the meshes of monsters and weapons the way you told me? Or is it a problem with the tool itself that the texture corresponding to the mesh of monsters or weapons is not being extracted?
once again. Most of the textures are virtual textures. You need to extract them to get all the textures you want - they are there. As for creatures I think they share the same shader technique as characters from _HMVY, _CLEA, _MSK mixing
Thank you so much! I'll have to try it again. :D

Re: Granny .GR2 Reader plugin for Noesis

Posted: Fri Sep 08, 2023 5:27 am
by JKerman
Can someone post a copy of the 64 bit version of the granny2 dll? I don't have it, and none of my games do either.

Re: Granny .GR2 Reader plugin for Noesis

Posted: Fri Sep 08, 2023 5:12 pm
by yukutan
Tosyk wrote: Sun Aug 27, 2023 1:53 pm it works pretty well with Baldur's Gate 3 characters. I must also note that this is the only tool that converts BG3 models properly with skeleton.

I am trying to find Laezel and Astarion, I have noesis working and I have extracted the game fileswith LSlib, but I'm new to working with models, is there a specific folder or filename type I should be looking for to get the character models...? Thank you very much in advance

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat Sep 09, 2023 6:13 am
by JKerman
I'm getting this error when I try to open a file from BG3 in noesis:

Detected file type: GR2 Reader
Traceback (most recent call last):
File "C:\Users\XX\Downloads\noesisv4471 (1)\plugins\python\fmt_GR2reader135.py", line 5199, in noepyLoadModel
Models = GR2Reader(data)
File "C:\Users\XX\Downloads\noesisv4471 (1)\plugins\python\fmt_GR2reader135.py", line 4204, in GR2Reader
TempAllDecompressedData = GR2decompress(DecompressedData,ComperesedData,section.decompressed_size,section.data_size,section)
File "C:\Users\XX\Downloads\noesisv4471 (1)\plugins\python\fmt_GR2reader135.py", line 4022, in GR2decompress
lib = ctypes.WinDLL(DLL_PATH + "granny2.dll")
File "C:\Users\XX\Downloads\noesisv4471 (1)\Plugins\python\core321.zip\ctypes\__init__.py", line 340, in __init__
WindowsError: [Error 193] %1 is not a valid Win32 application

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sun Sep 10, 2023 5:20 am
by feldarzt
Wow.
How did you get that model textured? When I'm opening BG3 models in Noesis with the plugin and granny2.dll, I get them with 0 textures associated.

Tosyk wrote: Sun Aug 27, 2023 1:53 pm it works pretty well with Baldur's Gate 3 characters. I must also note that this is the only tool that converts BG3 models properly with skeleton.

Image

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sun Sep 10, 2023 7:04 am
by Tosyk
feldarzt wrote: Sun Sep 10, 2023 5:20 am Wow.
How did you get that model textured? When I'm opening BG3 models in Noesis with the plugin and granny2.dll, I get them with 0 textures associated.

Tosyk wrote: Sun Aug 27, 2023 1:53 pm it works pretty well with Baldur's Gate 3 characters. I must also note that this is the only tool that converts BG3 models properly with skeleton.

Image
I use this tool to find connection between resources:
https://github.com/ShinyHobo/BG3-Modders-Multitool

But there’s no way to just open model with all the texture applied. It’s manual work to convert textures and combine models