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

Page 1 of 3 1 2 3

Search: Search took 0.12 seconds.

  1. Re: Is it ok to use a random texture ID?

    Tnx guys. I've chosen the simplest solution. I will not delete the texture and let it go out of context when I delete the AGL context. That somehow solves my problem.
  2. Is it ok to use a random texture ID?

    Hi guys,

    Instead of using glGenTextures() to get an unused texture ID. Can I randomly choose a number, say, 99999 and use it?

    I will, of course, query:

    glIsTexture( m_texture )

    and make...
  3. Replies
    1
    Views
    713

    Re: Transparency

    I might be stating the obvious here but have you tried playing with the alpha channel of glColor4d(r,g,b,a); ?
  4. Replies
    46
    Views
    29,373

    Re: How to generate stereo manually

    Hey tnx Dark Photon, those links were very helpful.

    I've managed to setup the 3D stereoscopic view from the nVidia Control panel.

    my app is still crashing though. I'll just keep debugging it.
  5. Replies
    46
    Views
    29,373

    Re: How to generate stereo manually

    Hi guys,

    I'm trying to create a 3D app also. So I'll just do a recap of the things that you said to make it work:

    1. Add the PFD_STEREO for the pixelFormat structure.

    2. Draw one instance...
  6. Re: PPM file: I have no color and a skewed image

    You've got a funny way of drawing ppm files. :P

    Anyways if you want to fix your problem, just replace:

    while (fscanf(fp, "%f", &number) != EOF)

    with

    while( y < Height )
  7. Replies
    0
    Views
    588

    multitexturing with glEvalMesh

    Hi Guys,

    I'm having a small problem with glEvalMesh.

    I think Opengl3 will deprecate this but we're still hanging tough at 1.4 and I doubt we'll start programming 3.0 anything soon. Anyways I'm...
  8. Re: Does OpenGL work with Nvidia 3D Vision?

    Apparently if you have a full-screen in exclusive mode, you're good to go with openGL apps and 3D vision.
  9. Replies
    3
    Views
    3,209

    Re: question over sine wave

    you are almost there.

    Just change this line:

    x1=i/SIZE;x2=(i+1)/SIZE;


    to something like:

    x1=(float)i/SIZE;
  10. Re: Vista 64 problem: OpenGL window is transparent.

    Try disabling aero!

    I've had this problem on two graphics cards. The Nvidia 9500GT abnd the Nvidia 9800GT. I've never been able to find out what the problem is.

    My collegue has the exact same...
  11. Re: Opening UG(unigraphics file ) in Opengl

    Hi Hiten,

    OpenGL cannot, by itself, open a .prt file.

    What you need to do is use some external library to read the file. And then apply the gl transformations in your openGL context.

    I'm not...
  12. Replies
    4
    Views
    1,380

    Re: OpenGL coordinate conversion

    you could also do

    glScaled( -1.0, -1.0, 1.0 );

    That's what I use. It shouldn't be that expensive on the GPU.

    IMHO, you are going in a good direction.
  13. Re: 2D texture problem - lines between textures?

    I thought it was an edge blending issue. Anyways I'm glad your problem is fixed. :)
  14. Replies
    5
    Views
    1,238

    Re: texture data manipulation

    Hello TheAtlasProject,

    did you come across this thread?

    http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&amp;Number=256768

    Maybe that might be useful. :)
  15. Re: 2D texture problem - lines between textures?

    My reference:

    http://www.talisman.org/opengl-1.1/Reference/glTexParameter.html

    Some excerpts:

    GL_TEXTURE_WRAP_S
    Sets the wrap parameter for texture coordinate s to GL_CLAMP, GL_REPEAT,...
  16. Re: 2D texture problem - lines between textures?

    Add these two lines just after your "glEnable(GL_TEXTURE2D)" and you'll be fine. :)

    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
    glTexParameteri( GL_TEXTURE_2D,...
  17. Replies
    1
    Views
    341

    Re: GLShaderLanguage

    Yea you can use shaders on old intel chips.

    But not GLSL. What you will need to use is 'fragment programs', not 'fragment shaders'.

    A fragment program is a small piece of assembly code that...
  18. Replies
    2
    Views
    924

    Re: Flickering Light

    Hi Phynix,

    You need to give us more code for us to help you out.

    That being said, if your polygons are on the same z-plane and you notice some flickering when rotating, this usually points to...
  19. Replies
    4
    Views
    998

    Re: Oddly blended textures.

    Based on the uploaded rendered images you sent, it seems as if the alpha channel is not being read properly. If you look at your image files the alpha of the the galaxies smoothly decreases to zero...
  20. Replies
    2
    Views
    4,426

    Re: OpenGL and Glut for Win64 Vista

    Try this site:

    http://www.idfun.de/glut64/
  21. Replies
    4
    Views
    998

    Re: Oddly blended textures.

    I think the way you are loading your texture is wrong.

    Are you using windows? Can you try reading your pngs with GDI+, or any other library for that matter?

    It looks like the alpha channel is...
  22. Replies
    4
    Views
    1,211

    Re: Rotating a cube with the mouse.

    Hi Optik,

    Could you please paste the critical portions of your code so we can have a look. It's hard to visualize what you want to do from your brief description.
  23. Replies
    5
    Views
    1,292

    Re: Moving and Rotating Objects

    hi cwzcwz,

    Provided I understood you correctly, I think what you want to do it rather straight forward.

    Just use glRotatef(..) calls to make your rectangle rotate. I'll assume you want your...
  24. Replies
    3
    Views
    981

    Re: Problem with glut

    nice. :)
  25. Replies
    3
    Views
    981

    Re: Problem with glut

    A quick hack to fix this problem. Put glut32.dll in the same folder as the executable.

    Other than that, if if can't find the dll, the path must be wrong. :)
Results 1 to 25 of 67
Page 1 of 3 1 2 3