Page 8 of 13

Posted: Tue Mar 23, 2010 1:45 pm
by Diziet Sma
Nice one.. 8) although I have another idea in mind.. I hope to unveil it this weekend.

Posted: Wed Mar 24, 2010 12:39 am
by Cody
Just one more decal shot (with beautiful nebulae):

Image

Posted: Mon Apr 26, 2010 6:11 pm
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

Posted: Mon Apr 26, 2010 7:21 pm
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.

Posted: Mon Apr 26, 2010 9:58 pm
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).

Posted: Mon Apr 26, 2010 10:24 pm
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.

Posted: Mon Apr 26, 2010 10:35 pm
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

Posted: Mon Apr 26, 2010 10:42 pm
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.

Posted: Tue Apr 27, 2010 8:46 am
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

Posted: Tue Apr 27, 2010 8:58 am
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?

Posted: Tue Apr 27, 2010 9:00 am
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

Posted: Tue Apr 27, 2010 9:16 am
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)

Posted: Tue Apr 27, 2010 9:23 am
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 :?

Posted: Tue Apr 27, 2010 9:32 am
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

Posted: Tue Apr 27, 2010 9:35 am
by Cody
Griff wrote:
it might have to be 4 decals)
That will do nicely... great idea.
Two on top and two underneath.