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

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    820

    yep, i checked the numbers inside the vector. ...

    yep, i checked the numbers inside the vector.

    anyway, i started off from scratch and managed to get instancing to work!
  2. Replies
    12
    Views
    820

    thank you guys, i'll probably will add a camera...

    thank you guys, i'll probably will add a camera that i can control with mouse to check i'm not missing anything, and will use a similar code to this to work on 2d to diagnose the issue.
  3. Replies
    12
    Views
    820

    #define SIZE 5 I did what you said, but the...

    #define SIZE 5


    I did what you said, but the result is the same as the beginning, only one cube is being rendered.
  4. Replies
    12
    Views
    820

    here is my fragment shader: #version 330 core...

    here is my fragment shader:

    #version 330 core

    out vec3 color;

    void main()
    {
    color = vec3(0, 0, 0);
    }
  5. Replies
    12
    Views
    820

    Instancing Doesn't Display

    hello, i followed this tutorial for project i'm working on, but somehow only one cube is being drawed.
    here is the class source:

    class MainWindow
    {
    private:
    GLFWwindow *window;

    unsigned...
  6. Replies
    5
    Views
    700

    Insane lags when drawing cubes

    hello guys,
    I'm trying to create a game that has tons of cubes ( around millions or even more ), so i have read about instancing and i have done what the tutorial said.
    but when i add 100,000 cubes...
  7. Replies
    2
    Views
    756

    i have tested what you said with my project and...

    i have tested what you said with my project and it FINALLY worked!
    i didn't know about glm::length, i really should spend some time in GLM library xD
  8. Replies
    2
    Views
    756

    Camera and Cube Overlapping

    Hello, I'm trying to create a function that check if my camera is touching one of the cubes ( array ).
    I thought about doing distance between MVP / View Matrix and Model and if it's equal to "0 +...
  9. Replies
    2
    Views
    346

    that's what happend when i'm trying for over an 2...

    that's what happend when i'm trying for over an 2 hours to fix that. i start missing simple things...
    i added the position to the constructor and it worked ! :)
  10. Replies
    2
    Views
    346

    Cubes array shows only one Cube

    hello, i'm creating a simple game, and i'm trying to display few cubes in the screen, but somehow my cube array is showing only one cube, doesn't matter how big the array is.
    here is my source:
    ...
Results 1 to 10 of 11