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...
Type: Posts; User: Joel Graff
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...
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...
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...
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...
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...
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...
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...
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...
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#. ...
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...
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...
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...
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...