View Full Version : Animations in TopDown
Petr Schreiber
18-03-2007, 12:19
Hi,
animations in TopDown3D are quite important topic.
Using AVI we will have terrific visuals but also double work with characters, using TBGL internal functions on other side smaller size but lot of extra coding :)
To give you idea of TBGL animating capabilities please see my brief tutorial (http://psch.thinbasic.com/forum/index.php?topic=16.msg23#msg23).
You can download script and see how it runs as well as krytons cinema version :)
Note - Best viewed in room without windows :D / at night, else it is little bit too darky.
Bye,
Petr
P.S. It is older sample but I did not waned to let it lie on harddisk, especially because of krytons remix :)
ErosOlmi
18-03-2007, 12:24
Terrific example Petr.
I suggest all to visit Petr forum and download the example.
Michael Hartlef
18-03-2007, 13:34
Very nice example. For mechanical models very good.
Michael Hartlef
18-03-2007, 13:46
For meshes, where the limbs are initialy connected, you will see gabs between the faces depending on the angle of the corresponding limbs. I think that it has something to do with how you store the vertex position for each face seperate. Looking at the setup of a model file, I think you do. ;)
Like I mentioned before that this is redundant data storage, it also gives you a big problem for animation of meshes with a continues skin. Maybe I' wrong, I don't know the insides of TBGL that well (actually nothing of it) :)
Petr Schreiber
18-03-2007, 15:18
Hi Mike,
Using this layer definition it is simply per block, so gaps appear, I know it.
But if you define the bones using boxes ( one vertice can be in multiple bones ) no gaps appear.
To see it please see attached script, the guy is hole less :)
Only problem is how to get which vertices are controlled by which bone, if it would be possible to rig character in for example Blender ( as you suggested on messenger ) and then pass it ... we would be done :)
I would just add TBGL_DefBoneAddVertex or something like that.
Bye,
Petr
P.S. You are right about redundancy in some cases :-[, but on other side it gives more freedom on vertex color for example
P.P.S. I know my animation makes people wonder if the guy does have some health problems :)
ErosOlmi
18-03-2007, 15:37
Evere now and than you come out with such a present.
I cannot imagine how many scripts you have already created :D
Michael Hartlef
18-03-2007, 16:33
Great :o I will have to study the code so I can see how bones work in this. Looks great!
Petr Schreiber
18-03-2007, 17:55
thanks :)
Trick is in overlaping the bounding boxes.
Bye,
Petr
Michael Hartlef
18-03-2007, 20:03
thanks :)
Trick is in overlaping the bounding boxes.
Bye,
Petr
Of course they have to :)
AMAZING!! And such nice demos too besides the abilities shown!!