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

Page 1 of 3 1 2 3

Search: Search took 0.19 seconds.

  1. Re: 2d code only draws black screen - noob question...

    In your resize function:
    move


    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();

    before the first "if".
  2. Replies
    3
    Views
    1,754

    Re: OpenGL - Message box or Pop up Message box

    You could also use kdialog (for kde) or zenity (for gnome) instead of xmessage.
  3. Replies
    5
    Views
    1,203

    Re: Help setting up VBO

    In function VertexBuffer::draw() you have


    glVertexPointer(3, GL_FLOAT, 0, 0);

    It should be:


    glVertexPointer(3, GL_FLOAT, 3*sizeof(float), 0);
  4. Replies
    3
    Views
    1,304

    Re: Greyscaling an image in GLES 1.x

    A simple method is (R,G,B) dot3 (0.3,0.3,0.3).
  5. Replies
    4
    Views
    1,624

    Re: Problem with drawArrays segmentation fault

    It means "draw 3 vertices starting from index 0" i.e. vertices 0, 1 and 2.
  6. Replies
    3
    Views
    2,014

    Re: Post processing screen effects

    For a "fade to black" effect you could just animate the alpha value of a full screen black quad.
  7. Replies
    4
    Views
    1,624

    Re: Problem with drawArrays segmentation fault

    glDrawArrays(GL_TRIANGLES, 0, 3);
    You only have 3 vertices, not 4...
  8. Replies
    2
    Views
    1,433

    Re: Problems with initializing of a texture in JOGL

    Ahem...


    gl.glTexImage2D(tmp[0], 0, GL.GL_RGB, tex.getWidth(), tex.getHeight(), 0, GL.GL_RGB, GL.GL_UNSIGNED_BYTE, tex.getPixels());


    it should be
  9. Replies
    2
    Views
    1,162

    Re: Specular highlight

    I think this is what you need:

    glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL,GL_SEPARATE_SPECULAR_COLOR);
  10. Replies
    2
    Views
    2,043

    Re: GLSL Book Online..

    I don't think you will find that book online, but if you want to learn GLSL you could start with TyphoonLabs GLSL Course.
  11. Replies
    3
    Views
    6,673

    Re: OpenGL Bone Animation

    A simple tutorial here (Cg and GLSL).
  12. Replies
    4
    Views
    273

    Re: Blitting between 2D textures?

    Use glTexSubImage2D .
  13. Replies
    3
    Views
    170

    Re: Open GL for Television Broadcast

    VizRT
  14. Thread: BCB and OpenGL...

    by uruk
    Replies
    6
    Views
    852

    Re: BCB and OpenGL...

    Add in the FormCreate function, before you call SetupRC(), the lines:

    glViewport(0,0,ClientWidth,ClientHeight);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();...
  15. Replies
    2
    Views
    149

    Re: dds textures in opengl

    DDS loading tuturial
  16. Replies
    5
    Views
    323

    Re: color loss with OpenGL textures

    In a BMP file colors are in BGR format not RGB... You should swap the bytes...
  17. Thread: targa image files

    by uruk
    Replies
    6
    Views
    702

    Re: targa image files

    Ummm... Try to set the color depth of your image to 24 bpp (16.7 mil. colors).
  18. Replies
    7
    Views
    708

    Re: need .3ds file for import into opengl

    3d cafe
  19. Re: I desperately need help with animation in OpenGL!

    You can upload your image here , then use the IMAGE button when posting a reply.
    As for your problem, hmmmmm... I guess you could move a bright red cylinder over the blood vessel.
    Like this:
    ...
  20. Replies
    2
    Views
    313

    Re: Network programming in OpenGL

    OpenGL=Open Graphics Library so it has no networking functions.
    I would recommend SDL_net .
  21. Thread: Rotation matrix

    by uruk
    Replies
    5
    Views
    339

    Re: Rotation matrix

    GL_MODELVIEW
  22. Re: How to draw the bitmap or jpeg in window platform using OpenGL?

    NeHe provides some 40 tuts. Download them and study them.
  23. Replies
    7
    Views
    593

    Re: Line capping & wide lines

    Yes. I think that's software rendering. Check your OpenGL initialisation code (PIXELFORMATDESCRIPTOR on Win32).
    Also call glGetString(GL_RENDERER). If it returns something like PFD_GENERIC_blahblah...
  24. Replies
    4
    Views
    2,349

    Re: question about glucylinder

    You will have to draw the caps. Two disks (gluDisk) one at the bottom and one at the top of your cylinder.
  25. Thread: OpenGL problem

    by uruk
    Replies
    1
    Views
    138

    Re: OpenGL problem

    HERE! But SHHHHH! Don\'t tell anyone! .
Results 1 to 25 of 66
Page 1 of 3 1 2 3