![]() |
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: |
Make a simple step...
Describe and publish your stuffs. :haha: |
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. |
You mean we could edit GR2 models with that?
|
Quote:
|
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!: |
Excellently... good luck.
What you can say about UV map and textures? |
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!: |
Just downloaded it privateer. It sounds pretty promising, but I can't wait for the full version:yep:
|
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) |
Absolutly GREAT :yeah::yeah:. Many thanks, privateer.
Greetings rowi58 |
Quote:
I'd love to see the Type II finally completed! |
sounds great!
|
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?
|
Quote:
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: |
Talk about bringing the unexpected to life !
:o |
Hi privateer,
i've checked your „Teaser_Exporter“ with the „Fairy_Fulmar.GR2“ instead of the Ju87. My OS is VISTA/32 with 4 GB RAM. Changed the “header” as you mentioned, exported all objects to OBJ files and assembled them with “wings3d_1.2rc3”. Without uv-mapping, but this would be very easy. http://a.imageshack.us/img201/1329/sh5export.jpg So this plane could be imported into a DAT file (for SH3/SH4). All I can say is – you did a wounderfull job. It's like Christmas. :salute: Greetings rowi58 |
:yeah:
|
Quote:
... But the same Magic Value (as in SH5) was used in 6 version of gr2-file. Is it limitation (error) of old code (and old coder :D)? ... or we have initially different Magic Value in files... you and me? I have Buka's version of game with patch 2... ********************************** Stock Magic value for this file: 29 DE 6C C0 BA A4 53 2B 25 F5 B7 A5 F6 66 E2 EE P.S. My conclusion... For work of your code (reworked old code) is enough to change Magic Value only. And this limitation (error) must be corrected... ... and need to use game's granny2.dll ver. 2.8.30.0... :haha: ... ///////////////////////////////////////////////////////////////// Example: File CharacterBodyParts.GR2 with changed Magic Value only. Using Privateer's exe-file characters body parts have been extracted. Using DE textures (diffuse and normal) have been attached to body parts (material has been created). You see D_Torso02 body-part: http://a.imageshack.us/img210/381/dtorso02.jpg |
Hi rowi58,
The UV maps are there, I just did not add the usemtl command or write out the mtl libraries yet. The next release version will have them included. :DL Hi Anvart, The old code needed the hex editing trick. I have corrected that with code from a different exporter that can use the SH5 granny2.dll file. (not bad for an old coder right? :haha:) The next release version will have a UI also. So no bat file will be needed. And if I have the time? I'll add the ability to select a single Mesh for export. |
All times are GMT -5. The time now is 06:01 PM. |
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.