Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Thread Tools
Old 08-11-04, 02:44 AM   #1
FX 5700
Join Date: May 2003
Posts: 8
Question GLSL and frame buffer reads??


I did some GLSL programming, but quickly came up with a problem: Frame buffer reads do not seem to work at all. I'd like to do custom blending functions where one needs to have access framebuffer color and depth values (gl_FBColor and gl_FBDepth). Based on the GLSL spec I found frame buffer reads are in the experimental end of the GLSL feature set. Thus hardware and drivers may not support it at all.

Does anyone know if this is a HW issue, a driver issue or what?
Should I expect the situation to improve?

Here is an example of a compilation log I get:
(5) : error C1008: undefined variable "gl_FBColor"

And below is a sample fragment shader that would not compile:

void main (void)
gl_FragColor = gl_FBColor + vec4(0.2, 0.1, 0.1, 1.0);

I am using 61.06 drivers with an FX 5700 board.
filiga is offline   Reply With Quote
Old 08-11-04, 03:43 AM   #2
FX 5700
Join Date: May 2003
Posts: 8
Default Re: GLSL and frame buffer reads??


Read the documentation more carefully, and it seems frame buffer reads are not really allowed in the current spec. Guess I'll have to use texture rendering and other tricks to do the work...
filiga is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 11:52 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.