foobarbazqux

Members
  • Content count

    28
  • Joined

  • Last visited

Community Reputation

197 Neutral

About foobarbazqux

  • Rank
    Member
  1. GL_QUADS is deprecated, you probably want to use pairs of triangles instead.
  2. OpenGL Tessellation API bug?

    I am using a Radeon 5770 on x64 ubuntu with catalyst 10.11. My current code does * glPatchParamteri(GL_PATCH_VERTICES,4); * glUseProgram(fancyPantsTesselationProgram); * DrawMySuperAwesomeTesselatedTerrain(); * glUseProgram(boringProgramThatDoesntUseTesselation); * glDrawElements(GL_TRIANGLES,foo,bar,baz); I never set GL_PATCH_VERTICES back to 3 and everything appears to work.
  3. Pierre Boudier works for ATI and says to use shorts Link
  4. Quote:Original post by Kambiz As far as I know, you cannot, because the triangles are not guaranteed to get rendered in order. The OpenGL specification does not guarantee that and I don't think that D3D does. Triangles might also get rasterized in parallel. The 4.0 core spec p.5 says Quote: Commands are always processed in the order in which they are received, al- though there may be an indeterminate delay before the effects of a command are realized. This means, for example, that one primitive must be drawn completely before any subsequent one can affect the framebuffer.
  5. Quote: I've been searching on google for an extension that would allow to have separate blend modes for each render target, so I could enable blending just on target 0, and all others wouldnt have blending. I think that functionality is available in http://www.opengl.org/registry/specs/EXT/draw_buffers2.txt, and is also available opengl 3.0 and above.
  6. Possible to Render to a TBO...?

    Quote: You should be able to bind it as a VBO and render to it from the vertex shader using EXT_transform_feedback, or bind it as a PBO and use glReadPixels to copy a portion of the framebuffer into it, or (at least in theory) bind it as a texture and render to it with an FBO. The 4.0 Core spec(I haven't checked any others) for FramebufferTexture(p. 279) says Quote: An INVALID_OPERATION error is generated if texture is the name of a buffer texture.
  7. Quote: I'm doing some image filtering using shaders, and then try to get the result with glGetTexImage. The problem is the function always returns zero's, but I'm sure the texture contains the right values: If I use the texture to render an object everything looks fine. I had a similar problem yesterday, I found that binding the fbo to GL_READ_FRAMEBUFFER and using glReadPixels gave the right result.
  8. Hardware Shadow Mapping && FBO

    On the depth texture try something like glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_R_TO_TEXTURE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_FUNC, GL_LESS); //or GL_LEQUAL
  9. Soft shadows without a shader?

    You can try setting the GL_MIN_FILTER and GL_MAG_FILTER to GL_LINEAR. According to the OpenGL spec "If the value of TEXTURE MAG FILTER is not NEAREST, or the value of TEXTURE MIN FILTER is not NEAREST or NEAREST MIPMAP NEAREST, then r may be computed by comparing more than one depth texture value to the texture R coordinate. The details of this are implementation-dependent, but r should be a value in the range [0, 1] which is proportional to the number of comparison passes or failures." I've tried this on NVIDIA cards and it looks pretty good.
  10. Have you read The continuous world of dungeon siege. It has an interesting approach to solving problems with floating point precision.
  11. Platform and language?

    Linux with SLIME/SBCL
  12. Your Epitaph

    *NULL;
  13. What gives us the right to eat other creatures?

    Quote:What gives us the right to dominate and industrize other animals, turning them into products such as meat, milk, fur, glue and others. Eris
  14. Westboro Baptist Church Protest Video

    That woman is incredibly rude. Talking over people is the height of impoliteness.
  15. Post random facts about yourself

    I am bisexual I am listening to Triple J I want to apply for Google summer of code to do some computational chemistry stuff with LispNYC. I have a partial prototype but I havent't even started my written application. I ended up in hospital From NYE 2004-2005. It was drug related. I read threads started by usenet trolls, even though I know it's a waste of time. I am chemistry student and I suck at practical work. I am Legionannaire in the Legion of Dynamic Discord. FIVE TONS OF FLAX [Edited by - foobarbazqux on April 30, 2006 7:30:18 PM]