Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Is there any way to export the planes from IL-2 1946 into .obj?  (Read 912 times)

0 Members and 1 Guest are viewing this topic.

Panzerfaust250

  • member
  • Offline Offline
  • Posts: 66
Is there any way to export the planes from IL-2 1946 into .obj?
« on: September 21, 2022, 06:49:41 PM »

Hello. It's a while since I posted here but I was wondering if it is possible to export the tanks from IL-2 1946 into .obj model format (with UV map intact). The reason I ask is because recently I got Substance Painter and thought it would be interesting to create plane skins using it as I could do a lot more than I could through traditional means. Any help would be greatly appreciated.
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23603
  • Taking a timeout
    • STFU
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #1 on: September 21, 2022, 10:53:04 PM »

Yes there is.
First step is to use the "Dump Mode" of our SAS Selector (https://www.sas1946.com/main/index.php/topic,16403.0.html).
This will get you all internal files of IL-2 dumped to a "dump" folder while they are being accessed, meaning that after enabling the Dump Mode, you run the game, load the plane in question, and will get all it's 3D files dumped to "dump/3DO/Plane/<whatever>".
These files you can either load into IL2Modder (https://www.sas1946.com/main/index.php/topic,59921.0.html) or Aviaskin's "Mesh Viewer" (http://forum.aviaskins.com/showpost.php?p=152227&postcount=408).
Both tools can save the 3D to .obj files.
"UV map intact" is a criteria which rarely gets fulfilled.
As much as I can tell, I usually have to load the resulting files into 3DS max, apply the UVW XForm modifier and flip V.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

Panzerfaust250

  • member
  • Offline Offline
  • Posts: 66
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #2 on: September 21, 2022, 11:41:07 PM »

Thanks for the info and the tools! Although I must ask, is there anyway to export the whole plane as a single unified mesh? I am terrible when it comes to virtual (and real world) model assembly...
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23603
  • Taking a timeout
    • STFU
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #3 on: September 22, 2022, 12:01:31 AM »

Simple answer: No.
Logged
Don't split your mentality without thinking twice.

Panzerfaust250

  • member
  • Offline Offline
  • Posts: 66
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #4 on: September 22, 2022, 12:35:22 AM »

Ah. Figured I'd ask. Thanks for all the help! Hopefully I can get a decent mesh assembled, lol.
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23603
  • Taking a timeout
    • STFU
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #5 on: September 22, 2022, 02:25:15 AM »

You can get the required locations and base coords from the hier.him file and with a bit of brainwork and a suitable 3D application, you can use these values to put the plane together from .obj files.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

Panzerfaust250

  • member
  • Offline Offline
  • Posts: 66
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #6 on: September 22, 2022, 01:48:04 PM »

I hate to ask again but how would one find the positions of the parts? I've looked through both of the programs you sent me but I couldn't find any X Y Z coordinates for the pieces. Again, I'm sorry I had ask another question. Nobody ever accused me of being too bright.
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23603
  • Taking a timeout
    • STFU
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #7 on: September 22, 2022, 11:17:56 PM »

Dumping the game contents get's you a "hier.him" file for each plane together with the mesh files.
Here's the beginning of an A6M3 hier.him file as an example:

Code: [Select]
[_ROOT_]
VisibilitySphere 7.23321
CollisionObject sphere 7.23321 0.0 0.0 0.0
[CF_D0]
Mesh CF_D0
Parent _ROOT_
Attaching 0 1 0 -1 0 0 0 0 1 -0.62727 0 0.14734
CollisionObject xcf1
CollisionObject .xxmgun01
CollisionObject .xxammor
CollisionObject .xxmgun02
CollisionObject .xxammol
CollisionObject .xxcontrols3
CollisionObject .xxtank3

Let's take a look at the "CF_D0" mesh (the main fuselage part that is).
The relevant line is the "Attaching" one.
"0 1 0 -1 0 0 0 0 1" defines the coordinate system.
The first 3 digits "0 1 0" define the direction of the original "x" coordinate.
The 2nd 3 digits "-1 0 0" are the original "y" coordinate.
The 3rd 3 digits "0 0 1" are the original "z" coordinate.
If you don't know about coordinate system rotation, you can use Kumpel's Matrix tool and enter the coords matrix "0 1 0 -1 0 0 0 0 1", then click "calculate angles" to get the result.
Either way, here the coordinate system has been rotated 90° counter-clockwise around the z Axis.
Do the same to the obj when you import it to your 3D program in order to align/rotate it properly.

The last 3 digits "-0.62727 0 0.14734" indicate the position of the mesh in the coordinate system.
Again, enter this to your 3D program so the position of the object is right.

Now comes the tricky part: All of this is relative to the "Parent". Here the parent mesh is "_ROOT_" which is the "center of the 3D world", but subsequent parts will usually have a different parent, most prominently "CF_D0", so all the rotation and location is based on how CF_D0 got rotated and positioned.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

Panzerfaust250

  • member
  • Offline Offline
  • Posts: 66
Re: Is there any way to export the planes from IL-2 1946 into .obj?
« Reply #8 on: September 23, 2022, 08:16:30 PM »

You sir are a lifesaver! Glad there are people out there with some technical knowhow to help technically deficient individuals like myself.  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.069 seconds with 28 queries.