Skip to main content
gamedev.net
🔒 Locked

Please help (Morphing)

Started by shock33 0 replies 400+ views
Original Post
shock33
shock33
Help, I''m getting desperate.... I''m trying to develop a morphing program in OpenGL, I''ve already done one that simply interpolates available points to do simple transformations, this is where I come to a crashing halt... I''m trying to develop an algorithm (Kent, Parent and Carlson) whereby the two objects topologies are mapped onto the surface of a unit sphere... However I have no idea what a unit sphere is or how to implement it...? Ben... ps I''ve already tried on NeHe''s Opengl forum but I did not get any replies....
ga
ga
A unit sphere is a sphere with radius 1.
The equation x^2 + y^2 + z^2 = 1 describes a unit sphere with its center in the origin.

If you want a u/v - parameterized description:

x = cos(u)*cos(v)
y = sin(u)*cos(v)
z = sin(v)

u is in [0,2*PI)
and v is in [-PI,PI]

GA
Visit our homepage: www.rarebyte.de.stGA

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.