Page 1 of 1

Drawinfo Multi-Cell Animation (running deer)

Posted: Sun Oct 21, 2007 9:00 pm
by optic delusion
drawinfo still has some problems, but this works pretty well, as long as your viewing angle is correct.

This was remarkably easy to do, once I figured out how the matrefs fit inside drawinfo.
I started with a simple animated gif (with a transparent background). I extracted each animation frame into a separate file, and converted to png format.
Next I tested the bzw with two frames of animation.. seemed to work... then I simply added the other 16 frames. Nothing to it.

You can disable the inside face of the cube by commenting the first polygon in each matref's display list (dlist).
if you look at my dyncol/material/matref names, I used qwerty.

Here is the original gif file

And the bzw.
go to the corner with the lighter green pyramids. Stay right in between the two pyrs and look towards the corner. It takes 2 minutes for the deer to run in its circle.

EDIT: sorry about the first 4 people to download the file, i have corrected the image links in the new upload.

Posted: Sun Oct 21, 2007 10:18 pm
by temporal distraction
That is evolutionary and will completely change the game.

Posted: Sun Oct 21, 2007 11:57 pm
by Tanner
Very cool.


Posted: Mon Oct 22, 2007 12:22 am
by optic delusion
Another word of warning... I'm still just guessing, and so is tedius.
Don't take anything in these recent drawinfo posts as gospel, in two weeks or a month, we could be doing this in a completely different way.
Right now we're already debating the signifigence of sphere and extents. We still don't have the REAL INFO.[/i]

Posted: Mon Oct 22, 2007 12:31 am
by Legolas_
This works really well, but sometimes it is outside the playing field.

Posted: Mon Oct 22, 2007 12:47 am
by optic delusion
The circle is goes out beyond the mountains...

It moves in a big circle at 3 radians/second. that means it takes 360/3 seconds to complete the circle. I was trying to make it so the foot-falls of the horse seem to be correct for the distance it travels. This meant a gigantic circle. It's still not perfect, since each frame of animation lasts .05 seconds, and even during that short amount of time, the feet of the horse move in the big circle.
When the horse's foot hits the ground, it should stay there a few frames, but the foot slides with the rest of the animation.

Posted: Mon Oct 22, 2007 1:46 am
by Tedius
It looks great to me. With del's permission, I added 2 deer to "The Most Dangerous Game" They are kind of hard to spot if you don't know where to look. One hint: Stand just on the south side of the river in the far east, facing north and wait.

For better or worse, I took out the sphere and extents and it seems to work well. The deer is awesome! I can't wait to see what else can be done with drawInfo.