SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-30-10, 07:36 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default [TEC]GR2 files and Granny Viewer

As alot of misconceptions and good information is being spread through
many different threads?

I'll start a thread dedicated to the GR2 stuff.

First, if you don't have the Granny Viewer and know how to use it?
You're working blind!
Go get it here:
http://www.radgametools.com/granny/download.html

I'll start some basic info I am sure of and add info as the days go by.

GR2 files in SH5 are not compressed but Goblin and SH5 can still
use them both.
SH5 uses the granny2.dll which is coded to read compressed and
non-compressed GR2 files.
Ubi did not change the granny2.dll in any way.
I'm not even sure if they would be allowed to change that dll.
The exporter can be modified, I think,
from reading the Granny Viewer info,
and what I know from other sources.

Ubi did not seem to modify the granny exporter in anyway and used
nearly an 'off the shelf' setup for exporting.
Which means decodeing them should be a fairly straight forward project.

There are Granny exporters for several 3D programs out there.
Useing them to import for SH5 could lead to Legal troubles!
I suggest takeing the High Road and not doing it!
You will get caught!
I'm also not sure of total compatability between versions.

There are exporters out there to extract from the GR2 format.
None seem to work for me to my satisfaction.
I invite anyone to send me a Completely extracted GR2 file from SH5.
Even a complete Model with all the meshes is OK.
Haveing all the Bones is a plus!

There is Source code out there for some Granny stuff.
Some of the best is very old but still useful.
Here's an example:
http://www.koders.com/cpp/fid6594068....aspx?s=matrix
It's about the old Granny format but useful nonetheless.

Last edited by Madox58; 03-30-10 at 08:07 PM.
  Reply With Quote
Old 03-30-10, 07:37 PM   #2
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

reserved for future use thank you
  Reply With Quote
Old 03-30-10, 08:20 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

tried every exporter I could find on the web (even the NWN2 ones and AOE3) and couldn't get any to export correctly, if even at all. There is one trick that does work. The GLXtractor will extract meshes from the Granny Viewer but they are not positioned in 3D correctly (they are sheared from their origin). It takes a little time but using the Goblin editor you can find where 'center' is and reposition the meshes using 3DS Max or Wings3D (I setup the GLXtractor to extract the meshes into .obj form). This does not give any bone info though - just the raw mesh data (Seadler helpmed me with that )
TheDarkWraith is offline   Reply With Quote
Old 03-30-10, 08:40 PM   #4
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Does it extract the UV's?
I have it but it does not want to work right for some reason.
And getting a model that's all whacked out of position
is a pain also.
  Reply With Quote
Old 03-30-10, 08:55 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by privateer View Post
Does it extract the UV's?
I have it but it does not want to work right for some reason.
And getting a model that's all whacked out of position
is a pain also.
yep, it'll extract the texture coords also. If it would only position the model correctly when it extracts it it would be a useful tool.
TheDarkWraith is offline   Reply With Quote
Old 03-30-10, 09:40 PM   #6
Chebawookee
Swabbie
 
Join Date: Nov 2005
Posts: 8
Downloads: 19
Uploads: 1
Default

I think the key is the grannyloader.dll which puts that all together. This dll is from UBI.
For example:
Open the NSS_Uboat7b.GR2 one time in Gobblin-Editor and then in Granny Viewer.
In Granny Viewer you will only see what is in the NSS_Uboat7b.GR2 file. No interior, only a few doors and hatches.
In Gobblin you will see the contents of many gr2 files put together.
Chebawookee is offline   Reply With Quote
Old 03-31-10, 06:57 PM   #7
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Extracted from Granny Viewer through 3D PrintScreen (for D3D & OGL) into 3Dxml:





...
and MaxScript for importing *.3Dxml into 3ds Max 9...11(2009) ...
...
"3D XML is a universal lightweight XML-based format for quick and easy sharing of 3D data."
.................................................. .................................................. ........................
Example shown more low...
* Load file into Goblin;
* "Extract" from Goblin using 3D PrintScreen into *.3Dxml format;
* Import into 3ds Max using maxscript.
And no any superfluous "body's movements" ...


__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 04-02-10 at 06:24 AM.
Anvart is offline   Reply With Quote
Old 03-31-10, 08:02 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Anvart View Post
Extracted from Granny Viewer through 3D PrintScreen into 3Dxml:
is the extracted mesh sheared from it's original origin? Using the GLXtractor works for extracting mesh data but it's sheared from it's original origin.
TheDarkWraith is offline   Reply With Quote
Old 03-31-10, 08:23 PM   #9
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

1:1
Look second pic: pantalons, torso, head, eyes and helmet... all are on correct places...
...
glXtractor ---> former OGLE(xtractor) + GLIntercept... limited using... not convenient...
May be the latest is not bad?
URL: http://members.chello.at/alexan/ogle/GLXtractor.zip
Size: 1368649

P.S.
If you grabs mesh from Goblin... you have displacement as in Goblin...
If you grabs from Gr-Viewer... you have displacement as in Gr-Viewer...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 05-14-10 at 02:23 AM.
Anvart is offline   Reply With Quote
Old 03-31-10, 08:25 PM   #10
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default



  Reply With Quote
Old 04-01-10, 07:32 AM   #11
mad
Seaman
 
Join Date: Dec 2008
Posts: 33
Downloads: 26
Uploads: 0
Default

Maby http://www.deep-shadows.com/hax/3DRipperDX.htm ?

Unfortunately there is still question how to export 3d model from max so SH5 can read it.
mad is offline   Reply With Quote
Old 04-01-10, 08:40 AM   #12
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by mad View Post
Maby http://www.deep-shadows.com/hax/3DRipperDX.htm ?

Unfortunately there is still question how to export 3d model from max so SH5 can read it.
that was one of the first things I tried. Doesn't work.
TheDarkWraith is offline   Reply With Quote
Old 04-01-10, 05:11 PM   #13
mad
Seaman
 
Join Date: Dec 2008
Posts: 33
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
that was one of the first things I tried. Doesn't work.
Which part? I was able to capture all the geometry and textures.
It works great. Since there is no 3dr importer for 3dmax2009 I've used option to export model as .obj and as such I've imported it into max

When I've seen scene at first it looked like a some kind of egg, but then when I've zoomed in I've found ship that I've captured from museum.
One thing: when capturing scene I've set camera at side of ship and lowered camera almost to surface of water. First I've tried default view capture but 3d model was totally,ehm...twisted.
This way when I set camera at side and to surface 3d model needs to be stretched but it is just few clicks in max.
mad is offline   Reply With Quote
Old 04-01-10, 05:12 PM   #14
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by mad View Post
Which part? I was able to capture all the geometry and textures.
It works great. Since there is no 3dr importer for 3dmax2009 I've used option to export model as .obj and as such I've imported it into max
then it must be an OS issue. What OS do you use? I have Windows 7 64 bit.

What version of 3D ripper? I have 1.7

Did you use the 'start global system monitoring' or the normal launch button?
TheDarkWraith is offline   Reply With Quote
Old 04-01-10, 05:26 PM   #15
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

3D ripper will work for the game as the game uses Direct X.
It won't work for the Granny viewer as it uses Opengl.
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.