Arnt Karlsen a écrit :
On Thu, 11 Feb 2010 13:21:32 +0100, Geoff wrote in message
<1265890892.6457.3.ca...@dell02>:
On Thu, 2010-02-11 at 10:45 +0000, Stuart Buchanan wrote:
jean pellotier wrote:
here are the screens of some issues with my HD4650:
the color change done to close/far field (gren/red/darker):
..you are running Ubuntu 8.04LTS with ATI's proprietary
fglrx, or is there a "Catalyst" driver too?
Have you tried a recent Live CD or Live USB with
radeon, radeonhd and fglrx on your box?
..x.org's docs trails development a bit, radeonhd was supposed
to support the newer cards better than radeon, but radeon looks
like it's winning the race: ;o)
http://www.x.org/wiki/RadeonFeature
http://www.x.org/wiki/radeonhd:feature
http://www.x.org/wiki/Projects/Drivers
On ubuntu karmic i use the provided fglrx driver (9.12) and on windows
xp both the 9.12 and 10.01 catalyst driver (the "hotfix" version) (but
didn't test windows for a while).
my main OS is a debian sid, with a git radeon, but glsl are not
implemented yet (rv730) .
glxinfo give me:
OpenGL shading language version string: 1.10
and fg run too slowly, but kompiz is fine.
a temporary fix is to remove the "gl_FrontMaterial.ambient" part in 3
files, and so i have no more dark/blue/green super FX, but don't ask me
to say why :) .
that works with the crop and landmass.
here's the diff:
jano
Index: Shaders/crop.frag
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Shaders/crop.frag,v
retrieving revision 1.1
diff -u -r1.1 crop.frag
--- Shaders/crop.frag 8 Aug 2009 10:17:59 -0000 1.1
+++ Shaders/crop.frag 11 Feb 2010 23:11:07 -0000
@@ -59,7 +59,7 @@
c1 = mix(c1, clamp(n+nvL[2]*4.1+vec4(0.1, 0.1, nvL[2]*2.2, 1.0), 0.7, 1.0), smoothstep(snowlevel+300.0, snowlevel+360.0, (rawpos.z)+nvL[1]*3000.0));
vec3 diffuse = gl_FrontMaterial.diffuse.rgb * max(0.0, dot(VNormal, gl_LightSource[0].position.xyz));
- vec4 ambientColor = gl_FrontLightModelProduct.sceneColor + gl_LightSource[0].ambient * gl_FrontMaterial.ambient;
+ vec4 ambientColor = gl_FrontLightModelProduct.sceneColor + gl_LightSource[0].ambient;// *gl_FrontMaterial.ambient;
// ambientColor = vec4(0.01);
vec4 ambient_light = ambientColor + gl_LightSource[0].diffuse * vec4(diffuse, 1.0);
Index: Shaders/default.vert
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Shaders/default.vert,v
retrieving revision 1.4
diff -u -r1.4 default.vert
--- Shaders/default.vert 19 Nov 2009 16:20:54 -0000 1.4
+++ Shaders/default.vert 11 Feb 2010 23:11:07 -0000
@@ -22,7 +22,6 @@
halfVector = normalize(gl_LightSource[0].halfVector.xyz);
diffuse = gl_Color * gl_LightSource[0].diffuse;
alpha = gl_Color.a;
- constantColor = gl_FrontLightModelProduct.sceneColor
- + gl_FrontMaterial.ambient * gl_LightSource[0].ambient;
+ constantColor = gl_FrontLightModelProduct.sceneColor + gl_LightSource[0].ambient; //*gl_FrontMaterial.ambient ;
fogCoord = abs(ecPosition.z);
}
Index: Shaders/landmass.frag
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Shaders/landmass.frag,v
retrieving revision 1.1
diff -u -r1.1 landmass.frag
--- Shaders/landmass.frag 8 Aug 2009 10:17:59 -0000 1.1
+++ Shaders/landmass.frag 11 Feb 2010 23:11:07 -0000
@@ -44,7 +44,7 @@
c1 = mix(c1, clamp(n+nvL[2]*4.1+vec4(0.1, 0.1, nvL[2]*2.2, 1.0), 0.7, 1.0), smoothstep(snowlevel+300.0, snowlevel+360.0, (rawpos.z)+nvL[1]*3000.0));
vec3 diffuse = gl_FrontMaterial.diffuse.rgb * max(0.0, dot(normalize(VNormal), gl_LightSource[0].position.xyz));
- vec4 ambientColor = gl_FrontLightModelProduct.sceneColor + gl_LightSource[0].ambient * gl_FrontMaterial.ambient;
+ vec4 ambientColor = gl_FrontLightModelProduct.sceneColor + gl_LightSource[0].ambient; // * gl_FrontMaterial.ambient;
// ambientColor = vec4(0.01);
vec4 ambient_light = ambientColor + gl_LightSource[0].diffuse * vec4(diffuse, 1.0);
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel