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

Thread: how to write character on sphere

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    24

    how to write character on sphere

    hello sir
    i m trying to write character (eg "C") on sphere using glutBitmapCharacter ... its writing perfectly...

    i want to write character so that ..if we rotate the sphere (using keyboard) the character should appear on top ie it should visible to viewer inspite of it's rotation

    plz give me solution

    thamks

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    24

    Re: how to write character on sphere

    i m not getting good way ..is there any one to help me thanks

  3. #3
    Junior Member Regular Contributor
    Join Date
    Mar 2010
    Posts
    209

    Re: how to write character on sphere

    How about texture mapping the sphere with characters? If that is what you are looking for. Elaborate more as to what exactly you are looking for.

  4. #4
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    24

    Re: how to write character on sphere

    sir i don't want to use texture mapping....i just want to write a simple character on sphere.

  5. #5
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Los Angeles
    Posts
    386

    Re: how to write character on sphere

    Draw the sphere first, then the characters. If the characters are not showing on the backside of the sphere, it's because depth testing is being done. All you have to do is disable it. It's one line of code. In the images below, F17 and F18 are on the backside of the earth. The only difference in the code that generated these images is whether or not depth testing is enabled.

    Am I doing your homework for you?

  6. #6
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    24

    Re: how to write character on sphere

    thanks for ur reply sir..

    but i need to write character such that it must be on it's center only..inspite of rotation of sphere

    thanks

  7. #7
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Los Angeles
    Posts
    386

    Re: how to write character on sphere

    Quote Originally Posted by somnath
    i need to write character such that it must be on it's center only..inspite of rotation of sphere
    I have no idea what you mean by this. Could you include a diagram of what you want?
    Am I doing your homework for you?

Posting Permissions

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