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: Snow_56767

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,525

    I figured it out. It turns out that my Png loader...

    I figured it out. It turns out that my Png loader was throwing away the Png data. Which is what was causing the problem I was having. I have fixed it now and it run wonderfully!
  2. Replies
    1
    Views
    1,525

    Can't seem to generate textures!

    Hi guys,
    I have a project I'm working where I need to paint a sprite and I can't seem to get it to paint textures. I have don'e extensive error checking through my texture loading routine and...
  3. Replies
    2
    Views
    1,751

    You need to link to the OpenGL libraries. most...

    You need to link to the OpenGL libraries.
    most likely they are:
    /usr/lib/i386-linux-gnu/libGLU.so
    /usr/lib/libGL.so
  4. Re: Multiple Textures in One scene, One per mesh?

    Ok. I did happen to figure it out. Thank you for the help!!!
  5. Replies
    1
    Views
    1,153

    Re: glPushMatrix question

    Try this:

    1)Draw Big Cube at fixed position
    2)glPushMatrix();
    3)Translate the little cube
    4)draw the little cube
    5)glPopMatrix();
  6. Replies
    3
    Views
    880

    Re: multiple textures

    Fatch1990 is right, You should use GL_TEXTURE_2D for each object unless you are using 3D textures. A good way to texture each object is to generate your textures using:

    glGenTextures(GLsizei n,...
  7. Replies
    1
    Views
    970

    Re: Rotation problems

    You should try using glRotatef (float), glRotatei (int), or glRotated (double).

    I would suspect that it would rotate according to your diagram.

    | -> / -> \ -> | then it loops.
  8. Replies
    1
    Views
    1,208

    Re: Screen coordinates to world coordinates

    Try generating the world coordinates yourself based off the screen coordinates. This way you are keeping track of the world and screen coordinates real-time so you can then translate between the two...
  9. Re: Multiple Textures in One scene, One per mesh?

    Hmmm, ok. So essentially, I should change the Z-Postion of each quad so they aren't in the same Z space?
  10. Replies
    1
    Views
    1,040

    Re: Cross platform development

    I too am try to do this. The trickiest part of this is that everything must be abstract. That means you can't use Win32, MFC, ATL, Carbon, Cocoa, or X exclusively through-out the application. But...
  11. Thread: Cube

    by Snow_56767
    Replies
    1
    Views
    985

    Re: Cube

    The size of the mesh really doesn't matter when texturing, long as the texture coordinates are correct.

    To answer your question though, you can make a cube that is about 256 pixels per face, it...
  12. Replies
    3
    Views
    935

    Re: Translation in Z

    What view type are you using? Perspective or Orthogonal?

    Also, try to increase the Z-Translation more to see if it is actually working -the movement is just small enough to not really make a...
  13. Replies
    1
    Views
    894

    Re: cannot map texture to a polygon

    I would recommend starting simpler when learning texturing. For instance, just create a simple quad then texture it. then you can see what you did wrong / what isn't happening without having to wade...
  14. Re: Multiple Textures in One scene, One per mesh?

    If you wish me to, I'll archive all my code so that you can look at it and see if the problem is something else.
  15. Re: Multiple Textures in One scene, One per mesh?

    I've included an Image so you can see what I mean.

    I also forgot to specify that each texture is rendered on a quad I specify the quads like so:



    glBegin(GL_QUADS);
    glTexCoord2d(0,...
  16. Multiple Textures in One scene, One per mesh?

    Hi guys,
    I have a scene in which there is a background mesh, and two other meshes. All these meshes are textured with different textures and each texture has a transparent background. I already...
Results 1 to 16 of 16