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 08-01-10, 09:17 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default Exporting 3D models from GR2

Useing older programs to get around possible problems with RAD?
I have a solution that works to extract the 3D Models.
I also know what needs done to make it all work at the click of a button.
I used no code not already released by others.
I did figure out how to Hex edit the gr2 files to work with the older stuff.

Last edited by Madox58; 08-06-10 at 05:33 PM.
  Reply With Quote
Old 08-02-10, 12:30 PM   #2
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Make a simple step...
Describe and publish your stuffs.
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 08-03-10, 12:19 AM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I used gr2meshconv1_3 which exports a .ms file.
I changed a few areas in the Header of the GR2 files with a hex editor
which allowed a perfect export as MaxScript.
But large script files will CTD 3D max.
So now I've converted the source files to export as an .obj file.


A few more tweaks tomorrow should have it done.
  Reply With Quote
Old 08-03-10, 01:27 AM   #4
Royale-Adio
Officer
 
Join Date: Jul 2009
Posts: 238
Downloads: 119
Uploads: 5
Default

You mean we could edit GR2 models with that?
__________________
Lurking In The Dark...
Royale-Adio is offline   Reply With Quote
Old 08-03-10, 05:19 AM   #5
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by privateer View Post
I used gr2meshconv1_3 ...
So now I've converted the source files to export as an .obj file.


A few more tweaks tomorrow should have it done.
Limited solution... but is interesting to see your stuff in work...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 08-04-10, 03:40 PM   #6
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

As a stress test I exported the meshes in Room_CR.GR2 today.

Here's the result.


Every mesh is exported to a seperate file for a very simple reason haveing to do with faces.

All meshes retain thier positions just as they are in the GR2 file.
So there's no need to worry about where things belong in 3D.

There's still some final work to polish things
but I'll try to get a teaser version out ASAP.
  Reply With Quote
Old 08-04-10, 05:04 PM   #7
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Excellently... good luck.
What you can say about UV map and textures?
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 08-04-10, 05:39 PM   #8
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Here's the Teaser version complete with a hex edited gr2 file.
http://www.mediafire.com/?b749r0za7t9ddxw

It's a command line program at this point so just click the run.bat file.

This version has all the UV mapping but the Materials library stuff is not finished in this version.

The top of the gr2 file has been edited and when compared to the SH5
original, is easy to spot.
I'll get some screenshots posted soon also.

I've still got alot to do on this yet but it works.

I am not the original author of the base program.
I just modified existing code.
  Reply With Quote
Old 08-04-10, 05:56 PM   #9
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Just downloaded it privateer. It sounds pretty promising, but I can't wait for the full version
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 08-04-10, 06:16 PM   #10
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

All the code is from programs released by others several years ago.
I've just refined and blended it for a better result.
There's alot of improvements in the works.

If the rest of the week and weekend goes as planned?
I'll have the next phase done.
No hexing of the GR2 files, (code completed, not implemented)
A browse and click interface, (code completed, not implemented)
and the Materials library stuff completed. (code incomplete)
  Reply With Quote
Old 08-04-10, 11:54 PM   #11
rowi58
Eternal Patrol
 
Join Date: Jun 2006
Location: Karlsruhe
Posts: 679
Downloads: 56
Uploads: 0
Default

Absolutly GREAT . Many thanks, privateer.

Greetings
rowi58
__________________
rowi58 is offline   Reply With Quote
Old 08-04-10, 11:54 PM   #12
Royale-Adio
Officer
 
Join Date: Jul 2009
Posts: 238
Downloads: 119
Uploads: 5
Default

Quote:
Originally Posted by privateer View Post
All the code is from programs released by others several years ago.
I've just refined and blended it for a better result.
There's alot of improvements in the works.

If the rest of the week and weekend goes as planned?
I'll have the next phase done.
No hexing of the GR2 files, (code completed, not implemented)
A browse and click interface, (code completed, not implemented)
and the Materials library stuff completed. (code incomplete)
Submarine folder in the future?

I'd love to see the Type II finally completed!
__________________
Lurking In The Dark...
Royale-Adio is offline   Reply With Quote
Old 08-05-10, 05:20 AM   #13
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,969
Downloads: 42
Uploads: 0
Default

sounds great!
__________________


urfisch is offline   Reply With Quote
Old 08-05-10, 06:08 AM   #14
Shiplord
Helmsman
 
Join Date: Jan 2002
Posts: 109
Downloads: 0
Uploads: 0
Default

Export yes, but can exported and possibly edited Obj models be again imported into a GR2 file or create a new GR2 file of it, a GR2 file which then also works correctly in SH5?
Shiplord is offline   Reply With Quote
Old 08-05-10, 06:30 AM   #15
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Shiplord View Post
Export yes, but can exported and possibly edited Obj models be again imported into a GR2 file or create a new GR2 file of it, a GR2 file which then also works correctly in SH5?

I don't know at this point in time about editing existing GR2 files.
New gr2's can be created with the proper tools.
If one were to build the 3D file structures,
maybe on of the Dev's could do the export to gr2.

Dats can be built with the exported models.
So there may be away to merge the two for SH5.
I can not run SH5 so I can't test ALL my thoughts.
  Reply With Quote
Reply

Tags
edit the gr2


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 11:13 AM.


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.