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

Search: Search took 0.00 seconds.

  1. That did it. Don't know why I missed this myself,...

    That did it. Don't know why I missed this myself, I read over it so many times to check if it is set correct -.-

    Thank's a lot! Now everything works as it is supposed too!
  2. First off thanks again! I made it work to only...

    First off thanks again!
    I made it work to only use one matrix and manipulate the position in the way that it is a quad now w/o touching the vertex data nor the viewpoint.

    However my Coordinates...
  3. Thanks a lot for the quick and helpful answers! ...

    Thanks a lot for the quick and helpful answers!

    That helped a lot and will keep me busy for the weekend! :)
  4. Thank you very much for the reply! Yep,...

    Thank you very much for the reply!



    Yep, that did it. Thank's for the hint!

    Now I found my right offset for most of the tiles.
    The weird thing is, that the translation for the outer "line"...
  5. Instanced Drawing with a texture atlas results in a weird output

    Hello,

    in short: I am trying to draw a tile map with instanced drawing and the different tiles are all within one texture atlas.

    My original idea was to create a tile object, instance-draw it...
  6. Replies
    8
    Views
    608

    First off: Thank you very, very much for the kind...

    First off: Thank you very, very much for the kind help and the time you sacrifice for this!

    Okay, so I did this in Excel as it seems there is a problem with my math(understanding)..

    I set my...
  7. Replies
    8
    Views
    608

    Well I switched Up and Back so the matrix is now:...

    Well I switched Up and Back so the matrix is now:
    (X) Right.x;Right.y;Right.z;0
    (Y) Up.x;Up.y;Up.z.0
    (Z) Back.x;Back.y;Back.z;0
    (W)0;0;0;1

    however it still stays weird as soon as the cursor...
  8. Replies
    8
    Views
    608

    Ok.. I tried it today and I guess I have one more...

    Ok.. I tried it today and I guess I have one more question.

    I calculated the "Object Coord. System" (Back, Right, Up) as you said and plugged it into a matrix as:
    Right.x, Right.y, Right.z, 0...
  9. Replies
    8
    Views
    608

    Thanks a lot! This way it sounds much more...

    Thanks a lot! This way it sounds much more intuitive now.. I'm feeling a little bit stupid, especially because I did the same thing with a camera already, but it didn't came to my mind to adapt that...
  10. Replies
    8
    Views
    608

    Object Looks at Cursor

    So I want to rotate a 2D object so that it is always "looking" at the cursor.

    I am using glad; glfw; glm; SDL2 for the mouse capturing;

    I tried this quite a time now and I am definitly stuck...
Results 1 to 10 of 10