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

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    133

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

    Thanks! I will send you the pieces of code that matter the most.
  2. Replies
    4
    Views
    133

    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...
  3. Replies
    4
    Views
    133

    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...
  4. Replies
    5
    Views
    488

    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.
  5. Replies
    5
    Views
    488

    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...
  6. Replies
    5
    Views
    488

    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...
  7. Replies
    5
    Views
    488

    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...
  8. 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];...
  9. 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];...
  10. 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);;
  11. Thread: Camera magic?

    by Flotonic
    Replies
    4
    Views
    1,162

    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...
  12. Thread: Camera magic?

    by Flotonic
    Replies
    4
    Views
    1,162

    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.
    ...
  13. Replies
    2
    Views
    842

    Re: Dynamic colors in OpenGL?

    Thanks a lot! :D
  14. Replies
    2
    Views
    842

    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.
    ...
  15. Replies
    1
    Views
    1,386

    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);
  16. Replies
    1
    Views
    1,386

    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...
  17. Replies
    4
    Views
    2,255

    Re: Using Variables in Display?

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

    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.
    ...
  19. Replies
    4
    Views
    2,255

    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...
  20. Replies
    3
    Views
    1,896

    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)
    {
  21. Replies
    3
    Views
    1,896

    Declaring Vertices

    Like with declaring variables, I would like to declare vertices.

    int muffin;

    That's a variable declaration. I'm hoping there is something similar for vertex declaration. I want to make a "bank"...
Results 1 to 21 of 21