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!

Regards,
Kyungdahm
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to