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

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    822

    Thank you (and everyone else) for all of the...

    Thank you (and everyone else) for all of the feedback.

    Since I am a beginner maybe my thinking isn't correct on this but I will share it in hopes of hearing what experts have to say on the matter:...
  2. Replies
    7
    Views
    822

    I see; that makes sense. I was trying to avoid...

    I see; that makes sense.

    I was trying to avoid shader switching but if that hurts performance then I'll go ahead with using different shaders.
  3. Replies
    7
    Views
    822

    GLSL; return statement ...

    Hello,

    Simple question about GLSL and fragment shaders. May I return the "final color" early if I don't need to do any further processing in the void main function?

    Consider the following...
  4. Replies
    2
    Views
    503

    Sorting for Transparency

    Hello,

    So I would like to optimize my drawing calls to account for transparency.

    Long story short, what I have been doing is sorting all of my OpenGL meshes from opaque to fully transparent...
  5. One last question; I assume I am correct with...

    One last question;

    I assume I am correct with my original summation that cx, cy, and cz coorespond with the world coordinates for the center of the sphere that would be created with this function....
  6. Thank you; I will play around with it; Really...

    Thank you; I will play around with it; Really trying to understand the procedural generation side of things.
  7. Understanding function for generating sphere ...

    Hello,

    So I have been looking around for a good function that generates a sphere for OpenGL and I found the function below.

    I am not trying to simply cut and paste code in my project so I and...
  8. Replies
    3
    Views
    721

    I agree! The issue comes into play using Qt's...

    I agree! The issue comes into play using Qt's shader management classes, etc.

    What I don't want to happen is needing to convert between GLM and Qt all of the time; especially in the frame loop.
  9. Replies
    3
    Views
    721

    Qt datatypes with GLM and OpenGL

    Hello,

    I am wondering if anyone has used Qt datatypes (QMatrix4x4, QMatrix3x3, QVector3D, QVector4D, etc.) with OpenGL.

    I know that Qt has it's own way of dealing with OpenGL but I have an...
  10. Replies
    6
    Views
    765

    Thank you; will remove.

    Thank you; will remove.
  11. Replies
    6
    Views
    765

    You were correct! My normal Matrix was being...

    You were correct! My normal Matrix was being created from the MVP instead of the ModelMatrix.

    This was causing all kinds of problems as folks can imagine.

    I still need a bit of assistance but...
  12. Replies
    6
    Views
    765

    Thank you for catching that! Unfortunately, it...

    Thank you for catching that! Unfortunately, it didn't make much of a difference:

    Here is the updated fragment shader code:



    #version 330
    #extension GL_ARB_explicit_attrib_location : require...
  13. Replies
    6
    Views
    765

    Revisiting Lighting in GLSL ...

    Hello,

    I know folks have helped me in the past on this and I truly believe I am almost there.

    So, after much work I believe my directional light is working in the scene, sort of, but I still...
  14. I see, my question goes along the lines of this:...

    I see, my question goes along the lines of this:

    What would be the best option to load images on the fly like this? The goal is just to have a program that you can simply open the file and then...
  15. UV Sphere versus Cube for 3D Panoramic Images/Movies...

    Hello,

    Simple question; wondering what is the best option for displaying 3D panormic images and movies, a cube or a 3D sphere?

    I tried the 3D sphere but so far the image is distorted at the top...
  16. OK, thank you. Maybe I am an idiot that is...

    OK, thank you.

    Maybe I am an idiot that is missing the obvious but to get the Inverse View matrix I just do glm::inverse(ViewMatrix), right?

    I just want to be sure I am doing it against the...
  17. Hello, Thank you, I will look into this. ...

    Hello,

    Thank you, I will look into this.

    One item I am trying to find which seems simple to do using the GLM library:

    How do I calculate the Inverse View matrix? I could write my own...
  18. Help with GLSL/OpenGL Shader; Uneven Lighting

    Hello,

    So I have been banging my head against the wall on a GLSL shader issue; essentially my lighting is uneven and weird.

    See my picture below; the problem is that I get the bright highlight...
  19. Help with SketchUp C Api Example; Index Data?

    Hello,

    I am working with an example of loading SketchUp files using the SketchUp C API but I am having a hard time understanding how to load the indices from the associated model.

    The below...
  20. Thanks for the review; the issue with the...

    Thanks for the review; the issue with the VerticalAngle variable is certainly a possibility.

    As a test, I did the following and it works:



    if (CurrentUpDirection.y > 0.0f) {
    ...
  21. Replies
    3
    Views
    688

    Getting screenshot of OpenGL output ...

    Hello,

    I would like to get a simple screenshot of OpenGL output via glReadPixels and FreeImage.

    The problem is that currently I get a messed up Black and White copy of what I am rendering. What...
  22. That is a good point. Here is my OpenGLCamera...

    That is a good point.

    Here is my OpenGLCamera class (both header and implementation):

    OpenGLCamera.h:



    #ifndef OPENGLCAMERA_H_
    #define OPENGLCAMERA_H_
  23. Preventing Camera from being Upside down ...

    Hello,

    I have a rather interesting problem; on random occasions my camera, via the view matrix I believe, appears "upside down".

    The camera will be pointing in the right direction and at the...
  24. Request for advice, testing older OpenGL contexts...

    Hello,

    Maybe this is a dumb question but I don't know :)

    I am getting a new Dev system because my old one is dying but the reason I need my older system is because it has OpenGL 3.1

    So...
  25. Thank you for your quick reply! What about the...

    Thank you for your quick reply!

    What about the 7th parameter? Same thing applies with using GL_RED or the variant?
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4