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: carsten neumann

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. I'm not sure I understand what you mean with...

    I'm not sure I understand what you mean with "auto swap buffer mode". Buffers are not swapped automatically, it happens in response to you calling glutSwapBuffers(). Of course it only works when you...
  2. In general you "move" by translating the camera....

    In general you "move" by translating the camera. Can you try to describe in a bit more detail what is not working when you try to do that? In particular I don't quite understand what you mean with ?...
  3. Replies
    4
    Views
    222

    In practical terms sharing address space means...

    In practical terms sharing address space means that you are able to pass a pointer from application A to application B and B is then able to read the value that A has written there previously....
  4. Replies
    5
    Views
    251

    Stride should be 5 * sizeof(GLfloat) for both...

    Stride should be 5 * sizeof(GLfloat) for both glVertexAttribPointer calls - it is the number of bytes the GL has to jump to get from one vertex to the next, i.e. when interleaving attributes like you...
  5. Replies
    5
    Views
    452

    It probably does not find your texture file. The...

    It probably does not find your texture file. The file is most likely being looked for in the working directory (aka current directory) when your program executes - it is not necessarily the same...
  6. Replies
    3
    Views
    301

    You may want to take a look at the Getting...

    You may want to take a look at the Getting Started wiki page.
  7. Hmm, I suggest to write a function that can draw...

    Hmm, I suggest to write a function that can draw a circle at a given location. Then call that function in a loop that goes through the list of vertices.

    If the above is not helpful, please...
  8. Replies
    1
    Views
    364

    That's what a cube looks like under orthographic...

    That's what a cube looks like under orthographic projection when looking straight at a single face.
  9. That is a good point, open source (e.g. ParaView)...

    That is a good point, open source (e.g. ParaView) and commercial (e.g. Amira) visualization software can do this too.
  10. OpenGL can not help with that, since it is purely...

    OpenGL can not help with that, since it is purely a rendering API. You need an algorithm that can extract an iso surface (or iso line in the 2D case) from a scalar field; one algorithm that can do...
  11. I'm not sure that it is the reason for the...

    I'm not sure that it is the reason for the problem, but when asking OpenGL to write data to client memory (like glReadPixels does) the GL_PACK_* (not GL_UNPACK_*) pixel store settings are relevant.
  12. Replies
    1
    Views
    356

    See glGetFloatv...

    See glGetFloatv with pname = GL_MODELVIEW_MATRIX or GL_PROJECTION_MATRIX.
  13. So the GPU still has to perform a matrix times...

    So the GPU still has to perform a matrix times vector multiplication for each vertex - in other words you've not saved any work on the GPU. You can keep things more flexible without any loss of...
  14. Replies
    4
    Views
    472

    No, I meant the transformations that formed the...

    No, I meant the transformations that formed the image (the camera applies some projection to get light onto the sensor), those are the ones you'd invert to go from a pixel position to a real world...
  15. Replies
    6
    Views
    705

    That could be a coincidence. Have you checked the...

    That could be a coincidence. Have you checked the compile and link info log (glGetShaderInfoLog, glGetProgramInfoLog) for helpful messages?

    I meant writing it like this:



    vec4 color =...
  16. Replies
    4
    Views
    472

    I believe this type of problem falls into the...

    I believe this type of problem falls into the field of "computer vision" and you may have better luck asking in a forum that is dedicated to that topic - for example you could try the OpenCV (a...
  17. Before OpenGL supported generic vertex attributes...

    Before OpenGL supported generic vertex attributes there was a fixed set of them that you could specify (position, normal, color, secondary color, N sets of texture coordinates) and each had a...
  18. Replies
    6
    Views
    705

    Note that the built-in output variable is called...

    Note that the built-in output variable is called gl_FragColor (with '_' after gl).

    If you suspect the GLSL compiler to muck up something, you could try to assign the shader output (either built-in...
  19. Replies
    3
    Views
    427

    Hmm, that is not a term I'm familiar with - that...

    Hmm, that is not a term I'm familiar with - that being said, I don't think it is related to your specific problem: If I'm reading it correctly 'enableNormalColor' is only used in the function...
  20. Replies
    3
    Views
    444

    For completeness/nitpicking (;)) sake:...

    For completeness/nitpicking (;)) sake: glGenBuffers does not create buffer objects, it only reserves names for them. The actual object (i.e. the thing where the implementation stores state) is...
  21. Replies
    4
    Views
    522

    My comment was targeted at these lines that you...

    My comment was targeted at these lines that you posted:


    glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColour0);
    glLightfv(GL_LIGHT0, GL_DIFFUSE, lightPos0);


    The variable names suggest you want to...
  22. Replies
    4
    Views
    522

    If you want to set a light's position (or...

    If you want to set a light's position (or direction for a directional light source) you need to pass GL_POSITION as second argument to glLightfv.
  23. There is one non-indexed bind point and a number...

    There is one non-indexed bind point and a number of indexed bind points. The non-indexed bind point allows you to manipulate the bound buffer in various ways, for example you can map its data storage...
  24. Replies
    1
    Views
    335

    On nvidia hardware there are the two extensions...

    On nvidia hardware there are the two extensions WGL_NV_DX_interop and WGL_NV_DX_interop2 - I don't know enough about DirectX to say if there are options for other vendors as well.
  25. In code like: ...

    In code like:


    glBindBuffer(GL_UNIFORM_BUFFER, uniformBufferId);
    glBindBufferBase(GL_UNIFORM_BUFFER, bindingPoint, uniformBufferId );


    the glBindBuffer is not needed,...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4