#### Archived

This topic is now archived and is closed to further replies.

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

## Recommended Posts

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....

##### Share on other sites
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

1. 1
2. 2
Rutin
20
3. 3
khawk
17
4. 4
A4L
14
5. 5

• 12
• 16
• 26
• 10
• 44
• ### Forum Statistics

• Total Topics
633759
• Total Posts
3013720
×