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

Page 1 of 14 1 2 3 4

Search: Search took 0.20 seconds.

  1. Replies
    1
    Views
    134

    Use polygon offset to push the polygons backwards...

    Use polygon offset to push the polygons backwards in Z:


    glEnable(GL_POLYGON_OFFSET_FILL);
    glPolygonOffset(2,2);
    //draw surfaces
    glDisable(GL_POLYGON_OFFSET_FILL);

    You can adjust the...
  2. Replies
    3
    Views
    226

    You need a Kepler- or Maxwell-based Nvidia GPU to...

    You need a Kepler- or Maxwell-based Nvidia GPU to use bindless textures (GK or GM GPUs), which is generally the 600 series and up. However, the low-end 600 series still has some Fermi-based GPUs...
  3. Yes, you need a core profile to use GLSL 330 on...

    Yes, you need a core profile to use GLSL 330 on OSX.
  4. Replies
    4
    Views
    314

    You're missing the binding of the buffer that...

    You're missing the binding of the buffer that contains the data in initShaders():


    glBindBuffer(GL_ARRAY_BUFFER, vertex_data_buffer_id);

    before the calls to the glVertexAttribPointer(). Pull...
  5. Replies
    2
    Views
    256

    You'll need to convex the shape first by,...

    You'll need to convex the shape first by, dividing it into triangles or quads. OpenGL implementations simply divide the polygon into triangles with no consideration for concave shapes. That...
  6. The simplest way is to use multiple texels, which...

    The simplest way is to use multiple texels, which you can do by allocating a larger texture by increasing its dimension by a factor of texels-per-value in one direction and then indexing the texture...
  7. Sticky: Pixar is behind OpenSubDiv (opensubdiv.org). Part...

    Pixar is behind OpenSubDiv (opensubdiv.org). Part of the library is dedicated to hardware-accelerated adaptive subdivision. I suspect that's the reason for their interest in next-gen graphics APIs.
  8. You could create an RGBA32F 1D texture (or...

    You could create an RGBA32F 1D texture (or texture buffer) of size num_transforms *4, and pack the transform vectors into it. If you don't have shears, you can use a 3x4 matrix since the last column...
  9. Replies
    2
    Views
    343

    log(1) = 0, so it's probably to shift all the...

    log(1) = 0, so it's probably to shift all the depth values into non-negative values. Also, Z=0 without the +1 would result in a NAN or similar math error when you took the log.
  10. Replies
    17
    Views
    1,136

    Yes, and unfortunately some older Intel hardware...

    Yes, and unfortunately some older Intel hardware on OSX advertise GL3.3 support, even though it relies on Apple's software fallbacks to get there. The HD3000 and 2000 don't do geometry shaders, for...
  11. Replies
    5
    Views
    916

    It seems like an interesting proof of concept....

    It seems like an interesting proof of concept. But the fact that it requires bindless everything - textures, vertex arrays, uniform buffers - makes it unsuitable for folding into our existing...
  12. Replies
    3
    Views
    555

    Your line is probably going behind the camera...

    Your line is probably going behind the camera plane. When this happens, w becomes negative. You can clip the line at z=0, or just punt and divide by abs(w) instead. I'm guessing you've left out the...
  13. You could try posting to their Graphics Driver...

    You could try posting to their Graphics Driver bug forum. Don't know how active it is.

    https://software.intel.com/en-us/forums/graphics-driver-bug-reporting

    (I have a partner contact at Intel...
  14. Sounds like a GLSL compiler bug to me. It's...

    Sounds like a GLSL compiler bug to me. It's pretty easy to get the Intel compiler into a bad state where it throws a ton of errors; one shader of mine accidentally had a semicolon after an #endif;...
  15. Try normalizing the fragement shader inputs in...

    Try normalizing the fragement shader inputs in the fragment shader, rather than the vertex shader. Perhaps you're running into interpolation errors that are being exaggerated by the phong pow()...
  16. Replies
    6
    Views
    495

    I believe you need to use RGBA16UI on Intel. I...

    I believe you need to use RGBA16UI on Intel. I had a similar issue with RGB32I on the HD4600, and using RGBA32I fixed the problem.

    Edit: Yes, on Intel you must disable blending, or it'll fail to...
  17. It could be the preferred way to do things now in...

    It could be the preferred way to do things now in GL4.5. Why wait for another version?
  18. Replies
    8
    Views
    1,296

    Sure. When a shader is linked, its executable...

    Sure. When a shader is linked, its executable code is set in stone. This includes the code to produce gl_Position. If you change some shader-state parameters then you have to re-link the program (eg....
  19. Replies
    8
    Views
    1,296

    The first point is dependent on the compiler....

    The first point is dependent on the compiler. Certainly it seems that the Nvidia compiler does these sorts of optimizations. I guess there's nothing stopping it from doing those optimizations on...
  20. Replies
    8
    Views
    1,296

    When you link a program without separable...

    When you link a program without separable shaders, the Nvidia compiler flags any input varying data that the fragment shader doesn't use, and culls whatever computation they require from the previous...
  21. Yep, that'll work. You can also render it to...

    Yep, that'll work.

    You can also render it to your main window/FBO with color and depth writes disabled, and your depth test enabled. No extra resources, doesn't affect your main window or FBO.
  22. Replies
    5
    Views
    882

    You can still run into memory fragmentation...

    You can still run into memory fragmentation issues with 32b Windows, even if you're shy of the 1GB mark. We found that the address space randomization feature in more recent Windows version made this...
  23. Replies
    2
    Views
    757

    Besides two generations worth of texture...

    Besides two generations worth of texture improvements, Maxwell also has a large L2 cache (2GB vs 768MB). I suspect this would help reduce texture VRAM fetchs, especially if the map is somewhat larger...
  24. These features definitely do suggest a deferred...

    These features definitely do suggest a deferred renderer would be appropriate as Ruggero suggests. Transparency is the main feature on your list that is difficult to do with deferred rendering. Most...
  25. I'm fine with this as long as the non-DSA...

    I'm fine with this as long as the non-DSA functions are deprecated in, but not removed from, the core profile. The forward compatibility profile can remove them as it does with all deprecated...
Results 1 to 25 of 345
Page 1 of 14 1 2 3 4