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: Agent D

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    91

    I'm not sure if GL/glx.h is guaranteed to include...

    I'm not sure if GL/glx.h is guaranteed to include GL/gl.h that contains the actual decralations, but even if, some functions
    might not be declared in the gl.h header (i.e. the header is written...
  2. Replies
    2
    Views
    238

    What "hasn't worked"? You later mention crashes....

    What "hasn't worked"? You later mention crashes. If it crashes on all machine except your development system, you better go and fix that first. What help could it be if other people try it, when you...
  3. Replies
    3
    Views
    290

    First of all, since OpenGL(R) is a specification...

    First of all, since OpenGL(R) is a specification and not a library, memory leeks are problems of the specific implementations (e.g. Nvidia(R) or AMD drivers). How did you measure increased memory...
  4. What does that mean? Which one of the threads...

    What does that mean? Which one of the threads calls the function?


    Is it by any chance a single buffered context? I had a similar problem and it turned out that for single buffered contexts...
  5. glLoadIdenty does not multiply with the identity...

    glLoadIdenty does not multiply with the identity matrix (that would be completely pointless), it overwrites the current matrix with the
    identity matrix. If you set up a perspective projection matrix...
  6. The simplest way to visualize the texture...

    The simplest way to visualize the texture coordiantes is to write them out as color in the fragment shader.

    For 2D texture coordinates, the s component ends up in the red channel and the t...
  7. Replies
    1
    Views
    245

    You can use some bounding shape (like a...

    You can use some bounding shape (like a rectangle, or a box in 3D) to quickly determine if an object could
    be hit or not, which is of course much faster than processing each potentially visible...
  8. Replies
    7
    Views
    692

    You don't need a special software to write C code...

    You don't need a special software to write C code or programs that uses OpenGL(R). Any text editor will do.

    You can take whatever text editor or IDE you like.

    Visual Studio(R) is an IDE....
  9. Thread: ufo

    by Agent D
    Replies
    8
    Views
    606

    To sumarize: You post a large blob of code, say...

    To sumarize: You post a large blob of code, say that there is a 6 line function you don't understand and ask for an explanation.
    You previously posted another snippet from the code above, demanding...
  10. Replies
    14
    Views
    701

    First of all, there is no such thing as a camera...

    First of all, there is no such thing as a camera in OpenGL(R). The gluLookAt function is a function from the old utility
    library that pieces together a view matrix from the input and lookat...
  11. GCC (or clang) lets you specify additional linker...

    GCC (or clang) lets you specify additional linker input directories using the "-L" option in the form of "-L<path>".
  12. Is the library location (/usr/lib/i386-linux-gnu)...

    Is the library location (/usr/lib/i386-linux-gnu) set by a repository package or did you manually move it there?

    Have you looked inside that directory and tried to set the linker path for the...
  13. Replies
    2
    Views
    535

    How do you compute the projection matrix?

    How do you compute the projection matrix?
  14. "left multiplying" a vetor with a matrix is when...

    "left multiplying" a vetor with a matrix is when I write the vector to the left of the opartor and the matrix to the right.
    In this case, the vector must be a row vector and the result is a row...
  15. You need to perform the following steps: ...

    You need to perform the following steps:


    Learn the programming language used in this program
    Learn OpenGL(R)
    Read the code


    "Here have some code, explain it to me" won't work. Even...
  16. How the vectors are stored in memory and how they...

    How the vectors are stored in memory and how they are accessed is irrelevant.

    GLSL interprets the vec2, vec3 and vec4 data types as column vectors.

    Try it out. If you flip it around, your...
  17. Replies
    16
    Views
    901

    Do you mean that nothing is drawn or that the...

    Do you mean that nothing is drawn or that the color is not the one you want?

    Also, (0.0,1.0,1.0) is more turquoise than blue.
  18. No. Since v_position is a column vector, we...

    No. Since v_position is a column vector, we right-multiply it with the matrix. If it was a row vector, we would left multiply it with the
    transpose matrix, to get the transpose of the result (i.e....
  19. Replies
    2
    Views
    255

    Your shader sources are probably empty because of...

    Your shader sources are probably empty because of this:


    void parse_file_into_str(const char* file_name, std::string shader_str)
    {
    std::ifstream file(file_name);
    while (file.good())
    ...
  20. This is probably the simplest vertex shader...

    This is probably the simplest vertex shader applying a transformation:


    #version 330

    uniform mat4 matrix;

    layout(location=0) in vec4 V_POSITION;

    void main( )
  21. As has been suggested to you many times before:...

    As has been suggested to you many times before: Read a beginner tutorial.

    You need to get at least some basic knowledge of linear algebra.

    Rotating a vector around the origin is a linear...
  22. Replies
    3
    Views
    334

    AFAIK older versions (and compatibillity profile)...

    AFAIK older versions (and compatibillity profile) did support color index mode and color index textures, but current, core profile GL
    does not support that anymore.

    But it can be easily emulated...
  23. Thread: xz-plane Grid

    by Agent D
    Replies
    2
    Views
    360

    Simple: Draw a bunch of lines. Similar to drawing...

    Simple: Draw a bunch of lines. Similar to drawing triangles, except you use the GL_LINES mode instead of GL_TRIANGLES.

    Use a simple vertex shader that only applies a transformation and a fragment...
  24. If you do not intend to do any mesh processing or...

    If you do not intend to do any mesh processing or collision detection, etc..., keeping track of faces or other high level topology data
    is completely useless overhead.

    As long as you only want to...
  25. Replies
    4
    Views
    457

    Considering your use case, why don't you simply...

    Considering your use case, why don't you simply use a textured rectangle? You draw stuff locally in memory and update portions of
    the texture that change. You use nearest-neighbour sampling for the...
Results 1 to 25 of 260
Page 1 of 11 1 2 3 4