Decals and Nose art.

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Decals and Nose art.

Post by BlackWolf » Mon Feb 26, 2018 3:19 am

This topic was discussed in another thread between myself and montana05 and thought I'd post it here.
Something else I could do for the game and mod makers is design decals or nose art to be added to ships.
I was also wondering if it would be possible to craft a oxz that would allow players to purchase and add said art to their ships.
Thoughts?
Creativity is a gift, use it well.

User avatar
DataPacRat
Dangerous
Dangerous
Posts: 73
Joined: Sun Feb 18, 2018 12:21 pm
Location: Niagara, Canada
Contact:

Re: Decals and Nose art.

Post by DataPacRat » Mon Feb 26, 2018 5:09 am

BlackWolf wrote:
Mon Feb 26, 2018 3:19 am
This topic was discussed in another thread between myself and montana05 and thought I'd post it here.
Something else I could do for the game and mod makers is design decals or nose art to be added to ships.
I was also wondering if it would be possible to craft a oxz that would allow players to purchase and add said art to their ships.
Thoughts?
In a recent OXP-digging binge, I recall seeing one that did something involving adding visible ID numbers to ship's hulls; I'm afraid I don't remember the name, but if somebody can find it, that might be usable as the basis for other ship decorating.

Other than that - I wouldn't mind being able to spraypaint my board avatar onto my Oolite hulls. :)
Thank you for your time,
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"

User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Re: Decals and Nose art.

Post by BlackWolf » Mon Feb 26, 2018 5:14 am

There is also one that displays battle damage. So in theory, it should be possible.
Creativity is a gift, use it well.

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2550
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Decals and Nose art.

Post by spara » Mon Feb 26, 2018 8:35 am

Won't be easy. There's practically no way of generically adding stickers to ships. Griff's normalmapped ships use a custom shader to add and position decals. Aforementioned oxps also require specific models to work.

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Decals and Nose art.

Post by Diziet Sma » Mon Feb 26, 2018 1:49 pm

spara wrote:
Mon Feb 26, 2018 8:35 am
There's practically no way of generically adding stickers to ships.

Which makes me wonder if this is something that might be able to be incorporated via the core game code? I'd imagine it would be one hell of a popular feature. I'd like to see what the devs think of this idea.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13554
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Decals and Nose art.

Post by Cody » Mon Feb 26, 2018 1:52 pm

Diziet Sma wrote:
Mon Feb 26, 2018 1:49 pm
I'd like to see what the devs think of this idea.
<watches devs run for cover>

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2550
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Decals and Nose art.

Post by spara » Mon Feb 26, 2018 3:32 pm

Diziet Sma wrote:
Mon Feb 26, 2018 1:49 pm
spara wrote:
Mon Feb 26, 2018 8:35 am
There's practically no way of generically adding stickers to ships.

Which makes me wonder if this is something that might be able to be incorporated via the core game code? I'd imagine it would be one hell of a popular feature. I'd like to see what the devs think of this idea.
Let's brainstorm a bit. How would it work?

There needs to be a way to define decals position and orientation per model. Probably best to do in shipdata as coordinates and rotation on the diffusion map. And these would need to be defined for all models.

The decal itself would probably need some materials entry (probably with aforementioned position and orientation and possibly alpha), but it would also need a js-function to swap it. Like changing materials, but only one element of materials.

And to actually "paint" the decal to the ship needs someone with proper shader skills to modify the default shader.

So, a core change and the default shader change are required?

User avatar
Stormrider
Deadly
Deadly
Posts: 211
Joined: Sat Jan 25, 2014 2:35 am
Location: Skiing the Rice Ridge burn

Re: Decals and Nose art.

Post by Stormrider » Mon Feb 26, 2018 4:02 pm

spara wrote:
Mon Feb 26, 2018 8:35 am
Griff's normalmapped ships use a custom shader to add and position decals. Aforementioned oxps also require specific models to work.
Seems like it might be possible to do this with ships that already have decal positions defined. Could setShaders be used to change the decal on the player's ship?
This would at least allow the player to choose a decal for a core ship, perhaps even oxp ships with decal positions defined as well.
BlackWolf wrote: I was also wondering if it would be possible to craft a oxz that would allow players to purchase and add said art to their ships.
It would be cool if you did an NPC decal set, at least for the core ships.
Nice work by the way and thanks for sharing.
DataPacRat wrote: Other than that - I wouldn't mind being able to spraypaint my board avatar onto my Oolite hulls.
You can do this with Griff's ships manually by replacing the griff_decals_player.png in the Oolite.oxp.Griff.Griff_shipset_decals.oxz with your own image that's the same size.
Realize collective conscious creation

Commander_X
Deadly
Deadly
Posts: 238
Joined: Sat Aug 09, 2014 4:16 pm

Re: Decals and Nose art.

Post by Commander_X » Mon Feb 26, 2018 4:16 pm

spara wrote:
Mon Feb 26, 2018 3:32 pm
So, a core change and the default shader change are required?
I don't think a core change will be needed, Griff's ships standing as a proof. The changes he's done could be extended to all the core ships. Some of his functions can actually be extracted as shader libraries.
An OXZ could deal with this, but I guess the most challenging part for an OXZ would be allowing for customizing the decals. It would be great to have an "extension" for OXZs to allow for resources to be used outside the archive, and avoid messing with OXZ unzip/re-zip.
Maybe a sort of "template" OXP could help here.

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2550
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Decals and Nose art.

Post by spara » Mon Feb 26, 2018 4:22 pm

Stormrider wrote:
Mon Feb 26, 2018 4:02 pm
spara wrote:
Mon Feb 26, 2018 8:35 am
Griff's normalmapped ships use a custom shader to add and position decals. Aforementioned oxps also require specific models to work.
Seems like it might be possible to do this with ships that already have decal positions defined. Could setShaders be used to change the decal on the player's ship?
This would at least allow the player to choose a decal for a core ship, perhaps even oxp ships with decal positions defined as well.
e.
That would indeed work for example Griff's normalmapped player ships. The decal file is defined as part of the shader definition. To make this idea work with those ships, probably all that is needed is to write a script that sets the shader with setShaders and simply changes that one file name.

Interesting idea actually. Could it be that simple? :)

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2550
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Decals and Nose art.

Post by spara » Mon Feb 26, 2018 4:24 pm

Commander_X wrote:
Mon Feb 26, 2018 4:16 pm
spara wrote:
Mon Feb 26, 2018 3:32 pm
So, a core change and the default shader change are required?
I don't think a core change will be needed, Griff's ships standing as a proof. The changes he's done could be extended to all the core ships. Some of his functions can actually be extracted as shader libraries.
An OXZ could deal with this, but I guess the most challenging part for an OXZ would be allowing for customizing the decals. It would be great to have an "extension" for OXZs to allow for resources to be used outside the archive, and avoid messing with OXZ unzip/re-zip.
Maybe a sort of "template" OXP could help here.
A generic solution would probably need a core change, at least the core shader change. But with Griff's normalmapped ships, the work is halfway done.

Commander_X
Deadly
Deadly
Posts: 238
Joined: Sat Aug 09, 2014 4:16 pm

Re: Decals and Nose art.

Post by Commander_X » Mon Feb 26, 2018 4:32 pm

spara wrote:
Mon Feb 26, 2018 4:24 pm
A generic solution would probably need a core change, at least the core shader change. But with Griff's normalmapped ships, the work is halfway done.
True.
<notes to himself that core changes apply to Resource folder too, not only to src folder/>

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13554
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Decals and Nose art.

Post by Cody » Mon Feb 26, 2018 4:37 pm

Gotta love custom decals!

Image

Sailsman63
Above Average
Above Average
Posts: 16
Joined: Sat Dec 23, 2017 4:10 am

Re: Decals and Nose art.

Post by Sailsman63 » Mon Feb 26, 2018 5:04 pm

I'm almost certain that there used to be an OXP that did this, but can't find it right now.

If @Cody is referring to one, he didn't link it.

It was fairly capable, to the point that a skilled pilot could etch their initials in an NPC ship's hull with the laser...

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13554
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Decals and Nose art.

Post by Cody » Mon Feb 26, 2018 5:09 pm

No, that's Griff's Cobra. Not the ship I fly, though - Spindrifter is one of Griff's late-model Cobras with four decals.

Post Reply