PDA

View Full Version : Sky plane calculating

outRider
03-28-2003, 07:24 AM
I'm trying to calculate y values for a sky plane, but I'm having some trouble.

The way I see it, if a sky plane is n*n vertices, the vertices that go from one corner to the other should all follow a sin wave. I get a nice half sphere that way if the corners start out at 0 and the center is PI/2. But, obviously the main diagonal vertices aren't the only ones to consider. I've tried something like the following

0 ----> PI/4 -----> 0
|
|
PI/4 -> PI/2 --> PI/4
|
|
0 ----> PI/4 -----> 0

Basically, horizontal movement goes from 0 to PI/4, and vertical movement does the same, but they are summed. What I get looks more like a missle warhead however :P I realize its because 0->PI/4->0 isn't a smooth curve, but when I imagine a skyplane I imagine less of a curvature along the edges of the plane, where as the diagonal axes have a perfectly circular curvature.

Might someone be able to assist?

Miguel_dup1
03-28-2003, 10:49 AM