Artwork > Finished Works and Works in Progress

Dancing Bot!

<< < (2/4) > >>

ENSONIQ5:
Re synching to music, all you really need is the beats-per-minute of the music track.  I guess the simplest way to do this is to literally count the beats over a timed 60 seconds.  Once you have the BPM you can calculate how many frames are needed per beat, based on your frame rate.  For example, if you are animating at 24 frames per second, and the music track is found to be running at 144 beats per minute, then:

24 frames per second = 1440 frames per minute
1440 / 144 = 10
So, there will be 10 frames between each beat.

Of course, it gets a little more tricky if the numbers aren't as tidy as that, for instance if the BPM is 150 then there are 9.6 frames per beat.  I guess in this case you would round off the frame number for the sake of keyframing (eg 9.6 becomes 10, 19.2 becomes 19, etc.)  Alternatively you could perhaps script the motion which allows for mathematical accuracy, but you would need to be very keen to define a script for each of the figure's joints in a dance routine (not impossible, but this would need some serious planning).

nikolasmantilla:
Ok, so Im making the dance floor, but... im really bad with lights, and I want my dance floor to light up and with tiles.. any of you have Ideas on how to make the floor light up. so a squeare has some kind of glowIm thinking of a pattern. and for turning a light off, do you just sdet the color to black?

ENSONIQ5:
Anim8or doesn't do translucency very well, and at this stage backlighting isn't really possible.  Unfortunately Anim8or also doesn't support animate-able materials yet.  The simplest solution I can think of is to use the Visibility setting to alternate between "light on" or "light off".  The first thing you will need is a material for "light off", which will probably be a whitish, plasticy material, and a set of "light on" materials for each colour.  These will need a colour in the Emissive field so they appear to glow.  Now, you need to essentially build two dance floors in Scene mode, the first using tiles that are all the "light off" material, and the second with tiles using the "light on" materials in whatever pattern you want.  Both these tile sets need to occupy the same physical space in your scene, so for every "light on" tile there is a "light off" tile in the exact same position.  You can now use the Visibility controller to select which tile (on or off) is visible at any given time (ie "light off" tile becomes invisible in the same frame as the "light on" tile becomes visible, and vise versa).

In addition to this you should add a directional light source slightly above each tile, with a 180 degree spread, to illuminate the dancing bot from beneath.  The lights should be coloured the same as the tiles and need to be animated to follow the same sequence as the tiles.  I STRONGLY recommend using a script to control both the tile visibility function and the light intensity, otherwise you are up for an awful lot of keyframing.

ENSONIQ5:
I have made a very basic scene that demonstrates what I am talking about, available here: .  It uses only four tiles, for a proper dance floor you would want to use at least an 8 by 8 grid I'd reckon.  The animation is totally scripted (apart from the camera motion), below is the script that controls the visibility of the green illuminated tile

float $trigger;
float $rate;
float $offset;
$rate=2;
$offset=0;
$trigger = 1 + sin(((time+$offset)*$rate)*PI)*0.5;
if ($trigger<1.25)
$visibility = 0;
else
$visibility = 1;

$rate controls the speed of the sequence, the higher the number the faster the sequence rate.
$offset controls the phase of each sequenced element, ie which light is on when.  Acceptable values range from 0 to 1, 0 being no phase shift and 1 being a full phase shift.
$trigger is calculated to vary between 0.5 and 1.5 in a sinusoidal pattern and is measured by the 'if' statement to define the visibility state.
The same basic script is used for the lights, though it varies the light's colour rather than visibility.  I have attached the .an8 file for reference.

nikolasmantilla:
OMG! thanks alot man... im kind of dumb when it comes to scripting... but what you did is wow, just wow! thanks a bunch. Im looking at how it work it might take me a while the wayI want the patterns but it should do fo now

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version