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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    2,049

    I understand that. What I am trying to do is...

    I understand that. What I am trying to do is detect the object clicked by the mouse. So, the ivec2 are click coords input from the app program. And as the frags are processed I check is...
  2. Replies
    3
    Views
    2,049

    Shared storage buffer object question

    Greeting:
    I set up a shared storage buffer object in the fragment shader (basically, followed the red book) because my program needed to exchange data with the shader.

    Here's the code in the...
  3. Replies
    2
    Views
    660

    gl_FragCoord question

    Greetings:
    Question: What is the range of gl_FragCoord.z (frag depth) and which end is closest/farthest from the eye?
    Thanks,
    Sam
  4. Thanks a lot for the suggestions. I indeed got...

    Thanks a lot for the suggestions.

    I indeed got line stipple working reading gl_FragCoord. x and y, and discarding according to the stipple pattern.

    This got me thinking about picking and I...
  5. Line stipples, Selection and Picking: How to do these in GL 4.3?

    Greetings:
    I am trying to rework some pre-shader programs in GL 4.3 core profile. Questions I have run into:

    1. How to draw stippled lines? As there's no glEnable(GL_LINE STIPPLE) or...
  6. Thanks. Your suggestion obviously requires the...

    Thanks. Your suggestion obviously requires the shaders to be bound to a pipeline created with glGenProgramPipelines(1, &pipeline), etc. Unfortunately, I have simply been unable to do this. The...
  7. Obviously, I am missing something here. I want...

    Obviously, I am missing something here. I want the same program to draw the curve and control points. So I have to throw the TCS and TES out in its drawing routine (after the curve is drawn). How...
  8. Okay, so how do I turn off tessellation and just...

    Okay, so how do I turn off tessellation and just let the points go through VS-FS? Precisely, I want tessellation on for the curve then turn it off for the points.
  9. How to draw a curve and points together?

    Greetings:
    I have a GL 4.3 tessellation shader program which draws a Bezier curve just fine. Now, I want to draw the control points as well. Obviously, I have to turn off the TCS and TES and switch...
  10. Separate shader objects, tessellation program problem

    Greetings:
    Here's the situation: I am using tessellation to draw a Bezier curve with 4 control points. The program runs fine as a single shader program but the problem is it won't draw anything if I...
  11. Thanks, tonyo_au. After reading your post I went...

    Thanks, tonyo_au.
    After reading your post I went in and declared actually all the built-ins for each shader stage. Still no luck.

    Now, I am beginning to wonder if it's a driver issue. Only way to...
  12. Tried 2.0, 3.0. No cigar.

    Tried 2.0, 3.0. No cigar.
  13. Separate shader pipelines program problem

    Greetings:
    I am trying to write a program to draw a Bezier curve and its 4 control points. Stand-alone separate programs to do these work fine. The point-drawing program has VS - FS shaders, the...
  14. Replies
    2
    Views
    661

    Thanks, tonyo_au. Separate pipelines it is then.

    Thanks, tonyo_au.
    Separate pipelines it is then.
  15. Replies
    2
    Views
    661

    Tessellation shader question

    Greetings:
    I have coded up a simple core 4.3 program to draw a cubic Bezier curve. The input in the app program is 4 control points, the fineness of the approximating polyline is controlled by a...
  16. GClements: Problem solved, can't thank you...

    GClements:
    Problem solved, can't thank you enough...
  17. Transform feedback code bug, help please

    Greetings:
    I seem to have hit a wall with my toy should-be-simple first TF program. Really appreciate if someone can help find the bug. What I want to do is draw two points (which are actually the...
  18. Replies
    6
    Views
    1,330

    Thanks again.

    Thanks again.
  19. Replies
    6
    Views
    1,330

    Thank you, GClements. That clarifies the...

    Thank you, GClements.
    That clarifies the situation a lot. Now I understand why an intermediate buffer is needed to access TF output data.

    Still if I might bug people a little more: how does one...
  20. Replies
    6
    Views
    1,330

    Thanks, Aleksandar. So in my case center0 and...

    Thanks, Aleksandar.
    So in my case center0 and center1 will write into TFBuffer. But after that how do I access their values at each step to check the distance between them?

    Btw, this is not any...
  21. Replies
    6
    Views
    1,330

    Transform feedback

    Greetings:
    I am trying to write a simple program to understand transform feedback: two spheres move randomly in world space and when they collide some effect happens. I want to use TF for collision...
  22. Replies
    3
    Views
    1,878

    Thanks, GClements. But I was wondering if...

    Thanks, GClements.
    But I was wondering if there's library or such that I can just plug in. I really don't want to spend time making glyphs myself as the text is just incidental to my program.
  23. Replies
    3
    Views
    1,878

    Text drawing in GL 4.3

    Greetings:
    What's the best way to draw text in GL 4.3 core? I searched the forum but couldn't find a good answer. The wiki below seems a bit dated too....
  24. Thanks, Dan.

    Thanks, Dan.
  25. Thanks, Alfonse. But I must be missing something....

    Thanks, Alfonse. But I must be missing something. There is no glActiveTexture(GL_TEXTURE1) call anywhere in the non-shader program though it applies two 2D textures to the scene drawn. In fact, there...
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4