Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  Maxforums Tournament 7 - Round 3
(11 replies)
  Maxforums Tournament 7 - Round 2
(37 replies)
  Maxforums Tournament 7 - Round 1
(84 replies)
  The Life of a Sea Turtle - Tutorial by mrgrotey
(85 replies)
  So what are you working on? =)
(1624 replies)
  Want free webspace?
(16 replies)
  spam alert!!!
(2663 replies)
  Maxforums member photo gallery index
(93 replies)
  Maxforums Member Tutorials
(82 replies)
  three cheers to maxforums...
(178 replies)
  The Grotorial Index Page
(57 replies)
  101 Things you didnt know in Max...
(159 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Free textures thread
(72 replies)
  Maxforums.org Members Gallery
(474 replies)
  SON OF POST YOURSELF
(582 replies)
  Dub's Maxscript Tutorial Index
(115 replies)
  The Best Art of Maxforums [56k warning]
(101 replies)


Dna Animation
show user profile  beambeet
hi,

Friends i am little confused to create animation of DNA structure. I want to create animation mentioned below in link at youtube "http://in.youtube.com/watch?v=rpwjZX_z5rg&feature=related". I want only twist that rope exactly display in movie. i have also used twist modifier but not much success. So any one have idea how to create it please share.

Thanks

bimbit.
read 1053 times
7/17/2008 6:23:49 PM (last edit: 7/17/2008 6:23:49 PM)
show user profile  giloosh
What went wrong when you used the twist modifier. I think the twist modifier would be your best tool in this situation. It looks like you will have two long and skinny boxes both with the twist modifier on. Offset the 2 boxes a bit so that the twists overlap each other. Then animate the twist amount back down to 0. I believe if you mess around with this correctly you could get the same effect. ----------------------




GILOOSH.COM
read 1042 times
7/17/2008 7:06:42 PM (last edit: 7/17/2008 7:06:42 PM)
show user profile  mrgrotey
Right I've decided to do one of my Old Skool tuts as I dont have jing at work.

What you need to decide on is what actually is happening in the video. The are two main things

1. The strands are twisting
2. The two sides of the dna strand are separating after they straighten out.

This said, no single modifier will do this for you so you have to do it in two stages. You will be using three modifiers here, twist, volume select and morpher.

Here's what I ended up with after doing the below steps:




Here's the Max v7 file if you want to take a better look: http://www.divshare.com/i/4970648-4d9
here are the steps I used


1. Create your dna strand as one object and name it 'dna_closed', keeping the two halves of the colour...'legs' as separate elements. Also move the pivot point to one end but in the center of its cross section (half way up, half way accross)



2. Next, clone your strand and name it 'dna_open'. This will your opened out dna strand and act as a morph target.




3. Go into element mode in 'dna_open' and move the two halves away from each other at equal amounts. NOTE: dont just move one side, you must move both side away from the center equally




4. Go back to 'dna_closed' and add a twist modifier then increase the 'Angle' value untill you have your desired twisted...ness. I chose 540°




5. Now, the twist modifier has no 'end' by default, it will twist the object off into infinity unless you tick the 'Limit Effect' box. After ticking this box the dna strand will flatten out again, so enter a value into the 'Upper limit' that is equal or greater than the overall length of the strand. My strand is 30cm long so I just dragged the spinner past the 30cm point.

Now if you select the twist modifier to activate the gizmo, you can move the gizmo up and down to see the twisting/untwisting effect in realtime. Make sure you undo any changes to the gizmo's position. What you have done here is ttell the modifier to only affect the mesh within the limits set, outside of those limits it will have no effect.

You now need to animate the twist modifier moving from fully over the mesh at frame 0, to competly away from the mesh at frame 100 (or what ever time scale you prefer) This will only work if you animate the gizmo moving down the length of the mesh away from the gizmo. (Opposite direction to the way the image shows, sorry about that ;)




6. So now you should be able to slide the time slider and the twisted dna strand should unravel over the length of your animation, the only thing is it doesnt open out.

Next add a 'Volume Select' modifier. Choose 'Vertex' at the top of the modifier oiptions, select the gizmo as you did with the twist modifier and move it down the mesh slightly, then turn on soft selection and adjust the 'falloff' value until you get a slight fade like in my image (I used a falloff value of 6 but its up to you and can be adjusted afterrwards if its not right)




7. Next you are going to animate the gizmo of the 'Volume Select' modifier so that it follows the twist modifier's gizmo. at frame zero, move the gizmo far enough away from the mesh so that it isnt affecting the verts. The gizmo needs to on be the side of the pivot point of the model not the other end. Then animate it over the length of the animation to move over the mesh. At frame 100 the gizmo should be selecting all the verts. If you now drag the time slider the dna strand should twist and then get selected by the voluyme select modifier once it starts to straighten out.





8. Now add a 'Morpher' modifier and click the 'Load Multiple Targets' button, then select 'dna_open' and click 'Load'




9. The first button on the modifier will now be called 'dna_open' and you should turn the value up to 100 so the target is fully affecting the mesh.




This morpher modifier will only affect the verts that are selected in the volume select modifier below it.

So now hopefully your animation will be working properly, you can go back and adjust the volume select modifier's position and soft selection value to suit if the change isnt smooth enough or out of sync, but this is how I did it.

Hope it helps.

Let us know how you got on.


read 1000 times
7/18/2008 3:20:08 AM (last edit: 7/18/2008 10:52:29 AM)
show user profile  TheVision71
mrgrotey- you continuously amaze me.....very very nice explanation.
read 990 times
7/18/2008 4:38:59 AM (last edit: 7/18/2008 4:38:59 AM)
show user profile  maxwin
nice one grotey, interesting lil tut that




read 976 times
7/18/2008 6:14:13 AM (last edit: 7/18/2008 6:14:13 AM)
show user profile  Dave
Grotey for king.

GaryDave

read 924 times
7/19/2008 1:45:05 AM (last edit: 7/19/2008 1:45:05 AM)
#Maxforums IRC
Open chat window


Support Maxforums.org