-
Member
Colour change fade
Hi all. I saw a track recently where objects were fading from one colour to another and then another and so on. Looked on the colour change event and can't see any additional setting. Unless I'm missing something obvious (which is very possible).
Does anyone know how this was done?
Thanks
-
Senior Member
You can define a color with a Vector set up 0-255 on X Y Z, based on RGB colors, 255,0,0 is standard red for example, and work from there linking it to a color event. And change the values in the vector with data sources.
color chart:
http://www.rapidtables.com/web/color/RGB_Color.htm
-
Senior Member
hey greenthumb
this is a fairly simple task:-
place a curved vector data source, this will be use to blend one colour to another,
place 2x Vectors and set up the R/G/B vales inside them (0-255 intensity grade of each R/G/B mix value), these will be use inside the curved vector as the start vector (colour) and end vector (blend to colour)
open your objects colour properties and pick the curved vector as the colour.
with the curved vector set up so the start/end vectors are set, check invert second half (something like that :P) this will make the curve run from start to end and back to start over the course of your set duration, check loop and set the duration to twice the time you want it to blend from start to end (twice as it has to go in opposite direction), for this example i'll say 2seconds (120)
if you have things set up correctly, turn on editor physics to do a test, if its all correct you should have a smooth blend from one colour to another.
now to set up blending to many colours 
this is down to a matter of timing and will go along these lines,
1) curve vector starts up, plus two intervals (i'll go into details below)
2) curve vector blends from start to end vector, reaches end vector (1 seconds later) :- update the data inside the start vector
3) curve vector blends from end to start vector, reaches start vector (2 seconds later):- update data inside the end vector
the interval triggers are the key to blending many colours
you will need to place:
2xInterval Trigger
3xrandom number generators, set them so min is 0 and max is 255, set the update rate to 60 (1second, half the duration of the curve)
2xSet Vector, target one to the start Vector and the other to the end Vector and point the X/Y/Z to each of the random values in both SVEs
The start vector update interval settings
open the Interval trigger:-
set Start Delay to 60 (1second, half the duration of the curve)
set Interval to 120 (duration of the curve)
pass the impulse to the Set Vector Event for the Start Value
The End vector update interval settings
open the Interval trigger:-
set Start Delay to 120 (duration of the curve)
set Interval to 120 (duration of the curve)
pass the impulse to the Set Vector Event for the End Value
if you want to trigger the colour cycle at some specific time in your track, uncheck enable in the curve vector and both intervals and use a state event to enable the curve vector and the two interval triggers when required.
that should do it
hope it helps
-
Senior Member
hey GreenThumb, i think this is what you need:
Changing Color / Emission with Values
http://forums.ubi.com/showthread.php...on-with-Values
i uploaded 2 videos there, they should explain you how its done
have fun with that
-
Member
Cheers guys. That's spot on. I shall give it a go this evening! Much obliged. Thanks