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

Page 1 of 15 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    207

    Pixel Shader, C++ or Java?

    Hi to everyone. It's been a long time since I've posted anything in these forums but my latest activities have brought me back to the kind of programming I love.

    I would like to write a pixel...
  2. Replies
    7
    Views
    245

    Re: How to use OpenGL2.0 ?

    First of all, you need a driver that has support for OpenGL 2.0. Then you can get the address of the function you want to use, and afterwards you use it.
    It's a bit complicated. Unfortunately, I...
  3. Replies
    2
    Views
    190

    Re: Creating a GUI in OpenGL help?

    Check out glui
  4. Thread: Confused

    by dvm
    Replies
    1
    Views
    105

    Re: Confused

    By getting a good book. A few suggestions:
    1) OpenGL Game Programming (that's how I started, windows, oriented)
    2) OpenGL Programming Guide (official opengl book)
    3) Computer Graphics, A Top Down...
  5. Re: need code for texturing the earth image on a sphere

    or you could use a glu quadric, check it out
  6. Replies
    3
    Views
    120

    Re: Getting OpenGL to work

    No, I think everythink is ok, (though I usually put glut32.dll in /windows/system32, but this has nothing to do with compiling). The error you're getting, I believe is a bit silly and it's visual...
  7. Thread: OpenCV & OpenGL

    by dvm
    Replies
    4
    Views
    2,153

    Re: OpenCV & OpenGL

    If you don't need to do this task several times per frame, you could use glReadPixels. This reads your window (or a portion, whatever you ask for it) onto an off-screen buffer. I suppose you could...
  8. Thread: Scaling

    by dvm
    Replies
    5
    Views
    405

    Re: Scaling

    Welcome to the forum :)
    I think you should be able to solve your problem by using:

    glPushMatrix();
    glLoadIdentity();
    // do a new glTranslate, rotate, scale etc just for the font

    //draw...
  9. Replies
    2
    Views
    324

    Re: glut and gamepads under linux!

    Well, you might be in for a dissapointment here. I don't think that glut can handle joysticks. SDL might be a better solution here.
    But just to make certain, check the glut manual here
    and see...
  10. Replies
    3
    Views
    146

    Re: displaying a 3d primative (glut)

    It depends on the transformation matrix. Try finding the red book online (it's an older version, but the basic stuff that you need is there). It's in this site somewhere.
    In essence you should use...
  11. Thread: Multiple Key press

    by dvm
    Replies
    5
    Views
    802

    Re: Multiple Key press

    I think you'd have to stop using glut and use an API that can handle simultaneous key presses, like DirectX or SDL. (I'm not sure about SDL, as I haven't used it but it should be there.) I believe...
  12. Replies
    10
    Views
    1,079

    Re: opengl programming without a window?

    It's really nice! Does anyone also know how I'd make the clear color transparent? I mean render the objects opaque but see behind the rest of the window. I tried glClearColor(0.0, 0.0, 0.0, 0.0) but...
  13. Replies
    4
    Views
    170

    Re: reading color buffer to save as bitmap

    Search for the OpenGL Game Programming book. Go to the errata page and try chapter 6 or 7 (might want to look at the table of contents to be sure). There's a good code example of how you can save a...
  14. Thread: file type

    by dvm
    Replies
    23
    Views
    2,333

    Re: file type

    You're not using libraries (apart from C/C++) if you write your own image handling code. The header has nothing to do with the library.
  15. Thread: file type

    by dvm
    Replies
    23
    Views
    2,333

    Re: file type

    Well, you could try a bitmap. You only need a header. Google about it. I don't know if the .raw format would fit your description as well.
  16. Replies
    6
    Views
    902

    Re: Fade in-out a textured quad ?

    If you're talking about glut go here
  17. Replies
    6
    Views
    902

    Re: Fade in-out a textured quad ?

    Hmm, something must've slipped through the cracks then :) Good job, finding it.
    For the red book do a search for OpenGL Programming Guide. "red book" is just the nick, err..because it's red....
  18. Replies
    6
    Views
    902

    Re: Fade in-out a textured quad ?

    Have you created a 32-bit texture? You actually need an image (say targa) that supports transparency. I haven't ever changed the transparency values on the fly though. Another reason would be that...
  19. Thread: Global rotation

    by dvm
    Replies
    4
    Views
    330

    Re: Global rotation

    I was only kidding with Java, but C/C++ rest in my heart :)
    As for your problem you know the solution. And I wouldn't be so sure about your object staying at the center of origin. Since you...
  20. Thread: Global rotation

    by dvm
    Replies
    4
    Views
    330

    Re: Global rotation

    Try to find a copy of the red book (OpenGL Programming Guide), might be in this site as well. There it states that the order you write down your transformations depends on whether you think in object...
  21. Replies
    1
    Views
    99

    Re: Whats wrong with this code

    Well, for one, I believe glViewport has no right being there. It should be along with the projection code in a resize-reshape method. Also, the problem probably occurs when you reset your projection...
  22. Thread: Cube picking

    by dvm
    Replies
    7
    Views
    622

    Re: Cube picking

    Well, I can't offer any more advice. I'm sorry :(
    Last chance: check for error in every frame, maybe this shows something.
  23. Thread: GLYPHMETRICSFLOAT

    by dvm
    Replies
    13
    Views
    2,007

    Re: GLYPHMETRICSFLOAT

    Try to find an example that uses them. You can always experiment with the sizes you pass to them, to see what you like.
  24. Thread: Cube picking

    by dvm
    Replies
    7
    Views
    622

    Re: Cube picking

    Well, how are you drawing your cubes? Could you post the code for cubes.draw_cubes()?
    I haven't had much time with picking, apart from the redbook example, but my guess is that all 25 of them have...
  25. Replies
    6
    Views
    263

    Re: How to create such a text file?...

    Well, what would you use in your program to hold the vertices? e.g. for C++ I'd use a std::vector or something similar. Then you could use this to draw your objects. For example:

    vector<float[3]>...
Results 1 to 25 of 370
Page 1 of 15 1 2 3 4