Page 2 of 2

Re: 3d models skins

Posted: Sun Jan 03, 2021 1:17 pm
by JeremyaFr
UPDATE

Hello,
I've updated the 32bpp hook.

I've fixed a bug with the skins mipmaps.

Re: 3d models skins

Posted: Fri Jan 08, 2021 3:00 am
by Haakan
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

Re: 3d models skins

Posted: Fri Jan 08, 2021 7:44 am
by Vince T
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

Re: 3d models skins

Posted: Sun Jan 10, 2021 7:18 pm
by CatMouthwash
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?

Re: 3d models skins

Posted: Sun Jan 10, 2021 8:25 pm
by Driftwood
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.

Re: 3d models skins

Posted: Sun Jan 10, 2021 10:39 pm
by Vince T
Driftwood is correct, Any craft viewers only read the OPT files itself, to see the skins you must load it in a mission.

Re: 3d models skins

Posted: Mon Jan 11, 2021 1:40 am
by Bman
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.

Re: 3d models skins

Posted: Mon Jan 11, 2021 3:15 am
by CatMouthwash
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.

Re: 3d models skins

Posted: Tue Jan 12, 2021 5:12 am
by Bman
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.

Re: 3d models skins

Posted: Mon Jan 18, 2021 5:17 pm
by JeremyaFr
UPDATE

Hello,
I've updated the 32bpp hook.

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

Re: 3d models skins

Posted: Mon Jan 18, 2021 6:10 pm
by ual002
Wait, hold up, did you add skin selection buttons the tech library?

Re: 3d models skins

Posted: Mon Jan 18, 2021 6:59 pm
by JeremyaFr
No, I didn't.
The Tech Library will display the Default skin.

Re: 3d models skins

Posted: Mon Jan 18, 2021 7:07 pm
by ual002
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.

Re: 3d models skins

Posted: Tue Feb 23, 2021 3:39 pm
by Ace Antilles
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 :)

Re: 3d models skins

Posted: Thu Feb 25, 2021 5:41 pm
by JeremyaFr
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"