Iron Ass OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: [WIP] Iron Ass OXP

Post by Old Murgh »

cbr wrote: Tue Mar 01, 2022 9:26 am
How it's done..
you must make a specular-gloss map
materials = {
"relop_krait.png" = {
"diffuse_map" = "relop_krait.png";
"emission_map" = "relop_krait_em.png";
"normal_map" = "relop_krait_norm.png";
"specular_map" = "relop_krait_s.png";

"shininess" = "128";
"gloss" = "0.5";

In the RGB a grayscale or colored ( e.g. above ) specular map
In the ALPHA channel ( = ) a grayscale map of the ( amount of ) gloss
cbr wrote: Tue Mar 01, 2022 1:13 pm
Here is the specular/gloss map used in the mixed krait recently posted in the screenshots thread
https://postimg.cc/vgxWnCmG
I've gotten a little deeper it (supplementing with some youtube explainers) so it's beginning to make more sense. I may save really diving into it for when I start the Rusty Asses..
But would you say placing the grayscale image in the alpha channel is crucial to how the image appears? I don't see in your materials setting the line "extract_channel" = a;..?
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
Cholmondely
Archivist
Archivist
Posts: 5366
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: [WIP] Iron Ass OXP

Post by Cholmondely »

Murgh... will you be giving them any of these personality? Eg. Boyracers in volume 2?

Missionaries have it ("We really love you!"; "Dude! Know that the Eye sees everything!"), as do some of your old .oxp's. And you can now add in Death Cries too...

Image
"Out of my way, slow coach!"
Last edited by Cholmondely on Wed Mar 02, 2022 2:16 pm, edited 2 times in total.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: [WIP] Iron Ass OXP

Post by Old Murgh »

Cholmondely wrote: Wed Mar 02, 2022 12:47 am
Murgh... will you be giving them any of these personality? Eg. Boyracers in volume 2?

Missionaries have it ("We really love you!"; "Dude! Know that the Eye sees everything!"), as do some of your old .oxp's. And you can now add in Death Cries too...
Yes, I really hope I'll be able to take the AI one step further, although I'm weary that it will demand of me to bang my head against javascript.
I'm just first thinking of populating the IronAss fleet with more of the Elite-A ships and some of the Aegidian extra classics before remastering the best of my own old ones, and some of those demand fun AI attitude. If this is sufficiently educational then I should be able to tackle a Missionaries revamp and Lave.oxp. This is how I hope to grow anyway.

ed. I can't decide if the new Boyracer looks most like a hummingbird, dolphin or a goldfish.
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: [WIP] Iron Ass OXP

Post by cbr »

I don't see in your materials setting the line "extract_channel" = a;..?
I believe this to be 'hardcoded' in oolite. The graphics engine takes the alpha from the map presented as the specular_map.
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: [WIP] Iron Ass OXP

Post by cbr »

Image

In an attempt to automate certain tasks I used Imagemagick this time...

Code: Select all

convert relop_anaconda.png -resize '200%' relop_anaconda1.png

convert relop_anaconda1.png -channel RGBA -separate RGBA_%d.png

convert RGBA_1.png -equalize RGBA_1a.png

composite -compose Screen RGBA_1a.png RGBA_1a.png RGBA_1b.png

convert RGBA_1.png -level 0,255,1.0 RGBA_1g.png

composite -compose Darken RGBA_1g.png RGBA_1c.png RGBA_1h.png

convert RGBA_1h.png -channel RGB -separate 1hRGB_%d.png

convert -channel RGBA -combine 1hRGB_0.png 1hRGB_1.png 1hRGB_2.png RGBA_1a.png relop_anaconda_s.png
Looking forward to your Rustyass.oxp :)
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: [WIP] Iron Ass OXP

Post by Old Murgh »

cbr wrote: Wed Mar 02, 2022 11:15 am
I don't see in your materials setting the line "extract_channel" = a;..?
I believe this to be 'hardcoded' in oolite. The graphics engine takes the alpha from the map presented as the specular_map.
Aha. A wonderful secret (to me) revealed.
cbr wrote: Wed Mar 02, 2022 11:21 am
Image

Looking forward to your Rustyass.oxp :)
It’s gorgeous. I would be extremely happy to include contributions and curate a great mix of corrosive expressions. I had only planned for the old iron-meets-water rust, but the ones you are forging are too good not to be out there.
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: [WIP] Iron Ass OXP

Post by cbr »

I would be extremely happy to include contributions and curate a great mix of corrosive expressions
Image
Image
Image

cbr heavy industries presents
From top to bottom

The Bright set
The Mix set
The Rusty set

:)
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: [WIP] Iron Ass OXP

Post by Old Murgh »

cbr wrote: Fri Mar 04, 2022 10:04 pm
cbr heavy industries presents
From top to bottom

The Bright set
The Mix set
The Rusty set

:)
:D
Package safely retrieved, commander. Thank you for your generous contribution.
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: [WIP] Iron Ass OXP

Post by Old Murgh »

Image
Hm. Not showing as expressive as hoped, as vibrant as the Cbr-pics.. Really hoping this isn't another proof of Mac limitations.
cbr wrote: Tue Mar 01, 2022 9:26 am
How it's done.

Code: Select all

materials =         {
            "relop_krait.png" =             {
		"diffuse_map" = "relop_krait.png";
                "emission_map" = "relop_krait_em.png";
                "normal_map" = "relop_krait_norm.png";
		"specular_map" = "relop_krait_s.png";

                "shininess" = "128";
		"gloss" = "0.5";
            };
        };
As far as I can tell, this is exactly as I have it. Feels like the maxed shininess isn't doing it to bring out the specular map details, and the other consequence is (in space trials) it really seems to make a most dramatic contrast so shadow areas are pitch black. Am I doing something wrong or is there another way to amp up the specularity?
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: [WIP] Iron Ass OXP

Post by cbr »

In the latest screenshots I used these settings

Code: Select all

 gloss = "0.8";
And I altered this default shader.fragment

oolite-default-shader.fragment ( oolite trunk / oolite,app / resources / shaders )

with

Code: Select all

#define MULTIPLIER_LIGHTSRCRADIANCE	1.25
#define MULITPLIER_EXPOSURE			1.25


N.B. I use Linux and screenshots ( can ) come from different machines...
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: [WIP] Iron Ass OXP

Post by Old Murgh »

cbr wrote: Sat Mar 05, 2022 8:24 pm
In the latest screenshots I used these settings

Code: Select all

 gloss = "0.8";
And I altered this default shader.fragment

oolite-default-shader.fragment ( oolite trunk / oolite,app / resources / shaders )
with

Code: Select all

#define MULTIPLIER_LIGHTSRCRADIANCE	1.25
#define MULITPLIER_EXPOSURE			1.25
N.B. I use Linux and screenshots ( can ) come from different machines...
Hm. I replicated this and if anything it made them more smooth, as if delicately smeared in liquid silver and bronze, more glowroids-like. How strange that it's so remote from the earlier pics.

I'll see what values I can slide and tweak to make my screen show a closer result, but it feels so restrained. My urge is to free it from the alpha channel and do all the old primitive things I know how, the need to do it all on the basic image texture.
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: [WIP] Iron Ass OXP

Post by cbr »

Here I only changed the shader multipliers back to original levels

Image
Image

Which looks a lot like your set
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: [WIP] Iron Ass OXP

Post by Old Murgh »

cbr wrote: Sun Mar 06, 2022 7:56 am
Here I only changed the shader multipliers back to original levels
..
Which looks a lot like your set
Yes that effectively illustrates the difference. So to produce the desired result without shadertweaking, the diffuse map has to play a bigger part then.
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: [WIP] Iron Ass OXP

Post by cbr »

the standard shader mulitpliers are set so high they seem to wash out any subtle lighting details.

but as said, one can achieve effects on the diffuse map itself...

spacedust/rust on diffuse, gloss on, no specgloss map
Image
spacedust/rust on diffuse, gloss off, no specgloss map
Image

We have the luxury of options :)
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [WIP] Iron Ass OXP

Post by Cody »

cbr wrote: Sat Mar 05, 2022 8:24 pm
oolite-default-shader.fragment ( oolite trunk / oolite,app / resources / shaders )

with

Code: Select all

#define MULTIPLIER_LIGHTSRCRADIANCE	1.25
#define MULITPLIER_EXPOSURE			1.25
I'm currently using:

Code: Select all

#define MULTIPLIER_LIGHTSRCRADIANCE	2.0
#define MULITPLIER_EXPOSURE		1.0
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Post Reply