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

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    620

    Yes, but specifying an unsupported value for a...

    Yes, but specifying an unsupported value for a specific format would surely throw an error, right? Multisampling seems solid enough to at least tell you when you specify an invalid count. Or would...
  2. Replies
    10
    Views
    620

    That should throw an GL_INVALID_VALUE...

    That should throw an GL_INVALID_VALUE error (and an GL_INVALID_OPERATION if it's not supported by the format) upon creating the storage.

    I'm actually curios about arekkusu's comment. In what...
  3. If you have all of your sprites, why not store...

    If you have all of your sprites, why not store all the "alive" bugs in a vector somewhere. When you fire a bullet, keep track of it and its up-to-date bounds.
    Each animation frame, just loop over...
  4. Replies
    33
    Views
    1,490

    Yes. Avoid calculating all of that stuff...

    Yes.
    Avoid calculating all of that stuff multiple times if the result is always the same and your RAM allows it.
  5. Replies
    10
    Views
    620

    I assume the RBO is used by a FBO, so maybe a...

    I assume the RBO is used by a FBO, so maybe a glGet with GL_SAMPLES with the FBO bound might work?

    L.E.: @remdul, you are correct, sorry. Haven't used RBOs in a while. The docs say that it should...
  6. Replies
    33
    Views
    1,490

    I don't think any tutorial's main concern is...

    I don't think any tutorial's main concern is efficiency as much as readability. Add animations into the mix, which are math intensive and it becomes really hard to have both easy to read code and...
  7. Replies
    5
    Views
    228

    True, I wasn't expecting him to actually start...

    True, I wasn't expecting him to actually start doing all of that immediately (hence the "Or even better"), just spreading the word. Even a simple "uniform mat4 transforms[MAX_WHATEVER]; uniform int...
  8. Replies
    33
    Views
    1,490

    Now add multiple, different nodes, each with...

    Now add multiple, different nodes, each with their unique animations all in view. Won't be pretty.
    I highly recommend taking a look at Scott's assimp animation importer. Hes approach is to...
  9. Replies
    33
    Views
    1,490

    OK, for your debug post: Me, and I assume most...

    OK, for your debug post:
    Me, and I assume most users that still post around here, either haven't touched an OpenGL tutorial in a long time, so we have no idea what OGL's code is all about or how...
  10. Replies
    4
    Views
    213

    There's an example in the Wiki: "Similarly, when...

    There's an example in the Wiki: "Similarly, when uploading texel data to the cubemap array, the parameters that represent the Z component are layer-faces. So if you want to upload to the positive Z...
  11. A line by line explanation will not be of any use...

    A line by line explanation will not be of any use to you if you can't understand that basic chunk of code. I assume you're just starting out with programing and lack OOP concepts. It has nothing to...
  12. Hint: There's a famous expression floating...

    Hint: There's a famous expression floating everywhere: "OpenGL is a huge state machine".
    Answer: You are modifying your modelview matrix with translate, but not resetting it every frame. So your...
  13. Replies
    5
    Views
    228

    Or even better, create a buffer that contains the...

    Or even better, create a buffer that contains the transforms for all of your meshes and select the appropriate one in the shader. Update as needed with the highest performing method you have...
  14. Replies
    33
    Views
    1,490

    After looking at assimp's documentation, it's...

    After looking at assimp's documentation, it's coded to only load one XYZ.md5anim file corresponding to the XYZ.md5mesh file. However, nothing's stopping you from manually loading all of the animation...
  15. Replies
    9
    Views
    480

    I initially missed his other post where he...

    I initially missed his other post where he attempted exactly what you described:
    showthread.php/186165-Changing-Camera-Position?p=1266051&viewfull=1#post1266051
  16. Replies
    33
    Views
    1,490

    If it helps, I just preload all of them when I...

    If it helps, I just preload all of them when I load my models. I'm using a convention of "one assimp scene <-> one model (with multiple meshes)" so all of the animations belong to a single model...
  17. Replies
    3
    Views
    261

    Because maths get in the way

    Because maths get in the way
  18. Replies
    2
    Views
    242

    Well, first of all, you should stop using the...

    Well, first of all, you should stop using the fixed function pipeline as anything you'll learn from it will be pretty outdated from the start. gluLookAt being a fine example.
    With that said, you...
  19. Replies
    9
    Views
    480

    ... is a perfectly valid answer. What are...

    ... is a perfectly valid answer.


    What are you having difficulties with?
    Drawing the planes and positioning them?
  20. GLFW + GLEW_MX + multithreading OpenGL

    There is a way to use multiple contexts with GLFW.

    Make a second invisible window that has the main window as the parent (the last parameter is for list sharing)
    E.g.: GLUtil::_loaderWindow =...
  21. Replies
    1
    Views
    798

    Hi! Check out Jan's extremely useful GLIM...

    Hi!

    Check out Jan's extremely useful GLIM library (search for Immediate Mode for OpenGL 3.0 here on the forum ).

    Been using it for over 2 years to render debug primitives. Adapting it for 3.3+...
Results 1 to 21 of 23