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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,576

    How are you trying to read the framebuffer...

    How are you trying to read the framebuffer content?

    If you have a multisample buffer (either renderbuffer or texture) as color attachment, glReadPixels or other pixel transfer operations won't...
  2. Hello, Your question is not really related to...

    Hello,

    Your question is not really related to OpenGL.
    If you mean you want to load 3DS models then display them using OpenGL, you should look at it as 2 separate subproblems:
    1. load 3DS file to...
  3. I found a workaround. In vertex shader: ...

    I found a workaround.

    In vertex shader:


    in ivec3 aGBufferCoord;
    out ivec2 iGBufferCoord; // used to be ivec3
    out int iSampleIndex; // new

    main() {
  4. nVidia : input-dependent texelFetch in multisample texture always retrieve sample 0

    Hello,

    I'm encoutering a strange bug on an nVidia card while trying to make an input-dependent texelFetch from a multisample texture in a geometry shader.
    The shader has the following input:
    ...
  5. I was not referring to an actual CPU-side memcpy...

    I was not referring to an actual CPU-side memcpy but to a memory copy on the GPU, which could be parallel as well and certainly make better use of texture caches than a shader making random...
  6. Replies
    8
    Views
    1,434

    At any given time, there is only one active...

    At any given time, there is only one active OpenGL context in a thread.
    On Windows, you have to call wglMakeCurrent to switch contexts for the calling thread.
    The X equivalent is glxMakeCurrent.
    ...
  7. Well, depending on the memory layout of the...

    Well, depending on the memory layout of the multisample buffer, it could have been just a memory copy in the driver instead of width*height*numsamples calls to texelFetch...
    Also that means I'll...
  8. retrieve multisample texture content in buffer object?

    Hello,

    Is there a direct way of copying the contents of a multisample texture or renderbuffer to a buffer object?
    I mean every sample, because glReadPixels would average the samples at each...
  9. Replies
    7
    Views
    1,594

    Yup, you're certainly getting 4x SUPERsampling...

    Yup, you're certainly getting 4x SUPERsampling (and no useful multisampling).
    On nVidia cards, at least up to GT200 series, so-called 16x multisampling is achieved by cumulating 4x multisampling...
  10. Hello again and thank you very much for your...

    Hello again and thank you very much for your reply.

    That just makes sense, I forgot that the order in which primitives are rasteriezd in the next stages does matter in many cases (blending, etc.)....
  11. Thanks for your reply. Is that part of the...

    Thanks for your reply.

    Is that part of the specifications of ARB_geometry_shader4?
    I couldn't find anything regarding the order of primitives in EXT_transform_feedback*.

    By the way, the...
  12. Should geometry shader preserve primitive order or am I just lucky?

    Hello,

    For some GPGPU application, I'm throwing the content of a VBO as GL_POINTS at a geometry shader with transform feedback enabled in order to filter out data in the captured VBO. To discard a...
  13. Re: Using the GPU to accelerate high quality 2D AA

    Cards that accelerate 3px-wide lines that I know of also accelerate GL_LINE_SMOOTH so there's really no need for a home-made shader here.

    I mean, that's fun reinventing the wheel with shaders and...
  14. Re: Problems with multiple objects, shader & picking

    My bad! I got the stride wrong too: it's the number of bytes between vertices, so you'll have to multiply by sizeof(GLfloat).

    Still, if data is tightly packed, 0 would be prefered.
  15. Re: Using the GPU to accelerate high quality 2D AA

    That's implementation-dependent. Use glGet* with GL_LINE_WIDTH_RANGE to query for minimum and maximum widths on your particular hardware, and GL_LINE_WIDTH_GRANULARITY to get the granularity (not...
  16. Re: Using the GPU to accelerate high quality 2D AA

    Hello,

    Did you look at plain-old fixed pipeline AA? (e.g. glEnable(GL_LINE_SMOOTH); + glLineWidth)
    This is likely to be the closest thing to what your software renderer is doing.

    Every other...
  17. Re: Problems with multiple objects, shader & picking

    Halik,

    I think you got the stride wrong in the gl*Pointer function calls. It's the spacing between vertices or tex coords in your float array, in case you want to interleave data (vertices,...
  18. Re: Problems with multiple objects, shader & picking

    Sorry, it seems I did not read your post till the end.


    So, what is the actual data type, content and layout of m.vertexCoords, and the value of m.numberOfVertexCoords?
    Does vertexCoords...
  19. Re: Problems with multiple objects, shader & picking

    The second arg is the number of triangles, so unless struct/class members were named in a misleading way, it should be m.numberOfVertexCoords/3. The rest is right.

    The last arg is a pointer to the...
  20. Replies
    15
    Views
    3,832

    Re: Manual mipmap loading

    That seems to be exactly what Godlike is trying to do.

    Godlike, you properly removed/commented the glGenerateMipmap call from your code in your manual mipmap loading attempt, right?
  21. Replies
    5
    Views
    2,060

    Re: FBO, textures and MRT problems

    For question #2, I've been using the same FBO to render to different textures for some time and it works just fine. In my experience, it was faster to re-bind a texture with same geometry and format...
  22. Replies
    10
    Views
    3,367

    Re: Buffer orphaning and multiple context

    Should the actual memory range be reallocated by a call to BufferData, the buffer OBJECT itself remains, so there is no orphaning here: the buffer handles in both threads will still refer to the same...
  23. Re: Problems with multiple objects, shader & picking

    You missed the point. What I was telling you is that the rendering code is inefficient, so it comes as no big surprises that the app is slow when changing the point of view.

    First of all, you are...
  24. Replies
    10
    Views
    3,367

    Re: Buffer orphaning and multiple context

    After some seach, it seems you should be using some fences for synchronization (better than glFinish): http://www.opengl.org/wiki/Sync_Object
  25. Replies
    11
    Views
    4,542

    Re: Saving & Restoring Depth Buffer to/from PBO

    There's some information about that on OpenCSG's website: http://www.opencsg.org/
Results 1 to 25 of 41
Page 1 of 2 1 2