Special Aircraft Service

Please login or register.

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

Author Topic: Help applying textures to meshes  (Read 4840 times)

0 Members and 1 Guest are viewing this topic.

Rock

  • Aviator Mod Team
  • Modder
  • member
  • Offline Offline
  • Posts: 533
  • Aviator modding
    • Axis and Allies Paintworks
Help applying textures to meshes
« on: August 13, 2009, 07:17:19 AM »

Hello,

I have been messing with him files recently and have been working towards makeing some air raceing aircraft in new slots for IL2.  I love air raceing and formation flying.




The new slot is created, The FM is done,   I was wondering, is there a way to apply a texture to just one mesh?     Ie  The prop is from the Spitfire Mk XIV, and there-for it takes it's mapping from from where the it does on the spitfire skin. Also, since takeing this screenshot i have put the Griffon engine  from the spitfire too.



Thank you,


Regards

Rock.
Logged

Wolfighter

  • SAS Honourable Member
  • member
  • Offline Offline
  • Posts: 395
Re: A Little Help
« Reply #1 on: August 25, 2009, 05:28:00 PM »

mmm...

Look like the marking problem, im go to try the solution of that problem to night in my C-47 model if im have sucess im go to send you a PM.

regards and nice work
Logged

Dornep

  • member
  • Offline Offline
  • Posts: 1
Re: Help applying textures to meshes
« Reply #2 on: September 12, 2009, 12:36:37 PM »

This is just a guess so if I'm wrong, I'm sorry but I'm still very new to IL2 modding.

If you look in the props.msh file (it may be unreadable) in notepad, it should have a list of materials the mesh uses under the [Materials] section.

I've examined one and it says..
[Materials]
Gloss1D0o
Matt1D0o

If you look in the Gloss1D0o.mat file with notepad it should list the texture it uses.

[Layer0]
  TextureName skin1o.tga

If you change this line to say Spitprop.tga, and drop the Spits original skin into the same folder with the Mustangs skins, so you have a skin1o.tga for the mustang and a Spitprop.tga in the same folder.

This is all theory as I havent gottten this far or tested it, but shouldn't it draw the entire Spits texture and being that it was mapped for that texture, everything should line up correctly? I will have to test this but I don't see why it wouldn't work. It would be much simpler I think to export the mesh and edit it and unwrap it using 3dsmax or Gmax and then re-export it using your own 512x512 texture.

Again if this doesn't work I'm sorry..

***Edit***

I forgot to say that you would have to edit the prop1d0.msh to use a different Material, I'm guessing you can copy the original Gloss1d0.mat and rename it something like Prop.mat, then in the props .msh file replace the line under materials that says Gloss1do with Prop

I'm gonna feel like a douche if this is completely wrong.. I will test it real quick and see if it works..

***Edit 2nd time***
Ok.. I'm not a total douche, I tested it and it works fine. It will be very hard on CPU resources using an entire texture just for a single aircraft part though.

Instead of placing the K14's skin in the Fw190s skin folder, I placed in the folder labeled TEXTURES in the directory IL-2 Sturmovik 1946\MODS\FW-190_A-3\3DO\Plane\TEXTURES
The Fw-190A3 also draws its wheel texture from this location.

I duplicated the Gloss1do.mat file and renamed the new one Prop.mat... Then changed the materials entry in the props.msh file from Gloss1do to Prop.

In the Prop.mat file I changed the texture name from Skin1o.tga to Prop.tga, also I changed the location of the file to /TEXTURES/Prop.tga. If you repeat the process for the rotational msh of the prop, it should work the same way.



Logged

Rock

  • Aviator Mod Team
  • Modder
  • member
  • Offline Offline
  • Posts: 533
  • Aviator modding
    • Axis and Allies Paintworks
Re: Help applying textures to meshes
« Reply #3 on: October 26, 2009, 12:44:42 PM »

Thanks man! appreciate it. :)
Logged

SAS~Riken

  • "Area 51"
  • SAS Team
  • member
  • Offline Offline
  • Posts: 1344
  • Where's Waldo? Who's Waldo?
Re: Help applying textures to meshes
« Reply #4 on: December 13, 2009, 05:32:11 PM »

changed the materials entry in the props.msh file from Gloss1do to Prop.

Ok how do I go about doing this part? When I open the props.msh file in wordpad or notepad, I get a bunch of crap like symbols and such.
Logged

SAS~CirX

  • R.I.P.
  • SAS Honourable Member
  • member
  • Offline Offline
  • Posts: 5254
  • No Zips, Only Buttons
Re: Help applying textures to meshes
« Reply #5 on: December 13, 2009, 05:41:06 PM »

you have to open it with mesh converter and save it again to be able to open it in a notepad.
Logged

SAS~Riken

  • "Area 51"
  • SAS Team
  • member
  • Offline Offline
  • Posts: 1344
  • Where's Waldo? Who's Waldo?
Re: Help applying textures to meshes
« Reply #6 on: December 13, 2009, 06:08:35 PM »

Ok that worked. Once again, you saved me!. Now the work I just did wont show up like I wanted it to. I'm going to go back and do it over again. I'll check back on progress.
Logged

SAS~Riken

  • "Area 51"
  • SAS Team
  • member
  • Offline Offline
  • Posts: 1344
  • Where's Waldo? Who's Waldo?
Re: Help applying textures to meshes
« Reply #7 on: December 15, 2009, 03:56:25 PM »

Quote
Instead of placing the K14's skin in the Fw190s skin folder, I placed in the folder labeled TEXTURES in the directory IL-2 Sturmovik 1946\MODS\FW-190_A-3\3DO\Plane\TEXTURES
The Fw-190A3 also draws its wheel texture from this location.


Does this mean to place the aircraft skin in a texture folder in my new mod folder?

Quote
I duplicated the Gloss1do.mat file and renamed the new one Prop.mat... Then changed the materials entry in the props.msh file from Gloss1do to Prop.

Which file do I need to work with, my mod's, or the plane that I borrowed it from

Quote
In the Prop.mat file I changed the texture name from Skin1o.tga to Prop.tga, also I changed the location of the file to /TEXTURES/Prop.tga. If you repeat the process for the rotational msh of the prop, it should work the same way.
 

Where do I find the Prop.tga file? It say to point the files to it, but I cant find it.
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 26 queries.