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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,009

    Thank you for your response! Sorry. I meant...

    Thank you for your response! Sorry. I meant GL_REPEAT when I said GL_MIRROR in my first post. If only there happened to be a way to "clamp" GL_REPEAT so the texture mapping was always correct and did...
  2. Replies
    2
    Views
    1,009

    Texture Clamp Confusion

    Is there a way to change the range of GL_CLAMP or easily edit the U/V Coordinates? In an OBJ renderer that I am working on, texture clamping seems to be putting up a fuss.

    1054

    The cube on the...
  3. Replies
    1
    Views
    847

    Texture Mapping Problem

    The texture is mapping oddly to the cube in OpenGL, but it looks just fine in the OBJ format. The U/V Coordinates are identical, I think. Do U/V Coordinates have to be formatted a little differently...
  4. Replies
    2
    Views
    804

    I suppose not everyone is interested in compiling...

    I suppose not everyone is interested in compiling the source code for themselves. The left one is with glFrustum. The right one is with glOrtho. They are the same scene.

    1034

    The map is the...
  5. Replies
    2
    Views
    804

    Yet another topic about glFrustum.

    The glFrustum(); function is putting up a fight. I need to zoom in on the map and using glOrtho was causing it to disappear by the time any real distance was made, so someone suggested I use...
  6. Replies
    4
    Views
    1,216

    Thanks! I will send you the pieces of code that...

    Thanks! I will send you the pieces of code that matter the most.
  7. Replies
    4
    Views
    1,216

    Thank you for your response! I was using...

    Thank you for your response! I was using glFrustum(-320,320,-(WHEIGHT/2),WHEIGHT/2,-1000,1000);, but nothing was rendering. Using the glGetError() function resulted in an "Invalid Value" error which...
  8. Replies
    4
    Views
    1,216

    Translation towards the camera.

    I probably already have a solution to the math behind moving the scene towards the camera, but it stops rendering when translated much at all and never seems to get closer to the camera even when it...
  9. Replies
    5
    Views
    1,115

    Update: OpenGL is no longer detecting errors but...

    Update: OpenGL is no longer detecting errors but the font is still not working for the people that it has not been working for.
  10. Replies
    5
    Views
    1,115

    With that changed to one or all of the above, I...

    With that changed to one or all of the above, I get multiple occurrences of "OpenGL Error: stack underflow" instead of a single "OpenGL Error: invalid enumerant" error. It looks like I will have to...
  11. Replies
    5
    Views
    1,115

    Thank you for your response. Here is what I get...

    Thank you for your response. Here is what I get from that: OpenGL Error: invalid enumerant I decided to place the code that prints an error after each "glEnable();" line. This happens after...
  12. Replies
    5
    Views
    1,115

    Texture Problem

    Most users are not having problems with my application, but a good number of them still are. Here is what the problem looks like: http://img845.imageshack.us/img845/9177/15088643.png

    Where the...
  13. Replies
    4
    Views
    1,454

    Thanks! It is now a little closer! Some of the...

    Thanks! It is now a little closer! Some of the rotations are correct while others are wrong. Do you think it may have something to do with axis ordering?
    GLfloat matrix[16];...
  14. Replies
    4
    Views
    1,454

    Thank you so much for your response, Dark Photon!...

    Thank you so much for your response, Dark Photon! It is now getting the correct translations, but rotations are another thing. I am getting the matrix with the following code:
    GLint matrix[16];...
  15. Replies
    4
    Views
    1,454

    Getting positions and rotations for a limb?

    Pseudo code below:
    glPushMatrix();
    glRotatef(100,1,0,0);;
    glRotatef(50,0,1,0);
    glRotatef(100,1,0,0);
    glTranslatef(x0,y0,z0);
    glCallList(dl0);

    glPushMatrix();
    glRotatef(50,1,0,0);;
  16. Thread: Camera magic?

    by Flotonic
    Replies
    4
    Views
    1,473

    Re: Camera magic?

    Thank you for your time. However, when I use glFrustum with the aforementioned coordinates, I get a black screen. Might there be a way to just update the camera position and actually have it move in...
  17. Thread: Camera magic?

    by Flotonic
    Replies
    4
    Views
    1,473

    Camera magic?

    I understand that there isn't really a such thing as moving a camera around in OpenGL. Still, something odd is happening. I'll provide three chunks of code.

    My viewing range.
    ...
  18. Replies
    2
    Views
    1,000

    Re: Dynamic colors in OpenGL?

    Thanks a lot! :D
  19. Replies
    2
    Views
    1,000

    Dynamic colors in OpenGL?

    glColor3f(1,0,0);

    I know that this is red, represented as 255. If I want to use 0x7F 0x0 0x0 for the colors, I would just need to divide each by 0xFF and get their decimal values and put those.
    ...
  20. Replies
    1
    Views
    1,758

    Re: Mirror a model completely?

    Problem solved. :cool: For anyone with the same question as me in the future, just scale with a negative value.

    glScalef(-1, 1, 1);
  21. Replies
    1
    Views
    1,758

    Mirror a model completely?

    I'm not looking for any fancy mirroring effects like a puddle. I just need a means of mirroring (flipping) a model along an axis.

    http://i364.photobucket.com/albums/oo89/Flotonic/LinkMirrored.png...
  22. Replies
    4
    Views
    2,537

    Re: Using Variables in Display?

    Ahh. Now I see what you mean. I figured out the function and results were beautiful. Thank ya!
  23. Replies
    4
    Views
    2,537

    Re: Using Variables in Display?

    You may not be understanding. I'm not talking about a Command Prompt application. I'm referring to an actual On-Screen Display in an OpenGL application.
    ...
  24. Replies
    4
    Views
    2,537

    Using Variables in Display?

    char defaultframemessage[] = "Frame: 1";
    char *framemessage = defaultframemessage;
    I'm needing to use something similar to the printf function here so I can display a value stored in a variable...
  25. Replies
    3
    Views
    2,164

    Re: Declaring Vertices

    Thanks for your assistance. ;) However, I get, "undefined reference to glvertex3fv." Perhaps I'm misusing it.



    #include <GL/gl.h>
    #include <GL/glut.h>

    void display(void)
    {
Results 1 to 25 of 26
Page 1 of 2 1 2