PDA

View Full Version : help with Fake spring !!


Polimeno
06-05-2008, 06:33 AM
iīll try to achive a quick "Fake Spring", starting here.


Ppos = $Pt_lookAt_end.pos.controller.Zero_Pos_XYZ.controller
at time (F - 1)
(
Ppos.value
)
Ppos

Polimeno
06-05-2008, 06:52 PM
iīm looking inside on Transform Delay Script : http://forums.cgsociety.org/showthread.php?f=98&t=344485&highlight=delay+position

http://img.photobucket.com/albums/v205/RNThead_3D/VIDEOS/TDelay_standard_.gif


first test:
http://img.photobucket.com/albums/v205/RNThead_3D/VIDEOS/Tdelay_L_Master_anim_pScript_R.gif

Yellow box (script from Transform Delay Script):

at time(F-1) Sphereoffset =$Box01.pos - [0,0,0]
mypos=[-20,0,0] + Sphereoffset
at time(F-1) mymy = $Box01.transform
mymy.pos = mypos
mymy


Blue box (position script) :

at time (currentTime-1)
(
dragPos = $Box01.pos.controller.Zero_Pos_XYZ.value
)
dragPos


Red Box as master, just animate.

work well in objects independents, wich have no Hierarquy......when inside a chain, totally falls apart and guess it happen double tramsforms.....Oo

perhaps the MASTER must be outside of hierarquy....

Polimeno
06-06-2008, 05:39 AM
http://smg.photobucket.com/albums/v205/RNThead_3D/VIDEOS/?action=view&current=fake_spring_dummy_anim.flv (http://smg.photobucket.com/albums/v205/RNThead_3D/VIDEOS/?action=view&current=fake_1_dummy_anim.flv)

NOT REALTIME, but update when changing time slider...
animate the "Dummy" to get the effect....

...keep going....

Polimeno
06-08-2008, 02:19 AM
i couldnīt think how to get the "fake" when you drives only the "MASTER dummy" (parent of entire chain)........

guess dependsOn can do this, but iīm tring to avoid it....


help, please....

Polimeno
06-11-2008, 02:31 AM
http://smg.photobucket.com/albums/v205/RNThead_3D/VIDEOS/?action=view&current=fake_spring_system_.flv

please,
anyone can help me how to write variables of OldPos and NewPos ???


OldPos = [0,0,0]

NewPos =
(
at time (currentTime - 5)
(
AnimObj = $.pos.value
)
AnimObj
)

atTime (NewPos)
(
AnimObj - OldPos
)



i just couldnīt think how to force objects to back to standard pose after some frames of animated point stops......
oO?

eek
06-12-2008, 01:30 AM
Here is an example of constrain transforms, it's something i dont really see people doing here - but its great for facial animation etc.

first store the transform space of the target 'point03' relative to its constraining objects,

tm1 = $point03.transform * inverse $Point02.transform
tm2 = $point03.transform * inverse $Point01.transform

Once these are store, keep them as a constant. For this test just comment them out as they've become a global. But for real use a CA to store these.

Then make a viable for your blend,

t = 0.5

Then we make two new variables holding the transform space multiplications.

nm1 = tm1 * $Point02.transform
nm2 = tm2 * $Point01.transform

We then grab the blend of positions of these spaces,

pm = ((1 - t) * nm1.pos + t * nm2.pos)

And then the rotation,

rm = slerp nm1.rotation nm2.rotation t

We build a final matrix using the rotation,

fm = rm as matrix3

and amend the last row using the position 'pm',

fm.row4 = pm

This is final transform for our point,

$point03.transform = fm

CGTalk Moderation
06-12-2008, 01:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.