PDA

View Full Version : Rolling a sphere?!?!


RiotManZ
03-02-2003, 07:30 PM
Ok some of you 'lord of the polys' will laugh about my thread, but i dare to ask.
Can someone tell me how to roll a ball over a surface instead of just slide it over the surface. I want do to a little animation where a ball rolls from the left to the right and my actual scene is faaaaar away from real movement.

thanks in advance!:beer:

RiotManZ
03-02-2003, 07:42 PM
Ok, i Just read this

http://www.cgtalk.com/showthread.php?s=&threadid=45624

and now I feel a little bad. Though iīm not running an illegal copy, the posts of some people in this thread are really hardliner stuff.
I will try to find the solution by myself, like the last two days before...
oh man , this thread really gets you going on...:annoyed:

Stroker
03-02-2003, 07:50 PM
Well, how about a nudge?

Look into:
Follow Path w/ Road-like(?),
Euler XYZ and
Track View (Curve Editor?).

fabman
03-03-2003, 09:45 AM
RiotManZ, I don't think you should be worried about asking that question, mmm, it's not that trivial and straight forward, it depends if you're planning to do it as programming stuff or animating by hand.
I don't know if I'm right, but I think you were asking about a kind of algorithm for rotation=distance or something like that, isn't it?.

RiotManZ
03-03-2003, 09:58 AM
@fabman: youīre right, I want a little ball to roll over a playgorund of a football table wich then and now kicked by the players and changes direction suddenly.

@stroker: that sounds like a good idea, only thing is I dont have a path to follow. thanks anyway
:beer:

neversong
03-03-2003, 02:01 PM
I agree with what fabman said.

I've seen some cool wire setup to a ball...
that its position value changes its rotation value.

Smay
03-03-2003, 02:21 PM
There is a little sample scene of a rolling ball which comes with Max4 (perhaps it can be found in Max5 too). Check for a scene named "Expressions-Roll.max" (.../FeaturesScenes/Animation/)
The ball rotates correctly when moving it over the surface.
The whole thing is based on expressions (as the file name says ;) ) using the formula
degToRad(360*(YMov.y/(2*pi*Radius))) at the spheres xform-modifier to let it roll in y-direction.
(360°*(distance / circumference)

{-=Jaxx=-}
03-03-2003, 02:57 PM
The only way i can think of is to hit autokey go to the frame you want the ball to finish its first movement at and then move the ball to whever you want and rotate the ball at the same frame and make sure you have some sort of texture on the ball so it will look like it is rolling also if you draw a sline and use a path constraint to make it follow along a desired path you could also try and use a surface attachment.

RiotManZ
03-03-2003, 03:40 PM
thanks for your replies folks!
Jaxx: good idea, but i think it is too much work and will not work that accurate if I have to draw a path.

Samy: great tip, didnīt know of a letīs call it a tut about that topic. if thereīs one in MAX5 my problem is solved, i think.

again thanks to all :beer: :thumbsup:

CGTalk Moderation
01-14-2006, 01:00 PM
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.