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.01 seconds.

  1. Replies
    1
    Views
    178

    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...
  2. Replies
    7
    Views
    508

    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....
  3. Thread: ufo

    by Agent D
    Replies
    8
    Views
    459

    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...
  4. Replies
    14
    Views
    575

    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...
  5. 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>".
  6. 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...
  7. Replies
    2
    Views
    425

    How do you compute the projection matrix?

    How do you compute the projection matrix?
  8. "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...
  9. 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...
  10. 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...
  11. Replies
    16
    Views
    756

    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.
  12. 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....
  13. Replies
    2
    Views
    224

    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())
    ...
  14. 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( )
  15. 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...
  16. Replies
    3
    Views
    288

    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...
  17. Thread: xz-plane Grid

    by Agent D
    Replies
    2
    Views
    317

    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...
  18. 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...
  19. Replies
    4
    Views
    397

    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...
  20. Replies
    4
    Views
    397

    First of all, if you want "big pixels", why don't...

    First of all, if you want "big pixels", why don't you use "big pixels" by switching to a lower resolution?

    Second, your memory usage could be improved by using an indexed rendering, i.e. you have...
  21. Replies
    2
    Views
    402

    You need to install the drivers for your graphics...

    You need to install the drivers for your graphics card.

    In your screenshot, it says "OpenGL 1.1 (GDI Generic with 2 ext.)". This is the default, built in, fallback software driver
    that Windows(R)...
  22. Replies
    9
    Views
    889

    First of all, you have to find out what you are...

    First of all, you have to find out what you are actually trying to accomplish. I can't think of any application that will ever need all unicode code points at the same time.

    If you want to use...
  23. Replies
    5
    Views
    1,161

    muthuveera, you might want to re-read the...

    muthuveera, you might want to re-read the original post that startet this thread.

    The function you pasted here uses deprecated glBegin/glColor/glVertex/glEnd calls and the circle it produces is...
  24. Replies
    7
    Views
    682

    You have to understand how the processor...

    You have to understand how the processor architecture that this is run on works. Branches in general are very bad for performance.

    Shader executions are basically divided into groups, where each...
  25. What problem? This function call binds "position"...

    What problem? This function call binds "position" to vertex attribute array 0. Above you configured the vertex attribute 0 to be read from the specifed VBO.


    There is your problem. You are not...
Results 1 to 25 of 254
Page 1 of 11 1 2 3 4