Decals and Nose art.
Moderators: winston, another_commander
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: Decals and Nose art.
Many moons ago, Frame did a Ship Registration ID OXP, which was using shaders for applying decal IDs on ships. It's still here: https://bb.oolite.space/viewtopic.php?t=7579 and here: http://wiki.alioth.net/index.php/RegistrationID
However, this was done using the pre-1.80 ship set, so it probably won't work with the newer versions. It could still give an idea of how something like custom decals could be done, though.
However, this was done using the pre-1.80 ship set, so it probably won't work with the newer versions. It could still give an idea of how something like custom decals could be done, though.
Re: Decals and Nose art.
Well. It is possible to change Griff's decals on the fly via script...
Could not get the spinning ship in the station interface to change decal though. It's probably handled some how differently.
Could not get the spinning ship in the station interface to change decal though. It's probably handled some how differently.
Re: Decals and Nose art.
And if some one is interested in exploring this further, this is the script I used:
Code: Select all
this._changeDecal = function() {
var shader = player.ship.getShaders();
shader.Hull.textures[3] = "spara_decal.png";
player.ship.setShaders(shader);
}
Re: Decals and Nose art.
So jealous of all you script writers and coders. lol
All I can contribute is art.
All I can contribute is art.
Creativity is a gift, use it well.
- DataPacRat
- Dangerous
- Posts: 73
- Joined: Sun Feb 18, 2018 12:21 pm
- Location: Niagara, Canada
- Contact:
Re: Decals and Nose art.
I'm just starting to experiment with Griff's models (my memory is that my laptop can't handle them, but I've got Griff's Cobra3 installed, and the spinning startup model seems to be working); but I'm getting them through the Expansions Manager, which installs them into the software directory, which I need to start fiddling with root access to modify.spara wrote: ↑Mon Feb 26, 2018 5:54 pmAnd if some one is interested in exploring this further, this is the script I used:Code: Select all
this._changeDecal = function() { var shader = player.ship.getShaders(); shader.Hull.textures[3] = "spara_decal.png"; player.ship.setShaders(shader); }
How much more than this script would be required to make a quickie OXP, in the ~/.Oolite/Addons directory, where I can toss my preferred image into?
Thank you for your time,
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
Re: Decals and Nose art.
Here's my quick test-oxp. Uncompress to AddOns, start the Debug console and Oolite, start a game with Griff's normal mapped Cobra, launch and executeDataPacRat wrote: ↑Mon Feb 26, 2018 6:08 pmI'm just starting to experiment with Griff's models (my memory is that my laptop can't handle them, but I've got Griff's Cobra3 installed, and the spinning startup model seems to be working); but I'm getting them through the Expansions Manager, which installs them into the software directory, which I need to start fiddling with root access to modify.spara wrote: ↑Mon Feb 26, 2018 5:54 pmAnd if some one is interested in exploring this further, this is the script I used:Code: Select all
this._changeDecal = function() { var shader = player.ship.getShaders(); shader.Hull.textures[3] = "spara_decal.png"; player.ship.setShaders(shader); }
How much more than this script would be required to make a quickie OXP, in the ~/.Oolite/Addons directory, where I can toss my preferred image into?
worldScripts["change_decal"]._changeDecal();
in the console.https://app.box.com/s/rmhvgrsvdvarh6snupitda5eer6utdva
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: Decals and Nose art.
You can always make an OXP out of an OXZ by:DataPacRat wrote: ↑Mon Feb 26, 2018 6:08 pmHow much more than this script would be required to make a quickie OXP, in the ~/.Oolite/Addons directory, where I can toss my preferred image into?
1. move the OXZ away from the ManagedAddOns folder
2. Expand (extract, unzip) the OXZ in an corresponding named folder with the extension oxp under ~/.Oolite/AddOns (e.g. MyMod.oxz will be dumped in ~/.Oolite/AddOns/MyMod.oxp)
3. Tweak the content under the oxp folder
These steps must be taken without having Oolite started.
Various tweaks at 3. might require you to restart Oolite with Shift key pressed, to regenerate the cache file, and enjoy (YMMV ) the changes.
- DataPacRat
- Dangerous
- Posts: 73
- Joined: Sun Feb 18, 2018 12:21 pm
- Location: Niagara, Canada
- Contact:
Re: Decals and Nose art.
Welp, looks like I've got more fiddling to do to get it to work:spara wrote: ↑Mon Feb 26, 2018 6:19 pmHere's my quick test-oxp. Uncompress to AddOns, start the Debug console and Oolite, start a game with Griff's normal mapped Cobra, launch and executeDataPacRat wrote: ↑Mon Feb 26, 2018 6:08 pmI'm just starting to experiment with Griff's models (my memory is that my laptop can't handle them, but I've got Griff's Cobra3 installed, and the spinning startup model seems to be working); but I'm getting them through the Expansions Manager, which installs them into the software directory, which I need to start fiddling with root access to modify.spara wrote: ↑Mon Feb 26, 2018 5:54 pmAnd if some one is interested in exploring this further, this is the script I used:Code: Select all
this._changeDecal = function() { var shader = player.ship.getShaders(); shader.Hull.textures[3] = "spara_decal.png"; player.ship.setShaders(shader); }
How much more than this script would be required to make a quickie OXP, in the ~/.Oolite/Addons directory, where I can toss my preferred image into?worldScripts["change_decal"]._changeDecal();
in the console.
https://app.box.com/s/rmhvgrsvdvarh6snupitda5eer6utdva
Code: Select all
Exception: TypeError: shader.Hull is undefined
Active script: oolite-debug-console 1.86
script.js, line 6:
log("test", shader.Hull.textures);
Thank you for your time,
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
Re: Decals and Nose art.
Yep, Griff's normalmapped ships are required. At least Cobra III, I suppose.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Decals and Nose art.
No decals on Griff's Moray though - that has amazing squid-like hull effects instead. Get up-close to one and annoy it.
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Decals and Nose art.
The thing that does not work with this method, are mission screens that show player ship as well as the spinning ship on status screen. In theory by jumping tricky hoops, one might be able to catch mission screens that show player ship and manipulate that, but I have no idea how to script the spinning ship on status screen.
In short, this method would need some core changes to catch those manifestations of the player ship.
As far as I can seen, the only all around solution currently would be defining as many different player ships as there are decals and instead of changing the decal, one changes the ship. That would be overkill for such a small feature though.
If only there was a way to access some missionvariable or worldscript from a shader...
In short, this method would need some core changes to catch those manifestations of the player ship.
As far as I can seen, the only all around solution currently would be defining as many different player ships as there are decals and instead of changing the decal, one changes the ship. That would be overkill for such a small feature though.
If only there was a way to access some missionvariable or worldscript from a shader...
- DataPacRat
- Dangerous
- Posts: 73
- Joined: Sun Feb 18, 2018 12:21 pm
- Location: Niagara, Canada
- Contact:
Re: Decals and Nose art.
And I've now got the full set of Griff's textures, have gotten a Cobra 3 with one of the gs resprays, launched, ranDataPacRat wrote: ↑Mon Feb 26, 2018 6:36 pmWelp, looks like I've got more fiddling to do to get it to work:spara wrote: ↑Mon Feb 26, 2018 6:19 pmHere's my quick test-oxp. Uncompress to AddOns, start the Debug console and Oolite, start a game with Griff's normal mapped Cobra, launch and executeDataPacRat wrote: ↑Mon Feb 26, 2018 6:08 pm
I'm just starting to experiment with Griff's models (my memory is that my laptop can't handle them, but I've got Griff's Cobra3 installed, and the spinning startup model seems to be working); but I'm getting them through the Expansions Manager, which installs them into the software directory, which I need to start fiddling with root access to modify.
How much more than this script would be required to make a quickie OXP, in the ~/.Oolite/Addons directory, where I can toss my preferred image into?worldScripts["change_decal"]._changeDecal();
in the console.
https://app.box.com/s/rmhvgrsvdvarh6snupitda5eer6utdva
(For the moment, I think I'll just spend some time downloading all the rest of the Griff retextures while reading some fiction.)Code: Select all
Exception: TypeError: shader.Hull is undefined Active script: oolite-debug-console 1.86 script.js, line 6: log("test", shader.Hull.textures);
worldScripts["change_decal"]._changeDecal();
in the debug console... and got the exact same error message in the debug console.For all I know, it might be a video-hardware thing; I'm running on a Thinkpad T410 with a NVIDIA Quadro NVS 3100M, if that means anything to anyone here.
Thank you for your time,
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Decals and Nose art.
There's a line in the
Latest.log
that'll tell you whether shaders are supported.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!
And any survivors, their debts I will certainly pay. There's always a way!
- DataPacRat
- Dangerous
- Posts: 73
- Joined: Sun Feb 18, 2018 12:21 pm
- Location: Niagara, Canada
- Contact:
Re: Decals and Nose art.
Thank you for your time,
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
--
DataPacRat
"Does aₘᵢₙ=2c²/Θ ? I don't know, but wouldn't it be fascinating if it were?"
Re: Decals and Nose art.
After installing Griff's normalmapped ships, does the spinning Cobra at the welcome screen have a decal? The one with the comic style skull.