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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,727

    Which Spec to Use ?

    What specification version of GLSL would you recommend to use ? I believe they changed quite a bit from what I can recall from Opengl 2.0. Also what's the latest version of GLSL which has the least...
  2. Replies
    7
    Views
    1,124

    @thokra Arrays were existent in the C89...

    @thokra

    Arrays were existent in the C89 standard which C++ is built on and supports so they should be equivalent in this regard.
    An array is not a pointer though, an array can be converted to a...
  3. Replies
    7
    Views
    1,124

    Passing Data through OpenGL API

    Well I've just been thinking about some implementation details lately and how data is passed through the OpenGL API. Well most math API and such define a vector (including GLM), at least a simplified...
  4. Replies
    6
    Views
    1,734

    GL_SMOOTH_POLYGON was the culprit for the...

    GL_SMOOTH_POLYGON was the culprit for the artifacts.

    I still need help with the blending:




    // draw lightmap

    glEnable( GL_BLEND );
  5. Replies
    6
    Views
    1,734

    multipass blending wireframe artifact

    I have two draw functions that both use glsl shaders, one renders a texture and the other a lightmap. When I draw the texture first than modulate the lightmap onto it everything is fine but when I...
  6. Replies
    0
    Views
    718

    Implementing a Dynamic Shader System

    Well the closest I could discribe what I am looking at implementing is something like Unreal Engine 3, which has has a program which implements a "linked" block system. Each block is used to define...
  7. Replies
    9
    Views
    2,002

    Re: Using same Vertex shader

    Thanks for the help, my nvidia card (8600) does have GL_ARB_separate_shader_objects but my ati card (3650 mobility) doesn't.

    I am planning on using one program, rather than having thousands, with...
  8. Replies
    9
    Views
    2,002

    Re: Using same Vertex shader

    I'm using an ATI but I was hoping to have it be used on pretty much any gpu.

    So any other suggestions to how to use many shaders? There isn't really a whole lot of information on it, almost any...
  9. Replies
    9
    Views
    2,002

    Re: Using same Vertex shader

    Well I'm targeting opengl 2.0 right now. Not sure what you mean by separable programs, could you elaborate on that please.

    How efficient are the glAttachShader and glDetachShader functions? That...
  10. Replies
    9
    Views
    2,002

    Using same Vertex shader

    Well I was wondering if there was a way to use the same vertex shader across multiple programs. For example I need about 20 programs and each of them use the same vertex shader. So rather than...
  11. Replies
    1
    Views
    2,357

    Cube map Texture Coordinates

    I'm trying to render each side of a cube map onto a flat texture but I don't know how cube map uv mapping works.



    //bind cube map texture

    glBegin(GL_QUADS);
    glTexCoord3f(1, 0, 0);...
  12. Replies
    3
    Views
    1,550

    Getting location of variable in shader

    Say I am using the same fragment/vertex shader for multiple programs, so something like this:



    GLuint frag = glCreateShader(GL_FRAGMENT_SHADER);
    //initialize fragment shader

    GLuint progA =...
  13. Thread: Bsp tree

    by xerzi
    Replies
    1
    Views
    1,082

    Bsp tree

    I was looking at this article (link below) but it seems all the links to sample code are dead. I was wondering if someone may have an updated link to the sample code?
    ...
  14. Thread: Multithreading

    by xerzi
    Replies
    7
    Views
    3,121

    Re: Multithreading

    Yes I know it's incorrect which is why I am posting for help, sorry for posting in the wrong subsection. Which may have confused you.



    Thanks for pointing that out except my code isn't setting...
  15. Thread: Multithreading

    by xerzi
    Replies
    7
    Views
    3,121

    Re: Multithreading

    I'm talking about animation data that I have set up. I have a basic structure:


    struct{ vec3 position; quaternion rotation; };

    Which is set by my physics thread, it does all the blending...
  16. Thread: Multithreading

    by xerzi
    Replies
    7
    Views
    3,121

    Re: Multithreading

    That wasn't exactly what I was asking, yes the second thread does not use any opengl, the problem is I'm not sure how to render while another thread is editing data that is also used for rendering.
  17. Thread: Multithreading

    by xerzi
    Replies
    7
    Views
    3,121

    Multithreading

    So I have my main program thread which does all my opengl rendering and camera calculations, but than I also need another thread that runs at a set fps. Basically like a physics thread so that I can...
  18. Replies
    3
    Views
    1,809

    Re: IK Points Skeletal Animation

    I was looking more for the mathematics behind it. Sorry that wasn't the best example. I need the math behind IK points as I'm generating certain animations, such as the acceleration and deceleration...
  19. Replies
    3
    Views
    1,809

    IK Points Skeletal Animation

    I am currently making animations and I was wondering if anyone could offer some insight and possibly some reading material on IK points that helped them. I am wanting to do something basic such as...
  20. Replies
    4
    Views
    2,251

    Re: Wireframe and GL_TRIANGLE_STRIP

    It'd seem that is only supported from opengl 3.1 and later, which it seems isn't supported by my drivers/card. If there is no other method I guess the best solution would be to generate new indices?
  21. Replies
    3
    Views
    2,107

    Check for invalid Sampler

    Is there I can check to see if a sampler is with a valid range for example if I pass "-1" in as a parameter for a sampler would there be a way to check if its -1 and instead default to a color?

    ...
  22. Replies
    4
    Views
    2,251

    Wireframe and GL_TRIANGLE_STRIP

    I was wondering if there was a way to render wireframe differently for a gl_triangle_strip as not all the triangles are connected side by side I get this and it looks pretty messy when there are a...
  23. Thread: Multiple Shaders

    by xerzi
    Replies
    3
    Views
    953

    Re: Multiple Shaders

    Already thanks guys, it turned out to be something else.
  24. Thread: Multiple Shaders

    by xerzi
    Replies
    3
    Views
    953

    Multiple Shaders

    I need to be able to use more than one shader but I'm not entire sure how to do this.



    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glUseProgram(myshader);// "myshader" being the linked...
  25. Replies
    0
    Views
    863

    Skeletal Animation

    Not sure where to being, I basically followed what these guys were discussing here. I'll try and summarize what I'm doing but I'm not the best at explanations.

    Basically I have initial translation...
Results 1 to 25 of 33
Page 1 of 2 1 2