Hi folks, All the issues with the new nVidia driver are corrected now. It seems that nVidia drivers starts to be more restrictive to the shader code. The shaders were rewritten to be supported on the Shader Model 3.0 hardware. Hence the shaders should link now (However let me know if they still not).
I have changed the ppu graph responsible for the hdr rendering in the example application a little bit. Unfortunately the changes has made some problems to the simulation of the eye adaption to changes in the luminance. For now the adapted luminance is always the maximal luminance (see luminance_adapted_fp.glsl and hdrppu.cpp to see what I mean). If all things went fine you should see some glare around the bright parts of the teapot. run ./ogsppu Data/cessnafir.osg to see also the glare around the fire. I will correct the eye adaption simulation tomorrow. Cause now my eyes fall down ;-) Cheers, Art --- Jeremy Moles <[EMAIL PROTECTED]> schrieb: > > On Tue, 2008-01-08 at 18:04 +0100, Kyungdahm Yun > wrote: > > Hi Art, > > > > First, thanks for releasing nice code! I gave it a > try on Windows > > Vista machines, one with GeForce 6800 and the > other with GMA X3100. > > Compilation went fine with few modification for > Visual Studio 2005. > > But when it's fired to run, the example code > started throwing out some > > GLSL errors and warnings, as Markus already > mentioned. > > > > 1. Most of them were about function overloading. > At least on my > > machine, 'int' and 'float' could not be swapped as > a function > > parameter. I thought it's a strict syntax of GLSL, > but I'm not pretty > > sure it's still true. > > > > 2. 'texture2DLod' could not accept its second > parameter as 'int' or > > even 'float. It had to be 'vec2'. There was > another case with 'vec4', > > but I forgot the name. Sorry. > > > > 3. 'textureSize2D' was not supported on GeForce > 6800. It seems to be a > > new extension for G80. I just replaced it with a > constant value:) > > > > After a few tweaks, a beautiful teapot got > rendered on my screen, but > > I'm afraid if it's meant to be like this form due > to my old graphics > > card. I guess a new graphics card like G80 is not > suffered from these > > problems, and that's why you have not encountered > any. By the way, the > > example code ran on X3100 just crashed while > initializing Viewer > > class. I'm not sure what the problem is, but in my > case, Viewport > > failed to get allocated. > > > > I hope it helps you to improve osgPPU! > > I'm seeing these same problems. > > textureSize2D appears to be a shader4 thing: > > http://www.opengl.org/registry/specs/EXT/gpu_shader4.txt > > ...so is this only going to work properly on new > cards? Mine is only a > year old, but I guess it's foolish to think it's not > deprecated after > that long... :) > > Attached is a log of the errors I get on my Quadro > 2500M card. > > > Regards, > > Kyungdahm > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > FRAGMENT glCompileShader "" FAILED > FRAGMENT Shader "" infolog: > (37) : warning C7011: implicit cast from "int" to > "float" > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (32) : error C1060: incompatible types in > initialization > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1060: incompatible types in > initialization > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (37) : warning C7011: implicit cast from "int" to > "float" > (38) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (32) : error C1060: incompatible types in > initialization > (44) : warning C7532: global function exp requires > "#version 110" before use > > glLinkProgram "" FAILED > Program "" infolog: > Fragment info > ------------- > (37) : warning C7011: implicit cast from "int" to > "float" > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (32) : error C1060: incompatible types in > initialization > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1060: incompatible types in > initialization > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (37) : warning C7011: implicit cast from "int" to > "float" > (38) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (32) : error C1060: incompatible types in > initialization > (44) : warning C7532: global function exp requires > "#version 110" before use > > FRAGMENT glCompileShader "" FAILED > FRAGMENT Shader "" infolog: > (37) : warning C7011: implicit cast from "int" to > "float" > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (32) : error C1060: incompatible types in > initialization > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1060: incompatible types in > initialization > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (37) : warning C7011: implicit cast from "int" to > "float" > (38) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1060: incompatible types in > initialization > (44) : warning C7532: global function exp requires > "#version 110" before use > > glLinkProgram "" FAILED > Program "" infolog: > Fragment info > ------------- > (37) : warning C7011: implicit cast from "int" to > "float" > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (32) : error C1060: incompatible types in > initialization > (32) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1060: incompatible types in > initialization > (33) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (37) : warning C7011: implicit cast from "int" to > "float" > (38) : error C1115: unable to find compatible > overloaded function "textureSize2D" > (33) : error C1060: incompatible types in > initialization > (44) : warning C7532: global function exp requires > "#version 110" before use > > before Font::Glyph::subload(): detected OpenGL error > 'invalid operation > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > __________________________________ Ihr erstes Fernweh? Wo gibt es den schönsten Strand? www.yahoo.de/clever _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

