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

Search: Search took 0.00 seconds; generated 50 minute(s) ago.

  1. Replies
    9
    Views
    895

    Sure thing, I didn't think it'd be all that...

    Sure thing, I didn't think it'd be all that important since it's just a math error and people tend to use libraries for collision detection, but here's how I modified my function for whoever's...
  2. Well I think you could create polygons and fill...

    Well I think you could create polygons and fill the polygons instead of the lines. You can use glu tasselator but it's obsolete. (see here: http://glprogramming.com/red/chapter11.html)

    Otherwise,...
  3. Replies
    9
    Views
    895

    Fixed the issue, thanks!

    Fixed the issue, thanks!
  4. Replies
    9
    Views
    895

    Ha, I had no idea glm had intersection functions,...

    Ha, I had no idea glm had intersection functions, that's actually pretty cool :D. Though, I already got this far with my own ray-sphere intersection so I'm just gonna stick to it for now because it...
  5. Replies
    9
    Views
    895

    Yeah, still can't pick it up from far away.

    Yeah, still can't pick it up from far away.
  6. Replies
    9
    Views
    895

    Mouse picking with OpenGL

    Hello, I know this may not be an OpenGL question, though I assume several users on this forum did mouse picking in their graphics applications before and I was hoping I could get some help regarding...
  7. Hello Erick, I think I know what's going on with...

    Hello Erick, I think I know what's going on with your program. The glUniform calls change the currently bound program's uniform state. So, for example, when you do this:



    void...
  8. Well after spending a whole week attempting to...

    Well after spending a whole week attempting to fix this nonsense, I think I have finally found out the root of the problem I was and still (technically speaking) having. Long story short, it turned...
  9. Thank you for your replies, sadly I still haven't...

    Thank you for your replies, sadly I still haven't been able to find a solution to the problem although I'm getting close (I think). I am using glew and freeglut for my context and I looked into...
  10. Hey GClements, here's my shader.cpp: ...

    Hey GClements, here's my shader.cpp:



    #include "Shader.h"
    #include <vector>

    using std::getline;
    using std::cout;
  11. Odd reflection problem occurs yet again!

    Annnnnd I'm back with yet the same odd reflection problem which I had few days ago. :tired:
    Recently I tried running my game on a windows operating machine and everything was invisible. When I turn...
  12. I have modified my texture2D() function with...

    I have modified my texture2D() function with texture() and it now works on the other computer! Thank you very much! I had no idea that texture2D was deprecated, maybe because there are tons of...
  13. Very odd problem with Reflection vector

    Hey guys, I am experiencing a bizarre problem with my reflection and I hope someone here could tell me why this is happening. I have a cubemap and I am applying a reflection to several objects in my...
  14. How to render objects more efficiently?

    Hello, I have a scene that consists of 1 player object, 1 platform, 1 enemy, and 1 background. Currently, this is how my render function looks like:




    void Sprite::Render()
    {
    ...
  15. Fixed it thank you for the examples! Your work...

    Fixed it thank you for the examples! Your work looks really nice. I hope I'll be able to code like that soon. :)
  16. Hey John, thank you for your answer. So,...

    Hey John, thank you for your answer.

    So, here's what I have managed so far:


    void Sprite::DrawGeometry(Vertex* Vertices, unsigned int numOfVertices)
    {
    GLubyte m_Background[] = { 0, 1,...
  17. How can I draw two objects? (Newbie)

    Hello guys, basically I am trying to draw a background and a player in front of it. I don't know whether I should create a new VBO or VAO for each different object. Here's what I have so far:

    In...
  18. Replies
    2
    Views
    625

    Trouble displaying texture

    Hello everyone, I am trying to load texture using the SOIL library and display it on screen. I'm trying to make a simple 2D game but for some reason I'm unable to load the background. Could anyone...
  19. Reply

    Hello, thank you for your reply. I managed to get it to change colors. What I did was, I made it switch between one color output to another per time using if-else clause in my fragment shader....
  20. Struggling to color each vertex of Hexagon

    Hello everyone, I am a new registered user.

    I just recently started learning OpenGL and I come from a WIN32 API background. To cut straight to the chase, I am stuck and I am here to ask for...
Results 1 to 20 of 20