Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Griff ships with player-defined decals

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

Moderators: winston, another_commander

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

Post by Diziet Sma »

Nice one.. 8) although I have another idea in mind.. I hope to unveil it this weekend.
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: 16080
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Just one more decal shot (with beautiful nebulae):

Image
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!
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Post by Gimi »

Now that my exams are over, I have been playing around with Griff's Decals and have some questions. Got the decal to show in 1.73.4 and Trunk but there seems to be a conflict with Griff's all in one pack. When I use his "griff_cobraIII_shadertest.oxp" together with griff's all in one the decal doesn't show.

Now, how can I get the Griff Cobra to replace the player cobra while keeping deepspace, sungs and neolite ships all working together. I assume that I can get my own decal working by replacing griff_player_decal.png in the texture folder, but I need some instructions on how to make this work for my own ship with my own decal.

While I'm at it, if I was to submit a profile with a decal to personalities.oxp, how would I go about setting that up. (The ship part).

Image
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16080
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Hi Gimi

A question: why are you using the shader test oxp?
Use the player Cobra III in the all-in-one oxp and all should be well.
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!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16080
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Gimi wrote:
While I'm at it, if I was to submit a profile with a decal to personalities.oxp, how would I go about setting that up. (The ship part).
Missed that part... the first page of the Personalities oxp lists the things Commander McLane needs to know. You can C&P the relevant ship data from the player ship section of the shipdata.plist (i.e. ship type, specs, colour scheme etc), into a PM, along with your normal equipment list, ‘persona’ et al, and a link to your custom decal (or attach it all to an e-mail).
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!
User avatar
Yrol_Denjeah
Dangerous
Dangerous
Posts: 75
Joined: Mon Apr 26, 2010 8:29 am

Post by Yrol_Denjeah »

Here is a Thought:
Can one make a shipvariant that is limited in occurence to just
one ship and then, IF the universe decides it is time to spawn it,
it gets spawned in the same galaxy/system the player is in?

Background: if a ship can have a personality attached to it,
plus a "tattoodecal", would it not be neat, if it also has the name of
one of the people from this forum and it also then uses a decal that
person has submitted to the guy/s who make that OXP?

Result: Every once in a while i can actually DO something against the
ongoing infiltration and assimilation of ClymAngus. °grins°
Well, or just meet you guys ingame aswell.
(in a cutely insane, electronic, stuttering female voice)
Are you Afraid? What is it you Fear?
The End of your Trivial Existence? Ha!
When the History of my Glory is written,
your Species shall only be a Footnote
to my Magnificence.
I am SHODAN.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Post by Gimi »

Yrol_Denjeah wrote:
Here is a Thought:
Can one make a shipvariant that is limited in occurence to just
one ship and then, IF the universe decides it is time to spawn it,
it gets spawned in the same galaxy/system the player is in?

Background: if a ship can have a personality attached to it,
plus a "tattoodecal", would it not be neat, if it also has the name of
one of the people from this forum and it also then uses a decal that
person has submitted to the guy/s who make that OXP?

Result: Every once in a while i can actually DO something against the
ongoing infiltration and assimilation of ClymAngus. °grins°
Well, or just meet you guys ingame aswell.
This is exactly what personalities.oxp does, hence my question about the decal. I know how to do all txt and ship data, just didn,t know if a full ship model was needed as well. Have a look at this thread:
https://bb.oolite.space/viewtopic.php?t=6806
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Post by Gimi »

El Viejo wrote:
Hi Gimi

A question: why are you using the shader test oxp?
Use the player Cobra III in the all-in-one oxp and all should be well.
Simple, because I know absolutely nothing about coding, shaders and decals. I design software and look in amazement when the coders make it come to life. :shock:

I was sort of following the instructions from Griff without looking inside the all in one oxp. It works a treat with the all in one now, but I still want Griff's Cobra Mk III to replace the player default cobra only. As it is now I have to buy a Griff Cobra to get the ship and the decal working.

Still playing around with it. Anyone know if I can have two decals on one ship, in different places?

Thanks for your help by the way.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

hi Gimi
regarding giving the player the griffcobraIII I think this should work:
we just need to like_ship the default cobraIII to the griff one
Make a Config folder in your addons folder (it doesn't have to be inside another folder with .oxp on the end.)
save this out as shipdata.plist:

Code: Select all

{ 
"cobra3-player" = 
   { 
   like_ship = "griff_normalmapped_cobra_mkIII_player"; 
   model = "griff_cobra_mk3_mainhull.dat"; 
   roles = "player"; 
   };    
}    
or for the more beaten up version, save this out as shipdata.plist instead:

Code: Select all

{ 
"cobra3-player" = 
   { 
   like_ship = "griff_normalmapped_cobra_mkIII_scuffed_player"; 
   model = "griff_cobra_mk3_scuffed_mainhull.dat"; 
   roles = "player"; 
   };    
}
regarding having 2 decals on the cobraIII, it is possible but the necessary bits of code haven't been written into the cobra III shader, it shouldn't be too difficult to add in, if i can stop playing GTA4 in the evenings i'll try and whip up a 2 decal cobra shader
Last edited by Griff on Tue Apr 27, 2010 9:03 am, edited 1 time in total.
User avatar
Yrol_Denjeah
Dangerous
Dangerous
Posts: 75
Joined: Mon Apr 26, 2010 8:29 am

Post by Yrol_Denjeah »

Hmmm, would it be possible to even buy decals,
so we can switch them on the fly?
( actually "on the dock" °winks° )

Maybe even something like the GTA-IV paintshops would be possible,
where we can select from several liverys for the current ship.

Do not the "Your Ad Here"-boards switch the texture while
beign "rezzed" already into the universe?
(in a cutely insane, electronic, stuttering female voice)
Are you Afraid? What is it you Fear?
The End of your Trivial Existence? Ha!
When the History of my Glory is written,
your Species shall only be a Footnote
to my Magnificence.
I am SHODAN.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

Will they have to be the same one, or can each decal be different? Also, I'd like to request a 3rd, larger decal located on the Cobra's belly, if possible.. :D
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
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

A really neat feature that the devs have added into the current trunk build is Oolite's new ability to remember random vec3's assigned to shader uniforms , it means that player ships can now have random paint colours on them when they are spawned in the shipyard, and if you do buy a ship, it'll continue to be the same colour from game session to game session! really awesome, it makes a really fun difference to browsing the shipyard.

Right, i'll get my thinking cap on and whip up a multidecal shader for the cobraIII, regarding a bigger decal on the underside, this shouldn't be too hard, although the 'biggerness' of the decal will have to come from adjusting the scale setting for that decal (you won't be able to use a higher res texture just for the 3rd decal, all 3 would have to be in the same texture image - thinking about it will 3 decals fit neatly in the image? it might have to be 4 decals)
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Post by Gimi »

Griff wrote:
A really neat feature that the devs have added into the current trunk build is Oolite's new ability to remember random vec3's assigned to shader uniforms , it means that player ships can now have random paint colours on them when they are spawned in the shipyard, and if you do buy a ship, it'll continue to be the same colour from game session to game session! really awesome, it makes a really fun difference to browsing the shipyard.

Right, i'll get my thinking cap on and whip up a multidecal shader for the cobraIII, regarding a bigger decal on the underside, this shouldn't be too hard, although the 'biggerness' of the decal will have to come from adjusting the scale setting for that decal (you won't be able to use a higher res texture just for the 3rd decal, all 3 would have to be in the same texture image - thinking about it will 3 decals fit neatly in the image? it might have to be 4 decals)
Now we are talking. Have been reading up on this stuff and looking into the code. Beginning to understand a little bit. Hmm, 4 Decals..... "thinking" .. Family Crest, Avatar from Oolite bb, rank according to oolite bbs based on posts, ... I need one more :?
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

The decal code is all out of Ahrumans shader example, and is much, much more advanced than anything i could try to understand - despite him having written a full explanation of it's workings, which is why i always pull an odd combination of facial expressions whenever i have to try and copy bits of it into a new shader, my face sort of does all these :shock: :o :cry: :?: :!: :?: only all at the same time

Ahruman's guide to decals is here https://bb.oolite.space/viewtopic.php?t= ... c&start=62
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16080
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Griff wrote:
it might have to be 4 decals)
That will do nicely... great idea.
Two on top and two underneath.
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