3d models skins

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Re: 3d models skins

User avatar
JeremyaFr
XWAU Member
Posts: 2978
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Jan 03, 2021 1:17 pm

UPDATE

Hello,
I've updated the 32bpp hook.

I've fixed a bug with the skins mipmaps.

User avatar
Haakan
Cadet 2nd Class
Posts: 55
Joined: Sun Jul 14, 2019 1:36 am

Post by Haakan » Fri Jan 08, 2021 3:00 am

CatMouthwash wrote:
Thu Dec 31, 2020 4:19 pm
So I think I must be doing something wrong. I'm not seeing any changes when I try what JeremyaFr outlined in the first post. It's been over a decade since I've done anything with editing skins in XWA and I need to take some time and look through the forum and tutorials on OPTing. But as an example I'm trying out a skin for the YT-1300. (I'd love to see some FG colors for the YT series ships =] )

So the craft is "FlightModels\CORELLIANTRANSPORT2.opt".
I edited a few of the pngs that I extracted from the opt and placed them as follows: "FlightModels\Skins\CORELLIANTRANSPORT2\CORELLIANTRANSPORT2[TEX*****].png"
The files in the skins folder have the same name and dimensions of the original texture. I did change the color mode from Indexed to RGB, would that cause problems?

I recall when I last tried this with the original Xwing that I had a hard time finding which textures to edit. Is it that I have not done the Cockpit and Exterior opts yet?

I wanted to look over the example but I don't see "Skins\XWing\Default\Tex00033.png" anywhere in my directory. Just to be safe I reinstalled the latest update to the Mega Pack today and looked again, but still not there.
I tried with the same texture but nothing...I even painted it all blue to see if I was skipping it but can't see anything online

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 13353
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Fri Jan 08, 2021 7:44 am

I think the error is with the texture name:
The textures don't need the OPT name in them. Basically the way they are displayed when you open the OPT in OPT Editor

The correct path is FlightModels\Skins\CorellianTransport2\TEX00***.png
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

CatMouthwash
Cadet 4th Class
Posts: 11
Joined: Sat Jul 11, 2020 9:10 pm

Post by CatMouthwash » Sun Jan 10, 2021 7:18 pm

Thanks for the idea Vince, I think I must still have something off.

Should the skin show up in the craft viewer or just in mission?

User avatar
Driftwood
Admiral (Moderator)
Posts: 2115
Joined: Wed Oct 22, 2003 11:01 pm
Contact:

Post by Driftwood » Sun Jan 10, 2021 8:25 pm

As far as I understand it's all on a mission.ini basis, so it should not appear in the craft viewer. It is just another means of applying a FG color within a mission.

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 13353
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Sun Jan 10, 2021 10:39 pm

Driftwood is correct, Any craft viewers only read the OPT files itself, to see the skins you must load it in a mission.
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

Bman
Lieutenant
Posts: 987
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Mon Jan 11, 2021 1:40 am

Under the previous way in XwaOptEditor, if you click on the mini {Face Groups:0} tab, that would show you all textures FG0 thru X on the current mesh you have selected. Then you can easily delete, or add new FG skins, or change the order of them etc. Now the extra FG textures are no longer on the model itself, it's being dynamically dressed on the model like Vince said per how the ship's .ini file is setup and/or the missionname.ini files. Quite clever hook.
W-I-P: ISD-II, (Imp) Escort Carrier, NL-1 Platform, Misc, & TFTC.

CatMouthwash
Cadet 4th Class
Posts: 11
Joined: Sat Jul 11, 2020 9:10 pm

Post by CatMouthwash » Mon Jan 11, 2021 3:15 am

Ahhh! That makes so much sense now. I misunderstood JeremyaFr's original post. I assumed that it was an either/or option. Thank you all for your feedback! I'll try that now.

Edit: I was going to wait till the weekend but I couldn't resist, that got it. Again, thank you all for your advice, this is really awesome.

Bman
Lieutenant
Posts: 987
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Tue Jan 12, 2021 5:12 am

The ship's .ini or objects.txt file is the baseline static profile. To deviate from that you make your changes via the mission.tie 's .ini or .txt file where you can hide/render meshes. Or use the objects hook to replace an existing .opt file too with understanding the temporary replacement model inherits the original models' stats. Perhaps swapping one xwing type for another. The new Skins hook is a similar process but deals with dynamic texture swapping. Sort of sets up a storyline of cool things you can do like battle damaged burn marks and so forth on about any model.
W-I-P: ISD-II, (Imp) Escort Carrier, NL-1 Platform, Misc, & TFTC.

User avatar
JeremyaFr
XWAU Member
Posts: 2978
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Jan 18, 2021 5:17 pm

UPDATE

Hello,
I've updated the 32bpp hook.

I've fixed a bug with the skins feature in the Tech Library.

User avatar
ual002
XWAU Member
Posts: 883
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Mon Jan 18, 2021 6:10 pm

Wait, hold up, did you add skin selection buttons the tech library?
Image Image Image Image Image

User avatar
JeremyaFr
XWAU Member
Posts: 2978
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Jan 18, 2021 6:59 pm

No, I didn't.
The Tech Library will display the Default skin.

User avatar
ual002
XWAU Member
Posts: 883
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Mon Jan 18, 2021 7:07 pm

Ok, well that would be an awesome idea nonetheless. Give players the opportunity to see available FG colors without needing to use your 3rd party programs. But given the new skin tech, it might actually be outdated, considering it wouldn't show all available options.
Image Image Image Image Image

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 5431
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Tue Feb 23, 2021 3:39 pm

CatMouthwash wrote:
Mon Jan 11, 2021 3:15 am
Ahhh! That makes so much sense now. I misunderstood JeremyaFr's original post. I assumed that it was an either/or option. Thank you all for your feedback! I'll try that now.

Edit: I was going to wait till the weekend but I couldn't resist, that got it. Again, thank you all for your advice, this is really awesome.
Just to say as Skins is a really new feature it came out after our last update.
With the next Update we will have a better tutorial on how to use Skins in missions. Also some decent examples so you can see how they are laid out as textures.
We don't have a skin creation tutorial yet but will look into it and hopefully everyone can give hints. We are still working out little issues.

I also would like to see some FG colours on the YTs so I look forward to seeing what you and others come up with :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
XWAU Member
Posts: 2978
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Feb 25, 2021 5:41 pm

UPDATE

Hello,
I've updated the 32bpp hook.

I've added the skin name as a suffix for the textures names.

Suppose that the craft is "FlightModels\[Model].opt".
To create a skin named "[Skin1]", create a folder named "FlightModels\Skins\[Model]\[Skin1]\".
To replace a texture, place it in the skins folder with the same name, or the name of the skin appended, and dimensions of the original texture.
The supported image formats are bmp, png, jpg. Use the png format to get transparency.
For example, if the name of the skin is "Skin1", the name of the texture is "Tex00000", and the texture extension is ".png", then the texture filename can be "Tex00000_Skin1.png" or "Tex00000.png"

Post Reply