Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: morph targets for parametric shapes  (Read 11413 times)

JAYAKUMAR

  • Newbie
  • *
  • Posts: 5
    • View Profile
morph targets for parametric shapes
« on: April 14, 2009, 05:26:07 am »

i have this doubt on how to make a morph target for a parametric shape.
let me be specific , i wanted to animate a spring compression and expansion sequence but it becomes tedious to move all the points of a mesh, so i wanted to know if it is possible to make a morph target for a parametric spring or atleast scale it non uniformly in the sequence page
 ???
Logged

floyd86

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1056
    • View Profile
    • http://youtube.com/profile?user=floyd386
Re: morph targets for parametric shapes
« Reply #1 on: April 14, 2009, 06:04:03 am »

What you're trying to do, can easily be done using Morph targets.
In object mode create a spring. Make a new morph target (build>morph taget>new).
Then non-uniform scale your spring and your done. In scene mode the object will have the option to turn the morph target on and off.

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: morph targets for parametric shapes
« Reply #2 on: April 14, 2009, 05:27:34 pm »

Here you can download MorphEnvy, a program that creates morph targets using 2 3d objects.  The objects must both have the same exact structure, number of points/edges/faces etc.  This allows you to create 2 separate springs (with all the same settings except perhaps stretch), then you can create a morph target using the tool, and the volume of the object will be kept and you'll have a smooth morph target.
Logged

JAYAKUMAR

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: morph targets for parametric shapes
« Reply #3 on: April 15, 2009, 08:36:25 am »

floyd  i tried but it doesnt work on parametric shapes as well as built in shapes like cube or cylinder , it works if i convert the shapes to mesh.
thanks hiho but i want to do it in anim8or
Logged

mcheccyb

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Re: morph targets for parametric shapes
« Reply #4 on: April 15, 2009, 09:17:55 am »

morph envy was built for anim8or.

so technically it's still using anim8or. (kinda)
Logged

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: morph targets for parametric shapes
« Reply #5 on: April 15, 2009, 12:30:17 pm »

mcheccyb is correct, it's simply a tool built to help anim8or.  You are still staying within the realm of Anim8or.  If you want to use morph targets, then yes, you will have to convert it to a mesh.
Logged

JAYAKUMAR

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: morph targets for parametric shapes
« Reply #6 on: April 19, 2009, 12:09:23 am »

thankx everyone
Logged

JAYAKUMAR

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: morph targets for parametric shapes
« Reply #7 on: April 19, 2009, 12:11:55 am »

this is for mr.steve , it will be really nice if morph targets can be created directly for parametric shapes, just a food for ur thought
Logged

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1482
    • View Profile
Re: morph targets for parametric shapes
« Reply #8 on: April 19, 2009, 01:50:35 am »

That's not exactly possible (by that I mean it's not feasible). Parametric shapes are made through mathematical formulas and don't actually contain vertex information that can be utilized by morph targets. Why do you require it for parametric shapes anyway? Just convert to mesh.
Logged

ENSONIQ5

  • Hero Member
  • *****
  • Posts: 1012
    • View Profile
    • Mission Backup Earth
Re: morph targets for parametric shapes
« Reply #9 on: April 19, 2009, 03:21:51 am »

Scaling a spring mesh to create a morph target that could be used to make the spring appear to compress is not strictly accurate, in terms of the physics of a real spring.  Scaling will not only change the length of the spring, it will distort the cross section of the coiled steel as well.  If the spring was made by rotating a circular N-gon around an axis, then stretching the mesh will have the unwanted effect of making the spring appear to have been made by rotating an ellipse.

A real coil spring, when compressed or expanded, puts a torsional stress on the coiled rod, effectively twisting it across it's full length.  In some cars the suspension is based around a torsion bar, which is effectively an uncoiled spring.  To be strictly accurate, the way to create a spring compression morph in animator would be to rotate each N-gon cross section very, very slightly on an axis perpendicular to the spring long axis and the N-gon cross-section plane.  Although this would be VERY tedious, it would provide an accurate model of the way the spring expands in overall diameter when compressed, and shrinks when stretched.  Perhaps a compromise would be to shift each cross section N-gon a tiny bit in the direction of the spring's long axis, creating an overall change in length but not changing the shape of the actual coil.
Logged

karate5662

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • my mini city
Re: morph targets for parametric shapes
« Reply #10 on: April 23, 2009, 03:20:18 pm »

it would be nice to tween the attirutes of a parametric shape, like the length of a spring.
Logged