Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Color help

Archive: 5 posts


Is there an easy way to change the color of a sticker panel with logic? I'm making a level which allows the player to change the color of something and I don't wanna have to emit each new color...because there's a lot of parts. I managed to get a few colors using batteries and percentages.2013-08-22 00:50:00

Author:
dragonboy269
Posts: 172


The answer is yes. You can produce a broad range of colours.

I'm sure you've already experimented with the dimmer switch and stuff from what you've written, so I'll cut to the chase.

You can achieve something resembling the full colour wheel using 8 pieces of sticker panel in 2 layers. 6 of those transition between all hues around the wheel, from red to yellow, from yellow to green, etc. 2 for the tonal value, a black and white piece of sticker panel with varying levels of opacity.

You could choose to handle both sets of sticker panel the same way. Once the player hits -100% or +100% increment or decrement a selector passing the analog signal to the next block in sequence and invert the analog signal, this is the simplest way I can think of to generate a smooth transition between all hues.

Depending on the complexity of your object you could opt for that or a simplified version with fewer hues. For the greatest range of hues it's best to stick to adjacent colours, otherwise there's a variation in tone which you can otherwise handle independently.
2013-08-22 02:03:00

Author:
Ayneh
Posts: 2454


Wow thanks ^^ I'll try it out.2013-08-22 02:56:00

Author:
dragonboy269
Posts: 172


Just realised I made the same mistake in that post that I first made in-game when trying to build this.

You have to lower the opacity of the current hue that's displayed before you can change to another, otherwise you won't be able to see anything. It'll take 12 pieces of sticker panel, not 6, to reproduce the full colour wheel. The principal is the same, it'll just take twice the amount of sticker panel and a longer selector.
2013-08-22 04:28:00

Author:
Ayneh
Posts: 2454


this sounds solved, thx ayneh for the awesome suggestion. would u concure dragonboy? 2013-08-23 17:38:00

Author:
L-I-M-I
Posts: 611


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.