Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: wisher

Search: Search took 0.00 seconds.

  1. Replies
    19
    Views
    13,035

    Re: Texture on a sphere (Cross platform version)

    I tested it with your image and it works. Probably the problems is due to the fact that I used preview on Mac OS X to convert the image. I was not knowing the convert command on Linux and I did the...
  2. Replies
    19
    Views
    13,035

    Re: Texture on a sphere (Cross platform version)

    This is what happens, the texture is flipped http://yfrog.com/0wscreenshot20091121at705j
  3. Replies
    19
    Views
    13,035

    Re: Texture on a sphere (Cross platform version)

    Your Linux version works for me, except that the texture on the sphere is mirrored, but now does not has the issue I was experiencing before. The mapping stays the same.
  4. Replies
    19
    Views
    13,035

    Re: Texture on a sphere (Cross platform version)

    This is what happens, I took the screenshot at the point where the texture start to swap.
    http://img34.imageshack.us/content.php?p...amp;via=mupload
    I the texture I am using is this one saved as...
  5. Replies
    19
    Views
    13,035

    Re: Texture on a sphere

    Thanks again for your reply, I really appreciate it.

    It now maps the texture in the correct way, but if I move there is still an issue. The texture mapping sometimes goes wrong and what I can see...
  6. Replies
    19
    Views
    13,035

    Re: Texture on a sphere

    What is really weird is that when I load just the square is drawn correctly, while if I load bot the square and the sphere also the texture on the square is messed up...
  7. Replies
    19
    Views
    13,035

    Re: Texture on a sphere

    Do you think this may be a problem? If I load the texture on a square it works, so the loader should be ok. Isn't it?
  8. Replies
    19
    Views
    13,035

    Re: Texture on a sphere

    I tried to rotate the texture, but it doesn't help
  9. Replies
    19
    Views
    13,035

    Re: Texture on a sphere

    Thanks for your answer. I never use the matrix mode GL_TEXTURE explicitly, is there any GL command that makes that matrix change?

    The code for the load bitmap was found on internet and it is this:...
  10. Replies
    19
    Views
    13,035

    Re: Texture on a sphere

    If I try to draw only the texture on a square it works, but if I try to draw the texture on the square after I call the gluSphere also the image on the square is screwed :-(
  11. Replies
    19
    Views
    13,035

    Texture on a sphere

    Hi, I have a problem applying a texture to a sphere.
    In the setup phase I do this:

    earth = gluNewQuadric();

    gluQuadricTexture( earth, GL_TRUE);

    earthTexture =...
Results 1 to 11 of 11