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

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,349

    How does gl_position.zw effect zbuffer?

    I am making a custom projection system, and I am writing directly to gl_position.xyzw in vertex shader instead of using traditional viewprojection matrix.

    I am currently setting the w parameter to...
  2. Alfonse, thanks but your not helping. If you had...

    Alfonse, thanks but your not helping.
    If you had READ my post you would see that I am doing a ray intersect near plane.
    I have been shader programming for over 8 years. Please be smarter than me if...
  3. I dont use a perspective projection matrix. I...

    I dont use a perspective projection matrix.
    I create a ray from the eye to the vertex.
    I then do a ray intersect near plane to get gl_position.xyz

    So I need to understand what the w component...
  4. gl_position.w = ???? How do I calculate the W coord directly without perspective mat

    I am making a raytracer using GLSL.
    I have it working but the zbuffer is not working correctly.
    I believe it is because I dont know exaclty what is expected for gl_position.w.

    I currently set...
  5. Replies
    2
    Views
    1,122

    Is there a opengl4.lib ?

    Is there a opengl4.lib for win32 ?

    where can i get it?
  6. Replies
    0
    Views
    843

    Where can i find opengles2.lib

    I want to write a opengl 2.0 es program on windows.

    I assume i need something like opengles2.lib.

    But i cant find anything like that.

    help!
  7. Replies
    0
    Views
    995

    where can i get opengles2.lib?

    I am trying to create a opengl es 2.0 program on windows.

    currently i get error LNK2019: unresolved external symbol __imp__glLinkProgram@4

    I assume i need something like opengles2.lib. Where...
  8. does glReadPixels read front, or backbuffer

    does glReadPixels read front, or backbuffer?? they just say framebuffer. Does it have to be swapped before readpixels can see it?
  9. Replies
    3
    Views
    1,123

    How to Render Upside down?

    how can I render a scene upside down.

    another possibility is how can I get glCopyTexSubImage2D to flip it for me.

    no, i cant simply adjust the UVs, because that would hose the pbuffer version....
  10. Re: pbuffer, and backbuffer cant share textures??

    A correct reply took 13 minutes!!! http://www.opengl.org/discussion_boards/ubb/eek.gif
    Thanks for your help Thaellin, it works now!!
  11. pbuffer, and backbuffer cant share textures??

    ok...

    1)set backbuffer
    2)GenTextures 1-5
    3)set pbuffer
    4)GenTextures 1-5

    WHY does GenTexture start over at 1. It should be 6-10. Can one not access the other? huh? what a mess!

    Thanks
  12. Replies
    52
    Views
    23,391

    Re: The diffrence in OGL on Linux and win

    ok, i looked at your code, and your missing :

    glClearDepth(1.0f);//clear value
    glDepthMask(TRUE);//zbuff write on

    if that doesnt work, i guess i cant help ...
  13. Replies
    52
    Views
    23,391

    Re: The diffrence in OGL on Linux and win

    hmm
    you should move the viewpoint to see if your problem is the zbuffer not clearing. that is a different problem.

    It appears to me, however, that your zbuffering is not enabled.

    check to see...
  14. Replies
    6
    Views
    778

    Re: I cant compile X11+OpenGL+gcc+linux

    I still get the same error.
    I do not have \include\GL that has to be the problem.How do i get that, or extraxt it.

    How is it possible that this mandrake 9 install doesnt have gl headers.

    im on...
  15. Replies
    6
    Views
    778

    I cant compile X11+OpenGL+gcc+linux

    I am new to linux(mandrake9), and i need to get a opengl+x11 sample running on my system.

    If i try to compile a NeHe glx sample app...

    gcc -Wall -pedantic -ansi lesson03.c -o lesson03...
  16. Replies
    52
    Views
    23,391

    Re: The diffrence in OGL on Linux and win

    HAHA,
    I know what the problem is

    //you Must reset mask values, or
    //zbuffer wont clear
    glColorMask(1,1,1,1);
    glDepthMask(1);
    glClearColor(Red,Grn,Blu,Alp);...
  17. Replies
    3
    Views
    388

    Is GLUT-less linux+opengl possible?

    I am porting a windows opengl program that does not use glut. I cant find a single example of a linux+opengl program that doesnt include glut. Is it even possible?
Results 1 to 17 of 17