From: <nik...@wa...> - 2001-02-19 11:27:53
|
hum, =E7a existait deja, =E7a s'appelait 'duration' ...... il te = reste plus qu'=E0 virer un des 2 champs=20 non justement. Duration c'est pour une Animation, et l=E0 c'est pour = un Track. Il y a plusieurs tracks dans une anim, et ils ne sont pas tous = de la m=EAme dur=E9e. Donc j'ai mis Animation.Duration =3D = max(Animtions.Tracks). Apr=E8s si tu n'as plus besoin de = Animation.Duration, on peut le virer... bein, c chelou, tu penses que c possible que le dernier track d'une = animation soit po tous les meme ... enfin, c comme tu veux .... * Behavior : indique ce qu'il doit se passer lorsqu'on arrive = =E0 la fin du track. Soit l'animation est stopp=E9e = (OR_ANIMATION_Behavior_Stop), soit elle recommence depuis le d=E9but = (Loop), soit elle repart =E0 l'envers vers le d=E9but (PingPong) soit = elle repart du d=E9but mais en partant de l=E0 o=F9 elle s'est = arr=EAt=E9e (RelativeLoop). bonne id Pour ce dernier cas, je sais pas si =E7a sera facilement g=E9rable = avec la fa=E7on qu'on a choisie, ni m=EAme si ca sera utile. On pourrait = aussi rajouter un flag indiquant si l'anim doit =EAtre mise en pause =E0 = chaque extr=E9mit=E9 (et dans ce cas elle devrait =EAtre relanc=E9e = "manuellement"). On pourrait aussi rajouter un behavior qui "d=E9charge" = l'animation du noeud quand elle est finie pour des animations =E0 usage = unique... Qu'en pense Gab ? Qu'en pensent les autres ? ping pong, c po difficile a mettre en oeuvre, je crois que = j'arrriverais a changere 'time+=3D' en 'time-=3D' bonne id de mettre un flag 'autostop' ok je vais le mettre alors. C'=E9tait surtout pour RelativeLoop que je me demandais si ca serait = facilement r=E9alisable. =E7a veut dire quoi, relative loop ? Bien s=FBr tout est commit=E9 (y compris un .act d'exemple dans le = module .act et le .max d'o=F9 il est tir=E9) J'ai pas test=E9 le son, je le fais juste apr=E8s depuis les modifs faites par Back, =E7a a l'air de marcher nikel ... juste : a qd le supoort complet pour les mp3 ? chez moi aussi ca marche super nickel. C'est g=E9nial, bo boulot = Backchiche Sinon je viens d'essayer l'import d'anims avec le nouveau plug-in et = ca marche tr=E8s bien, j'ai juste vu dans orion3d 2 petits bugs au = niveau de l'anim : d'abord le constructeur de OR_KeyFrame qui divise = Time par 10000 (c'=E9tait parce que je n'exportais pas le temps entre 0 = et 1 au d=E9but je suppose), et ensuite l'interpolation lin=E9aire qui = est faite =E0 l'envers (c'est Val =3D Key.Data*(1-coef) + = Key.Son.Data*(coef) et non Val =3D Key.Data*(coef) + = Key.Son.Data*(1-coef)). J'ai pas commit=E9 les corrections vu que tu vas = changer pas mal de trucs, ct juste pour te rappeler au cas o=F9. oui, je m'en suis apper=E7u, et j'ai commit=E9 des modifs ce matin a = 7h30, juste, il fo que je check les bezier, mais les lineaires marchent = bien. gab A+ Antoche |