I’m trying to get a sphere to orbit a bigger one, and it’s not working. I’m using OpenGL in Delphi 7, and this is the code I’m using. If anyone knows what the problem is, could they let me know? Thanks.
I’m trying to get a sphere to orbit a bigger one, and it’s not working. I’m using OpenGL in Delphi 7, and this is the code I’m using. If anyone knows what the problem is, could they let me know? Thanks.
Your glRotate function should pass a variable not 0.5 such that the variable is incremented by 0.5 or whatever value you want. Otherwise, it will be rotated at 0.5 degrees about the y axis but not consecutively and appear stationary.
W.poons is right but he didn’t write the actual code. it looks like:
while(1)
{
…
rotate(angle,…);
angle+=whatever you want increase each loop;
}
Originally posted by W. Poons:
[b]Hi everyone.
I’m trying to get a sphere to orbit a bigger one, and it’s not working. I’m using OpenGL in Delphi 7, and this is the code I’m using. If anyone knows what the problem is, could they let me know? Thanks.