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

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    292

    Yes of course you are right. I dont know what I...

    Yes of course you are right. I dont know what I was thinking. Its too late at night...
  2. Replies
    5
    Views
    292

    How about: 1) Render red cube 2) Do the glow...

    How about:
    1) Render red cube
    2) Do the glow effect
    3) Render yellow cube

    This looks like the natural solution. Why is this not an option to you?
  3. Replies
    6
    Views
    232

    And what programming language are you using with...

    And what programming language are you using with GLFW?
    What kind of parameters do you want to pass?
    Can you give us a specific example of what you would like to do? Perhaps with code or pseudo code?
  4. Replies
    6
    Views
    232

    OpenGL doesnt have anything to do with keyboard,...

    OpenGL doesnt have anything to do with keyboard, mouse or other devices. OpenGL is a standard for outputting graphics only. What you are probably using is some kind of framework that handles the...
  5. Replies
    1
    Views
    214

    Push your current matrix, manipulate it with the...

    Push your current matrix, manipulate it with the translatef / rotatef calls, draw the sprite you want to have rotated and then pop the matrix again before drawing the other sprites.
  6. I dont know if this is the best solution (it...

    I dont know if this is the best solution (it possibly isnt) but you could render your entire scene into a texture, then render that texture across the entire screen with a fragment shader that...
  7. But do you have an OpenGL related question?

    But do you have an OpenGL related question?
  8. Replies
    1
    Views
    207

    Probably in your code, but we can not know until...

    Probably in your code, but we can not know until we see it.
  9. Replies
    5
    Views
    482

    I would suggest not using a texture. Instead,...

    I would suggest not using a texture. Instead, send the color for each cell in a VBO.
    I assume the positions of your cells on screen are static. In this case you can have separate buffers for the...
  10. Thread: Drawing a house

    by Cornix
    Replies
    2
    Views
    445

    I suggest you use something other than OpenGL for...

    I suggest you use something other than OpenGL for that. If you want to learn OpenGL, read a tutorial or book or watch a video series. If you want to get simple results fast use a framework build on...
  11. Replies
    11
    Views
    1,017

    With VSync enabled your render loop should block...

    With VSync enabled your render loop should block when swapping buffers. This will also block your application and thus reduce CPU load.
    If you dont have VSync enabled and you dont do any Thread...
  12. Thread: simple 2D scene

    by Cornix
    Replies
    1
    Views
    270

    I would suggest putting all static images (like...

    I would suggest putting all static images (like backgrounds, etc) in one VBO and all dynamic images (animated sprites, moving objects, etc) in a second VBO. If you have any translucency you should...
  13. Replies
    5
    Views
    980

    OpenGL is a standard, not a tool or a library or...

    OpenGL is a standard, not a tool or a library or anything like that. You can use it with anything as long as you have a graphics card and a driver which implements the OpenGL standard. I would...
  14. I think you would have to show us some of your...

    I think you would have to show us some of your actual code. Try to narrow your code down to the smallest program that reproduces your problem. There are plenty of possible reasons for your problem,...
  15. Replies
    15
    Views
    1,352

    It is one part of a complete shader program. A...

    It is one part of a complete shader program. A shader program is at least a vertex and a fragment shader. The vertex shader is run once per vertex and the fragment shader is run once per fragment. A...
  16. What exactly are you rendering? One big quad?...

    What exactly are you rendering? One big quad? Triangle?
    Why exactly can you not "slice" the texture by rendering more triangles? You shouldnt even need any custom glsl code for that.
  17. LWJGL is just a simple java binding for OpenGL,...

    LWJGL is just a simple java binding for OpenGL, GLFW, OpenCL, OpenAL and some other utility libraries. But python and java are easy to work together with. There are plenty of bindings for that. Of...
  18. Your requirements do not look like you actually...

    Your requirements do not look like you actually want to work with low-level openGL. I would recommend a slightly higher level API for that. I dont know what programming language you want to use but...
  19. Replies
    4
    Views
    356

    This should not have anything to do with Linux,...

    This should not have anything to do with Linux, Windows or whatever OS. The only important factors are the power of the hardware you use, the manufacturer and the drivers.

    Do I read your code...
  20. Replies
    9
    Views
    1,709

    What the others said is all true. I just want to...

    What the others said is all true. I just want to add that OpenGL is only a tool. You should use it as much as you actually need it. Look at the kind of application you want to develope and then...
  21. Thread: Bad performance

    by Cornix
    Replies
    3
    Views
    429

    Probably a lot. There is many many things you can...

    Probably a lot. There is many many things you can do wrong when working with OpenGL but without seeing your code we can not really say for sure.
    Just remember to do as little as possible during your...
  22. Replies
    2
    Views
    339

    Loading has nothing to do with OpenGL. Only...

    Loading has nothing to do with OpenGL. Only uploading to the driver must be done on the main thread (or a thread with a shared context). You can load as much as you like on a separate thread, pass...
  23. I would advise you to make it dynamic. Build it...

    I would advise you to make it dynamic. Build it in a way that your application will automatically increase / decrease the number on the fly based on FPS. This would be the most solid and accurate...
  24. Replies
    8
    Views
    543

    Errors are buffered. The INVALID_ENUM is...

    Errors are buffered. The INVALID_ENUM is generated at some point in your program and kept until you call glGetError() for the first time. It doesnt matter if you call it immediately after the call...
  25. Replies
    8
    Views
    543

    Yes exactly. Some argument which you pass to some...

    Yes exactly. Some argument which you pass to some method is wrong. To find out which it is you have to call glGetError() after every opengl call. When you found out which method produces the error...
Results 1 to 25 of 153
Page 1 of 7 1 2 3 4