SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   Exporting 3D models from GR2 (https://www.subsim.com/radioroom/showthread.php?t=173092)

Madox58 08-01-10 09:17 PM

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.
:03:

Anvart 08-02-10 12:30 PM

Make a simple step...
Describe and publish your stuffs. :haha:

Madox58 08-03-10 12:19 AM

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.

Royale-Adio 08-03-10 01:27 AM

You mean we could edit GR2 models with that?

Anvart 08-03-10 05:19 AM

Quote:

Originally Posted by privateer (Post 1458660)
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...

Madox58 08-04-10 03:40 PM

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

Here's the result.
http://i108.photobucket.com/albums/n...s/Exporter.jpg

Every mesh is exported to a seperate file for a very simple reason haveing to do with faces.
:03:
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.
:arrgh!:

Anvart 08-04-10 05:04 PM

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

Madox58 08-04-10 05:39 PM

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.
:arrgh!:

SteelViking 08-04-10 05:56 PM

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

Madox58 08-04-10 06:16 PM

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)

rowi58 08-04-10 11:54 PM

Absolutly GREAT :yeah::yeah:. Many thanks, privateer.

Greetings
rowi58

Royale-Adio 08-04-10 11:54 PM

Quote:

Originally Posted by privateer (Post 1460004)
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!

urfisch 08-05-10 05:20 AM

sounds great!

Shiplord 08-05-10 06:08 AM

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?

Madox58 08-05-10 06:30 AM

Quote:

Originally Posted by Shiplord (Post 1460268)
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.
:03:


All times are GMT -5. The time now is 11:54 AM.

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