Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Granny .GR2 Reader plugin for Noesis

Post questions about game models here, or help out others!
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

Ivenend wrote: Thu Apr 29, 2021 12:28 pm Thanks for your hard work, the new plugin generally works fine. But there is a small issue:

The sword model I shown above is this one: https://drive.google.com/file/d/1jWXzVm ... sp=sharing

BTW, would you like to join our D2R modding discord? We have many discussion of D2R model and texture there: https://discord.gg/fXpPPd6fUm
how did you convert using LSLIB? it just gives me an error that positions need to be a VECTOR 3 while here we have a VECTOR 4.
can you tell me what the vert count is with the version from LSLIB?

Joined your Discord by the way , for now i just lurk :P
Last edited by jayn23 on Mon May 03, 2021 9:29 pm, edited 2 times in total.
Ivenend
beginner
Posts: 27
Joined: Sun Dec 16, 2018 3:58 am
Has thanked: 24 times
Been thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by Ivenend »

jayn23 wrote: Thu Apr 29, 2021 12:50 pm
can you tell me what the vert count is with the version from LSLIB?

Joined your Discord by the way , for now i just lurk :P
On April 20th, Norbyte added a preliminary support for D2R .model on github. It is not a "release" version so you need to compile it by yourself.

https://github.com/Norbyte/lslib/issues ... -823177875
https://github.com/Norbyte/lslib/commit ... 70de45c661
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

Ivenend wrote: Thu Apr 29, 2021 12:57 pm
jayn23 wrote: Thu Apr 29, 2021 12:50 pm
can you tell me what the vert count is with the version from LSLIB?

Joined your Discord by the way , for now i just lurk :P
On April 20th, Norbyte added a preliminary support for D2R .model on github. It is not a "release" version so you need to compile it by yourself.

https://github.com/Norbyte/lslib/issues ... -823177875
https://github.com/Norbyte/lslib/commit ... 70de45c661
Thanks i managed to build LSLIB.
Edit:
It seems i was mistaken as vertcie count for my mesh and and from LSLIB is the same, the vertcies are unwelded on the seam we see on the mesh for both scripts, so i am not sure why its looks like that on mine, maybe its related to normals or Tangents after all...
Last edited by jayn23 on Mon May 03, 2021 9:30 pm, edited 1 time in total.
User avatar
05SpeedMaster
veteran
Posts: 127
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 18 times
Been thanked: 41 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster »

Nice work Mate!
Just Down Loaded the latest version and started playing with it.
Of course I work with Silent Hunter 5 and have a few questions.
Can a way be added to ignore some 3D meshes and not load them?
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

05SpeedMaster wrote: Thu Apr 29, 2021 9:32 pm Nice work Mate!
Just Down Loaded the latest version and started playing with it.
Of course I work with Silent Hunter 5 and have a few questions.
Can a way be added to ignore some 3D meshes and not load them?
Thanks :D
Well that depends how do you plan on filtering these meshes? by poly count, name, order?
I assume you want to filter out LOD and keep only high poly meshes?

if you have some way to filter these meshes I can do it.

can you post a sample, and explain what you want to ignore?
User avatar
05SpeedMaster
veteran
Posts: 127
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 18 times
Been thanked: 41 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster »

Here's a sample. I included a txt that lists the Meshes to skip by name.
It would be better if We could edit the mesh to skip names.
I could then write a script for 010 to do quick edits as I need them.


https://www.mediafire.com/file/d1mln1ea ... e.zip/file
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

05SpeedMaster wrote: Fri Apr 30, 2021 4:41 pm Here's a sample. I included a txt that lists the Meshes to skip by name.
It would be better if We could edit the mesh to skip names.
I could then write a script for 010 to do quick edits as I need them.


https://www.mediafire.com/file/d1mln1ea ... e.zip/file
Here you go, iv included a few options to choose from

Version 1.3.1

Fixed Normals for Diablo II: Resurrected
Added option to exclude loading meshes using a file, file must be called 'mesh.txt' and loacted in main Noesis folder
SKIP_MESH = 1 - skip by mesh name
SKIP_MESH = 2 - skip if mesh name starts with string in file
SKIP_MESH = 3 - skip if mesh name ends with string in file

fmt_GR2reader131.rar
You do not have the required permissions to view the files attached to this post.
Ivenend
beginner
Posts: 27
Joined: Sun Dec 16, 2018 3:58 am
Has thanked: 24 times
Been thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by Ivenend »

jayn23 wrote: Sat May 01, 2021 9:07 pm



Version 1.3.1

Fixed Normals for Diablo II: Resurrected

It works great! Thank you! [bruce]

--------------

BTW Is it possible for you to make your D2R_texture plugin also supports exporting an image to .texture?

-------------

A general GR2 (Granny 3D) question:

Anyone here knows why some GR2 have opacity alpha channel enable, while some don't? How to know if a GR2 has opacity enable through reading information in Granny Viewer?
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

Ivenend wrote: Sun May 02, 2021 1:18 am
--------------

BTW Is it possible for you to make your D2R_texture plugin also supports exporting an image to .texture?

-------------

A general GR2 (Granny 3D) question:

Anyone here knows why some GR2 have opacity alpha channel enable, while some don't? How to know if a GR2 has opacity enable through reading information in Granny Viewer?
I can try tp do an export to .texture, but i have never done texture data export,so no guarantees, ill probably need some help
with mip maps, and understanding how to recreate them in noesis.

What exactly are you talking about opacity channel? your mean if .gr2 includs data if texture files have opacity enables? if yes thats probably in the Extended Data.
post a smaple with and a smpale without and i can take a look.
Ivenend
beginner
Posts: 27
Joined: Sun Dec 16, 2018 3:58 am
Has thanked: 24 times
Been thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by Ivenend »

jayn23 wrote: Sun May 02, 2021 3:01 pm
Ivenend wrote: Sun May 02, 2021 1:18 am
--------------

BTW Is it possible for you to make your D2R_texture plugin also supports exporting an image to .texture?

-------------

A general GR2 (Granny 3D) question:

Anyone here knows why some GR2 have opacity alpha channel enable, while some don't? How to know if a GR2 has opacity enable through reading information in Granny Viewer?
I can try tp do an export to .texture, but i have never done texture data export,so no guarantees, ill probably need some help
with mip maps, and understanding how to recreate them in noesis.

What exactly are you talking about opacity channel? your mean if .gr2 includs data if texture files have opacity enables? if yes thats probably in the Extended Data.
post a smaple with and a smpale without and i can take a look.
Thanks!

--------------

Some GR2 will consider the alpha channel of alb.texture as opacity channel, so if there are black part in this alpha channel, the according part of the model will be transparent in game. I call this type of GR2 type A.

Some GR2 will NOT consider the alpha channel of alb.texture as opacity channel, so even if there are black part in this alpha channel, the model will have no transparent part in game. I call this type of GR2 type B.

Here are examples. yew_wand_lod0.model is type A, great_sword_lod0.model is type B.
https://drive.google.com/file/d/1SQMaEQ ... sp=sharing

I want to know what makes the difference. And if it is possible to change it (maybe through Hex edit?).

For now, I suspect the difference is in this information in Granny Viewer:
Image
User avatar
05SpeedMaster
veteran
Posts: 127
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 18 times
Been thanked: 41 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster »

It is possible to edit the values with a Hex Editor, Yes.
The problem is HOW to locate the exact values to edit.
I have a template for GR2 files for 010 SweetScape that I'll check.
I have downloaded your examples to look at.

And I love the new ability to skip meshes! Saves SO much time working with the files.
:up: :bravo:

I'm doing a quick Script for 010 to change option settings.
Just because I'm lazy that way.
:largegrin:
Ivenend
beginner
Posts: 27
Joined: Sun Dec 16, 2018 3:58 am
Has thanked: 24 times
Been thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by Ivenend »

05SpeedMaster wrote: Sun May 02, 2021 5:36 pm It is possible to edit the values with a Hex Editor, Yes.
The problem is HOW to locate the exact values to edit.
I have a template for GR2 files for 010 SweetScape that I'll check.
I have downloaded your examples to look at.

And I love the new ability to skip meshes! Saves SO much time working with the files.
:up: :bravo:

I'm doing a quick Script for 010 to change option settings.
Just because I'm lazy that way.
:largegrin:
Thanks for your help.

Actually I have tried a bit hex edit. While I'm probably still far from located the exact values, I think the bigger problem would be the CRC check of GR2 files. Nearly every time after I did a hex edit, Granny Viewer says that the file fail its CRC check and the game refuse to load the file. Thus I can not even know if I have edit the exact value or not.

Do you have any idea how to defeat the CRC check of GR2?
timtim
ultra-n00b
Posts: 3
Joined: Wed Jun 20, 2012 7:49 pm
Has thanked: 2 times

Re: Granny .GR2 Reader plugin for Noesis

Post by timtim »

I tried to view|convert GR2 Age of Empires 3 - Definitive Edition files in Noesis 4.442 both with both Reader plugin ver. 1.2.1 and ver. 1.3 but it wasn't successful.
I tried different ways: before and after https://github.com/nikita322/GrannyConverter2.11.8, without/with additional copying granny2.lib from nikita322 converter but it always ends with this error:
Image
Ivenend
beginner
Posts: 27
Joined: Sun Dec 16, 2018 3:58 am
Has thanked: 24 times
Been thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by Ivenend »

timtim wrote: Mon May 03, 2021 2:11 pm I tried to view|convert GR2 Age of Empires 3 - Definitive Edition files in Noesis 4.442 both with both Reader plugin ver. 1.2.1 and ver. 1.3 but it wasn't successful.
I tried different ways: before and after https://github.com/nikita322/GrannyConverter2.11.8, without/with additional copying granny2.lib from nikita322 converter but it always ends with this error:
Image
You probably just need a v2.11.8 granny2.dll.

With this version of granny2.DLL in your Noesis folder, you can open GR2 from Age of Empires 3 - Definitive Edition directly.
User avatar
05SpeedMaster
veteran
Posts: 127
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 18 times
Been thanked: 41 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster »

Ivenend wrote: Mon May 03, 2021 1:33 pm Do you have any idea how to defeat the CRC check of GR2?
I have a Script for 010 that will check AND correct the CRC.
:)
Post Reply