Page 13 of 34

Re: Granny .GR2 Reader plugin for Noesis

Posted: Thu Apr 29, 2021 12:50 pm
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

Re: Granny .GR2 Reader plugin for Noesis

Posted: Thu Apr 29, 2021 12:57 pm
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

Re: Granny .GR2 Reader plugin for Noesis

Posted: Thu Apr 29, 2021 1:24 pm
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...

Re: Granny .GR2 Reader plugin for Noesis

Posted: Thu Apr 29, 2021 9:32 pm
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?

Re: Granny .GR2 Reader plugin for Noesis

Posted: Thu Apr 29, 2021 10:08 pm
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?

Re: Granny .GR2 Reader plugin for Noesis

Posted: Fri Apr 30, 2021 4:41 pm
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

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sat May 01, 2021 9:07 pm
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

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sun May 02, 2021 1:18 am
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?

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sun May 02, 2021 3:01 pm
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.

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sun May 02, 2021 3:19 pm
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

Re: Granny .GR2 Reader plugin for Noesis

Posted: Sun May 02, 2021 5:36 pm
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:

Re: Granny .GR2 Reader plugin for Noesis

Posted: Mon May 03, 2021 1:33 pm
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?

Re: Granny .GR2 Reader plugin for Noesis

Posted: Mon May 03, 2021 2:11 pm
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

Re: Granny .GR2 Reader plugin for Noesis

Posted: Mon May 03, 2021 2:18 pm
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.

Re: Granny .GR2 Reader plugin for Noesis

Posted: Mon May 03, 2021 2:32 pm
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.
:)