Sign in to follow this  

ring conforms to the circumference of a sphere

This topic is 3293 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Scenario: 1. a sphere of radius: 100 2. a circle shape of radius: 100 3.I align the circle to the sphere I want the circle to start with radius 100 and when i take it(or animate) down to the bottom of the sphere(pole) it should zero out in radius. Ring conforms to the circumference on each step of it's way down. What would the math be in this situation. i could hack this by: 1.At each step along it's down path(circle Pivot) shoot a ray to the sphere and use the the magnitude to drive the radius. but that wont further my mathematical understanding of the problem. Thanks for any help. b

Share this post


Link to post
Share on other sites
Hum... does your circle always move over the sphere along one of the axes (in other words, does it always move in only the z-direction, or the x-direction, or the y-direction)?

If so, then I think that I'm correct in suggesting that you look at the equation of your sphere, and take into account the distance of the circle along the relevant axis at that point.

What is this for, if I may ask?

Share this post


Link to post
Share on other sites



Hey thanks.
Articulate answer here...
http://forums.cgsociety.org/showthread.php?f=98&t=705408

r = the radius of the sphere
d = the distance away from the center of the sphere
x = your new radius

rearranging the distance formula we get.
x^2 = r^2 - d^2
x = sqrt (r^2 - d^2)

"What is this for, if I may ask?"
not for school assignment i assure you ;)
Thanks.


b




Share this post


Link to post
Share on other sites



Quote:
Original post by Thaumaturge
Heh, that was indeed the reason that I gave so vague an answer - I wanted to be confident that it wasn't homework before I gave too much. ^^;



Fair game.I understood that.
I've been around for a while now(under boomji).


b

Share this post


Link to post
Share on other sites

This topic is 3293 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this