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: Joel Graff

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    1,540

    Seam issue with environmental map shader

    Hello,

    I've been implementing the Orange book's equirectangular (latlong) environmental map algorithm in chapter 10. I've been largely successful, but have encountered a seam / discontinuity...
  2. Replies
    1
    Views
    1,670

    Re: Sphere Mapping texture coordinate problem

    Well, I solved the vague "invalid operation" error - had to do with using an unsigned int to set the texture unit value in the application code...

    The rest of it remains a mystery. I've tried...
  3. Replies
    1
    Views
    1,670

    Sphere Mapping texture coordinate problem

    Hello,

    I'm playing around with texture mapping using GLSL in OpenSceneGraph. At the moment, I'm using the orange book's earth sphere map example to test.

    Anyway, I'm pretty sure my...
  4. Replies
    5
    Views
    4,314

    Re: GLSL Point light shader

    Following the orange book, there. That's the computation for the "eye coordinate", reducing it from a homogeneous vec4 to a non-homogeneous vec3. I've tried it both ways and haven't seen an...
  5. Replies
    5
    Views
    4,314

    Re: GLSL Point light shader

    Yes. OSG provides a uniform, osg_NormalMatrix that is identical to gl_NormalMatrix.

    Shader code:

    void main()
    {
    float pf, nDotVP, nDotHV, attenuation, d = 0.0;
    vec3 VP, halfVector;
    vec4...
  6. Replies
    5
    Views
    4,314

    GLSL Point light shader

    Hello,

    I'm implementing a simple pint light shader in GLSL using OpenSceneGraph. I appear to have run into a problem and I can't quite visualize what's wrong.

    Right now, I have a model loaded...
  7. Replies
    7
    Views
    3,655

    Re: Sphere texture map in GLSL

    I apologize for being inexact. Vertex attributes in Render Monkey are managed in the stream mapping editor. There, you specify the attribute usage, index, data type, and name. When I referred to a...
  8. Replies
    7
    Views
    3,655

    Re: Sphere texture map in GLSL

    Ok, since gl_MultiTexCoord# is deprecated after version 120, it's left to the developer to provide the texture coordinates. In RenderMonkey, I assume that means using a TexCoord attribute since...
  9. Replies
    7
    Views
    3,655

    Re: Sphere texture map in GLSL

    Yeah, I tried that - pretty much confirmed what I was suspecting. The issue appears to be using the TexCoord attribute that RenderMonkey supplies in the stream mapping in lieu of gl_MultiTexCoord#. ...
  10. Replies
    7
    Views
    3,655

    Sphere texture map in GLSL

    Hello,

    I'm going through the Orange book and implementing the examples using RenderMonkey and GLSL 150. Of course, all of RM's GLSL examples are 120 or less, so they use a lot of the deprecated...
  11. Replies
    2
    Views
    2,053

    Re: GLSL 1.5 Geometry shader issue

    Ya know, I reread that code several times trying to find typos - that's happened to me before. :o Anyway, I've gotta figure
    out how to get the logs out of OSG - much less embarrassing to have a...
  12. Replies
    2
    Views
    2,053

    GLSL 1.5 Geometry shader issue

    Hello,

    I've been playing with shaders using OpenSceneGraph and as an experiment, I thought I'd try implementing vertex normals using a geometry shader.

    What's odd is that I can get the shader...
  13. Basic general question about getting started

    Hello,

    I'm re-acquainting myself with OpenGL after developing an interest in learning shaders. I picked up a copy of RenderMonkey and mangled my way through a few HLSL tuts, but decided i'd...
Results 1 to 13 of 13