Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Spinning top's speed

  1. #1
    Newbie Newbie
    Join Date
    Aug 2017
    Posts
    1

    Spinning top's speed

    Hello

    I'm new to OpenGL and I'm trying to create a small spinning top. I want it to eventually fall by changing its rotation angle, but right now I'm focused on its rotation speed.
    I'm having a hard time figuring out how to change the angle so that it'll look like it starts rotating in high speed and the speed slowly dwindles.

    My Timer method in C#: Interval is set for 10msecs.
    Code :
    private void timerRUN_Tick(object sender, EventArgs e)
            {
                cGL.angle = //to implement a good decreasing function
                cGL.Draw();
            }

    I'd appreciate any help

    Thank you.

  2. #2
    Newbie Newbie ZoraPortis's Avatar
    Join Date
    Sep 2017
    Posts
    1
    Quote Originally Posted by JadenB View Post
    Hello

    I'm new to OpenGL and I'm trying to create a small spinning top. I want it to eventually fall by changing its rotation angle, but right now I'm focused on its rotation speed.
    I'm having a hard time figuring out how to change the angle so that it'll look like it starts rotating in high speed and the speed slowly dwindles.

    My Timer method in C#: Interval is set for 10msecs.
    Code :
    private void timerRUN_Tick(object sender, EventArgs e)
            {
                cGL.angle = //to implement a good decreasing function
                cGL.Draw();
            }

    I'd appreciate any help

    Thank you.
    I've stumbled upon the same problem recently and I couldn't make it out
    I hope someone else will help us here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •