timerized action class (4 fx & whatalike)

Discuss any 3rd-party tools and code that may be of interest to other Juce users

timerized action class (4 fx & whatalike)

Postby kraken » Mon Feb 20, 2006 5:34 pm

this is an initial shot of a bunch of classes that ease the creation of timerized concat of actions...
- standard TimerizedAction classes where to start creating frame based motions and whatever you want (you're not limited to anything!)
- Parallel action that let you sinc two or more action to be executed togheter
- Accordion class that let you concat more actions, each with specific duration and Transition function (linear,sinusoidal,cubic,stepped). also there is control over playback direction, speed and smoothing

in the example you can see a visual implementation of the classes. i've done actions for rebounds, reposition, relative resize and colour changes for the current component... and the last effects are resize and colour in parallel... but you are not limited to do this... you can create whatever like of effect you need ! (in a bunch of lines)

effects.exe

if someone is interested, it will be soon added to ejuce repository
Last edited by kraken on Thu Feb 23, 2006 2:35 am, edited 1 time in total.
Image
User avatar
kraken
JUCE UberWeenie
 
Posts: 1063
Joined: Wed Feb 09, 2005 10:31 am
Location: Venice, Italy

Postby jules » Mon Feb 20, 2006 5:39 pm

that's a pretty cool little demo! Look forward to seeing the classes!
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Postby kraken » Tue Feb 21, 2006 12:19 am

thanx jules ;) i'm glad you think is cool... is always a lot of happiness to hear compliments from The Man ;)
anyway i've a bunch of features more to throw in, then clean the classes and document'em in juce styla and i'm proud to offer to the community...

take it as a gift for your excellent work !
Image
User avatar
kraken
JUCE UberWeenie
 
Posts: 1063
Joined: Wed Feb 09, 2005 10:31 am
Location: Venice, Italy

Postby kraken » Tue Feb 21, 2006 9:53 pm

any chance to have a fadeInComponent function ? is this possible ? i haven't investigated too much... but is the only thing i can't make with the effects...
Image
User avatar
kraken
JUCE UberWeenie
 
Posts: 1063
Joined: Wed Feb 09, 2005 10:31 am
Location: Venice, Italy

Postby kraken » Wed Feb 22, 2006 1:18 am

i've eased the creation steps a bit... now is easy to chain actions and to parallelize chains, i added the possibility to loop the timeline and included more transitions. the classes need a bit of refactoring (and speedup) but for now they're a good start for creating basic effects for components.
actually you can inherit the TimelineSystem to build up a class effect around a specific component and do things like shaking, slidein by just calling play...

example usage:
Code: Select all
TimelineSystem* timeline = new TimelineSystem (0.8f/*smoothFactor*/,2/*loopcount*/);

SliceActionChain* chain1 = new SliceActionChain();
chain1->addAction(
   new ComponentEffectBounds(component,Rectangle(500,200,200,100)),
   500, /*milliseconds*/
   TransitionLinear::stepToNextFrame
);
chain1->addAction(
   new ComponentEffectRelativeSize(component,2.0f,2.0f),
   1000, /*milliseconds*/
   TransitionPlastic::stepToNextFrame
);
chain1->addAction(
   new ComponentEffectBounds(component,Rectangle(100,100,200,20)),
   2000, /*milliseconds*/
   TransitionSinusoidal::stepToNextFrame
);

// chain2...3..

timeline->addChain(chain1);
timeline->addChain(chain2);
// ...

timeline->play();


timeline.zip
hope you like ;) ... ah maybe you have to double click on the window to make something happen
Image
User avatar
kraken
JUCE UberWeenie
 
Posts: 1063
Joined: Wed Feb 09, 2005 10:31 am
Location: Venice, Italy

Postby OvermindDL1 » Wed Feb 22, 2006 6:46 pm

I made a fade in function that just subclasses from fade-out, does a few other things as well depending on what you tell it to do, if I can find it in one of my hundred or so testing projects that use juce, I'll post it up.
Image
OvermindDL1
JUCE UberWeenie
 
Posts: 328
Joined: Fri Jun 03, 2005 11:58 am

Postby kraken » Thu Feb 23, 2006 12:54 am

yeah thanx overmindl1... i can implement it, isn't so difficult but i asked that logically the Component::fadeInComponent could live near the Component::fadeOutComponent function, if we can use the latter... why the former isn't there ?
Image
User avatar
kraken
JUCE UberWeenie
 
Posts: 1063
Joined: Wed Feb 09, 2005 10:31 am
Location: Venice, Italy


Return to Useful Tools and Components

Who is online

Users browsing this forum: No registered users and 2 guests