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

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    486

    Unfortunatelly still no luck. I too noticed,...

    Unfortunatelly still no luck.
    I too noticed, that only returning type differs. Also the thing is, the function which returns genType isn't even documented at their website. It only mentions the one...
  2. Replies
    2
    Views
    486

    GLM fast sqrt functions ambiguity

    Hello.

    I would like to use some of fast* functions of GLM framework (latest version for this day), but I can't overpass ambiguity problem.
    It always screams that function is ambiguous, even if I...
  3. Replies
    2
    Views
    379

    That's what i thought. I tried the fast way to...

    That's what i thought. I tried the fast way to change display order, but I must have messed something up. I will try to do it the right way this time and I will see if it work.
    Thank you for help :)
  4. Replies
    2
    Views
    379

    Problems with alpha channel on textures

    Hello

    I'm trying to create alpha blending on textures, but I can't get it to work.
    I have a texture with alpha channel, compressed with DXT5 (I've tried 3 and 1 as well). Texture is loaded with...
  5. You could give a try to ray/triangle intersection...

    You could give a try to ray/triangle intersection algorithm, for example Moller-Trombore.
    First you have to calculate ray direction, then using algorithm mentioned above you can get the distance of...
  6. Replies
    5
    Views
    1,106

    I, by myself use Glew and Glfw libraries, they...

    I, by myself use Glew and Glfw libraries, they have .lib binaries attached with them as far as I remember, they all have to be linked, but don't forget about linking OpenGL lib as well.
    My linking...
  7. Replies
    1
    Views
    486

    Problem kind of solved itself. The cause was...

    Problem kind of solved itself.
    The cause was that, the array apparently was deleted, because it was not used, even if it was. The solution to this was just to use the array somewhere before, like...
  8. Try setting position2 to -sin (alpha * 2.0), -cos...

    Try setting position2 to -sin (alpha * 2.0), -cos (alpha * 2.0). Or any other value to multiply with.
  9. Perhaps you should offset alpha a bit in...

    Perhaps you should offset alpha a bit in position2, not just change the sign of sine or cosine.
  10. Replies
    1
    Views
    486

    Array indexing in for loop

    As my struggle with uniform arrays of structs led me to nowhere, I decided to split those arrays to single uniforms, this time, the locations are caught right, but I encountered a problem, bug...
  11. I have read it should point to type, instead of...

    I have read it should point to type, instead of variable itself, anyway I checked if it would work but with no success.
  12. glGetUniformIndices always returns invalid index

    Hello.

    I'm once again stumbling with glGetUniformIndices function, which constantly returns 0xFFFFFFFF on every index, no matter what the name is.
    My function call looks like this:


    ...
  13. Replies
    5
    Views
    1,253

    I got it, I just wanted to simplify the question,...

    I got it, I just wanted to simplify the question, and it went in wrong direction :)

    What I understood, good thing would be to check ray-triangle intersection, where there are three rays - for the...
  14. Replies
    5
    Views
    1,253

    AABB-Triangle intersection point

    Hello.

    I'm in need of testing if an axis oriented bounding box collides with a triangle (set of triangles as a terrain), and if it does - in which point. I found few algorithms on the internet,...
  15. Replies
    1
    Views
    552

    Detecting mouse position on object

    I'm trying to implement detection of mouse position on a model - for clicking or highlighting models, when mouse is over them, with possibility of reading the world coordinates of cursor. I've got it...
  16. Thank you, I will use that function. The vertex...

    Thank you, I will use that function. The vertex processing should not be a problem, because I only render a simple cube object, made of 8 vertices.
  17. Render specified amount of pixels to framebuffer

    Hello.

    Is there any way, to render only specified amount of pixels to a framebuffer? Something, like using glViewport, that would crop the scene.
    Such thing, would be used in checking which...
  18. I'm using version 4.30 and the array is just an...

    I'm using version 4.30 and the array is just an array of vec3s, not a sampler array.
  19. Error C5025: lvalue in assignment too complex

    I'm struggling with this error occuring in assignment array indices. Internet has given few different solutions that didn't really work.

    Error's name would suggest that the expression in index...
  20. I meant A as a plane :) It actually works fine...

    I meant A as a plane :)

    It actually works fine when I try with test values. I must did something wrong in the actual code.
    Big thanks!
  21. I actually tried doing it this way, but it didn't...

    I actually tried doing it this way, but it didn't work.

    Perhaps an explanation will be better than a picture :)

    Try to imagine a a vertex with a normal. Then, imagine a plane that is...
  22. Finding if a point is in front or behind a plane

    The question is how to find, if specified point is behind a plane. And by plane I rather mean a point with a given direction.

    Let's say the plane is a point A with direction dirA, and the point we...
  23. Replies
    3
    Views
    1,764

    So what should be done if I want to look straight...

    So what should be done if I want to look straight up or down? No idea for a solution actually comes to my head.
  24. Replies
    3
    Views
    1,764

    Glm::lookAt crash

    Hello

    I recently have experienced crash using glm::lookAt function. I'm not sure what is wrong, but it occurs only when I pass camera location and target both with the same Z value. For example...
  25. So basically I can use glFramebufferTextureLayer...

    So basically I can use glFramebufferTextureLayer with texture array, right? I didn't know theese two can be combined. I guess that solves my problems. Thank you for pointing me at right direction!
Results 1 to 25 of 38
Page 1 of 2 1 2