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 3 of 3

Thread: Draw a earth and rotate it?

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Kochi, Japan
    Posts
    29

    Draw a earth and rotate it?

    Hi,I am a beginner.I have only used opengl in visual c++ 6.0 for a week.I have draw a sphere.But I don't know how to paint it to make it looking like a real earth and how to
    rotate it then. Longing for your help with great appreciation!!

  2. #2
    Intern Newbie
    Join Date
    Jul 2002
    Posts
    45

    Re: Draw a earth and rotate it?

    Originally posted by jiangerlai:
    Hi,I am a beginner.I have only used opengl in visual c++ 6.0 for a week.I have draw a sphere.But I don't know how to paint it to make it looking like a real earth and how to
    rotate it then. Longing for your help with great appreciation!!
    For rotation, you should be using glRotatef( Angle, x, y, z ), you can look at the following for an example of it:
    http://nehe.gamedev.net/data/lessons....asp?lesson=04

    Um, try using a texture map for the painting of the earth. Check out the following for an example:
    http://nehe.gamedev.net/data/lessons....asp?lesson=06

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Kochi, Japan
    Posts
    29

    Re: Draw a earth and rotate it?

    Thanks a lot!
    I am a Chinese student. I am very glad that you answered my quention.

Posting Permissions

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