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

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    836

    well you're just drawing a line from left to...

    well you're just drawing a line from left to right, hard to see a 1 pixel long line. try a GL_TRIANGLE or GL_QUADS instead of GL_LINES so


    glBegin(GL_QUADS)
    glColor3f(r, g, b)
    glVertex2f(x, y)...
  2. Replies
    12
    Views
    1,393

    private static void render() { ...

    private static void render()
    {
    //glPolygonMode(GL_FRONT, GL_POINT);
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

    glLoadIdentity();

    ...
  3. Replies
    12
    Views
    1,393

    Transformation? this is the code that starts the...

    Transformation? this is the code that starts the draw method

    glPushMatrix();
    glPushAttrib(GL_ENABLE_BIT);

    glLoadIdentity();
    ...
  4. Replies
    12
    Views
    1,393

    Tried the glDepthRange calls (starts with 1,1...

    Tried the glDepthRange calls (starts with 1,1 then another call at the end uses 0,1) and it simply does not draw the skybox at all. Maybe I'm using the calls in the wrong place?

    Anyways anyone...
  5. Replies
    12
    Views
    1,393

    Thanks GClements for this code: ...

    Thanks GClements for this code:

    glRotatef(-cam.roll() + 180, 0, 0, -1);
    glRotatef(-cam.pitch(), 1, 0, 0);
    glRotatef(-cam.yaw(), 0,-1, 0);
    I've...
  6. Replies
    12
    Views
    1,393

    Sky box issue

    Hey I've been working on a Skybox for my java game (OpenGL/LWJGL) what my issues is that:

    One the texture is not "stretched" so to say across the quad face (how would I go about that? also the...
  7. Ah thank you, I had a suspension that it was C++...

    Ah thank you, I had a suspension that it was C++ only, but didn't want to fully assume



    And that reference link is really helpful saddly it lacks saturate but I can kinda guess what it does...
  8. Can GLM be used in Java? OpenGL LWJGL

    Hey I've been trying to get some Multi-Texturing to work for my own Game Engine and I'm following this:http://3dgep.com/?p=1116
    Yes it's in C++ and i'm doing mine in Java, however the use of...
  9. Here is my Method for filling data public...

    Here is my Method for filling data


    public void setUpVBO()
    {
    /* size the m_holders */
    m_position = new Vector3f[faces.size() * 9];// not sure if this is the height * width??
    m_color =...
  10. Alright i've changed the pointers to use 0 now...

    Alright i've changed the pointers to use 0 now it's complaining about the Array Buffer now and is failing ont he texcoord pointer


    glClientActiveTexture(GL_TEXTURE2);
    ...
  11. yes I have used glGenBuffers() ...

    yes I have used glGenBuffers()

    createVertBuffer(indexBuffer);

    //Method used:
    private static int createVertBuffer(int ID)
    {
    deleteVertBuffer(ID);
    ID = glGenBuffers();
    return ID;
  12. Some help with VBOs and glDrawElements()

    Hey new here, and new to OpenGL I also will apologize if there has already been a thread or a discussion (as I am a bit lazy to use the Search function and didn't really find anything that pertained...
Results 1 to 12 of 12