help with Fake spring !!

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  06 June 2008
Fake spring

iīll try to achive a quick "Fake Spring", starting here.


    Ppos = $Pt_lookAt_end.pos.controller.Zero_Pos_XYZ.control  ler
     at time (F - 1)
        (
       Ppos.value
       )
     Ppos
     
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 06 June 2008 at 01:35 AM.
 
  06 June 2008
first test....

iīm looking inside on Transform Delay Script : http://forums.cgsociety.org/showthr...=delay+position




first test:


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....
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 06 June 2008 at 12:59 AM.
 
  06 June 2008
attempt 1...

http://smg.photobucket.com/albums/v205/RNThead_3D/VIDEOS/?action=view&current=fake_spring_dummy_anim.flv

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

...keep going....
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 06 June 2008 at 01:35 AM.
 
  06 June 2008
...fake with master parent ??

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....
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 06 June 2008 at 01:34 AM.
 
  06 June 2008
....

http://smg.photobucket.com/albums/v...ing_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?
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 06 June 2008 at 01:53 AM.
 
  06 June 2008
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
__________________
Disclaimer: My opinions are not those of my employer.


 
  06 June 2008
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright Đ2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 08:33 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.