CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 06-05-2008, 05:33 AM   #1
Polimeno
renatopolimeno
 
Polimeno's Avatar
portfolio
Renato Polimeno
Technical Artist
Freelancer
Sao Paulo, Brazil
 
Join Date: Sep 2004
Posts: 622
Send a message via MSN to Polimeno
Fake spring

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

Code:
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-11-2008 at 01:35 AM.
 
Old 06-05-2008, 05:52 PM   #2
Polimeno
renatopolimeno
 
Polimeno's Avatar
portfolio
Renato Polimeno
Technical Artist
Freelancer
Sao Paulo, Brazil
 
Join Date: Sep 2004
Posts: 622
Send a message via MSN to Polimeno
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):
Code:
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) :
Code:
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-08-2008 at 12:59 AM.
 
Old 06-06-2008, 04:39 AM   #3
Polimeno
renatopolimeno
 
Polimeno's Avatar
portfolio
Renato Polimeno
Technical Artist
Freelancer
Sao Paulo, Brazil
 
Join Date: Sep 2004
Posts: 622
Send a message via MSN to Polimeno
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-11-2008 at 01:35 AM.
 
Old 06-08-2008, 01:19 AM   #4
Polimeno
renatopolimeno
 
Polimeno's Avatar
portfolio
Renato Polimeno
Technical Artist
Freelancer
Sao Paulo, Brazil
 
Join Date: Sep 2004
Posts: 622
Send a message via MSN to Polimeno
...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-11-2008 at 01:34 AM.
 
Old 06-11-2008, 01:31 AM   #5
Polimeno
renatopolimeno
 
Polimeno's Avatar
portfolio
Renato Polimeno
Technical Artist
Freelancer
Sao Paulo, Brazil
 
Join Date: Sep 2004
Posts: 622
Send a message via MSN to Polimeno
....

http://smg.photobucket.com/albums/v...ing_system_.flv

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

Code:
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-11-2008 at 01:53 AM.
 
Old 06-12-2008, 12:30 AM   #6
eek
Fixer
 
eek's Avatar
portfolio
Charles Looker
Snr Technical Artist
Electronic Arts
Vancouver, Canada
 
Join Date: Feb 2002
Posts: 4,221
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.


 
Old 06-12-2008, 12:30 AM   #7
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:18 PM.


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