Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-13 Thread ken mays
> On Fri, Feb 12, 2010 at 2:30 PM, jean pellotier > wrote: > > > I've checked in fixes to several shaders. Please > test with current CVS. > > Some > > > of the shaders referenced glFrontMaterial.ambient > even though a color > > mode > > > of AMBIENT_AND_DIFFUSE was set, which means that > the fix

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-13 Thread Detlef Faber
Am Freitag, den 12.02.2010, 15:48 +0100 schrieb Tim Moore: > > > It work if i remove the crop and landmass option, wich are > still affected. > > ps: i'm not sure the change i did to landmass.frag and > crop.frag were of any effect, i just

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-12 Thread Tim Moore
On Fri, Feb 12, 2010 at 2:30 PM, jean pellotier wrote: > > > > > Message du 12/02/10 12:56 > > > > > I've checked in fixes to several shaders. Please test with current CVS. > Some > > of the shaders referenced glFrontMaterial.ambient even though a color > mode > > of AMBIENT_AND_DIFFUSE was set, w

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-12 Thread jean pellotier
> Message du 12/02/10 12:56 > > I've checked in fixes to several shaders. Please test with current CVS. Some > of the shaders referenced glFrontMaterial.ambient even though a color mode > of AMBIENT_AND_DIFFUSE was set, which means that the fixed function pipeline > takes the ambient color fro

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-12 Thread Tim Moore
On Fri, Feb 12, 2010 at 1:01 PM, Erik Hofman wrote: > Tim Moore wrote: > > That's not a problem. Color values are allowed to be any value and are > > clamped at the end of the pipeline. However, we do some other clamping > > so that the appearance isn't too different when shaders are turned on.

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-12 Thread Erik Hofman
Tim Moore wrote: > That's not a problem. Color values are allowed to be any value and are > clamped at the end of the pipeline. However, we do some other clamping > so that the appearance isn't too different when shaders are turned on. > We have a general lighting problem: our ambient, diffuse

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-12 Thread Tim Moore
I've checked in fixes to several shaders. Please test with current CVS. Some of the shaders referenced glFrontMaterial.ambient even though a color mode of AMBIENT_AND_DIFFUSE was set, which means that the fixed function pipeline takes the ambient color from the vertex color. I don't know what the s

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-12 Thread Tim Moore
On Fri, Feb 12, 2010 at 12:14 AM, jean pellotier wrote: > 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 ar

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-12 Thread Erik Hofman
John Denker wrote: > On 02/11/2010 04:14 PM, jean pellotier wrote: > >> a temporary fix is to remove the "gl_FrontMaterial.ambient" part in 3 >> files, > > Wow! Direct hit! I've tested the values whether the ambient/diffuse/specular/clouds/fog colors were withing the range 0.0 .. 1.0 and found

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Brian Schack
> "Stuart" == Stuart Buchanan writes: Stuart> Does anyone on the -dev list have an ATI card that is Stuart> working (or not) with the shader options? Yes. I have an ATI Radeon X1600 with 128MB of VRAM. The shaders seem to work (I get nice water effects, for example), the clouds loo

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread John Denker
On 02/11/2010 04:14 PM, jean pellotier wrote: > a temporary fix is to remove the "gl_FrontMaterial.ambient" part in 3 > files, Wow! Direct hit! > here's the diff: That makes a huge improvement. I'm running with shader-effects turned on now, for the first time in months. Thanks! --

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Diogo Kastrup
Tim Moore wrote: > One thing to try is #ifdef ing out the parts of the fragment shaders > that refer to OpenGL state. > So, turn off 3D clouds and trees. > In default.frag and mat-anim.frag, #ifdef or comment out the clause > that begins > if (gl_FrontMaterial.shininess > 0) I just tried this wit

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread jean pellotier
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 +, Stuart Buchanan wrote: jean pellotier wrote: here are the screens of some issues with my HD4650: the color change done to clo

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Arnt Karlsen
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 +, 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/

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Etienne Bourque
I provided some pictures in the mentioned thread to maybe help understanding what's happening. Etienne -Message d'origine- De : Stuart Buchanan [mailto:stuart_d_bucha...@yahoo.co.uk] Envoyé : 11 février 2010 03:41 À : FlightGear Dev Objet : [Flightgear-devel] Shader is

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Stuart Buchanan
Diogo Kastrup wrote: > I am not familiar with shaders at all but I found this while looking for > compatibility > of shaders on nvidia and ati: > http://www.pouet.net/topic.php?which=5788 > I hope it helps. > > Diogo Very interesting. Two things immediately struck me from that page: - Floats a

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Tim Moore
On Thu, Feb 11, 2010 at 4:42 PM, Diogo Kastrup wrote: > > Strange indeed. > > > > The details of the pall seem to depend on time of > > day (angle of sun?). > > > > The pall depends very stronly on direction of view. > > For some directions, the pall is not noticeable, but > > panning the view a

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Diogo Kastrup
> Strange indeed. > > The details of the pall seem to depend on time of > day (angle of sun?). > > The pall depends very stronly on direction of view. > For some directions, the pall is not noticeable, but > panning the view a tiny amount brings the pall back > in full force. I am not familiar wit

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Stuart Buchanan
John Denker wrote: > As a tangentially-unrelated remark: no matter whether > shader-effects are turned on or not, I observe that the > /sim/rendering/random-vegetation property has no effect. > > Is it obsolete? What is/was it supposed to do? IIRC it controls whether random vegetation is gene

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread John Denker
On 02/11/2010 01:41 AM, Stuart Buchanan wrote: > A number of people with ATI cards are having problems with the > default shaders on the current windows v2.0.0 RC: I'm not surprised. The "weird dark pall" has been #1 on my list of FG bugs for months. The bug is known to be shader-related. Th

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Erik Hofman
Diogo Kastrup wrote: >> Diogo Kastrup wrote: >>> On an unrelated issue, I am not sure if this is a problem with ATI cards, >>> but I got >>> frustrated with the frame-rate I got after the upgrade. I was getting >>> around 30-40 fps >>> with the old machine and now it is around 35-45 with a intel

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Geoff McLane
On Thu, 2010-02-11 at 10:45 +, 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): > > > http://janodesbois.free.fr/fg_screens/decembre09/screens_fg_windowsXP/ > > and some cl

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Diogo Kastrup
> Diogo Kastrup wrote: >> On an unrelated issue, I am not sure if this is a problem with ATI cards, >> but I got >> frustrated with the frame-rate I got after the upgrade. I was getting around >> 30-40 fps >> with the old machine and now it is around 35-45 with a intel I-7 860, ATI >> HD4890, 4g

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Erik Hofman
Diogo Kastrup wrote: > On an unrelated issue, I am not sure if this is a problem with ATI cards, but > I got > frustrated with the frame-rate I got after the upgrade. I was getting around > 30-40 fps > with the old machine and now it is around 35-45 with a intel I-7 860, ATI > HD4890, 4gB > DDR3

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Diogo Kastrup
> jean pellotier wrote: > > Are you seeing any error messages in the console at all? > > Usually if there is a shader issue, then some error messages are displayed > there. > However the colour problems you are seeing are quite strange. > Hi, I just upgraded my computer and got an ATI video card

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Detlef Faber
Am Donnerstag, den 11.02.2010, 12:18 +0100 schrieb Detlef Faber: > Am Donnerstag, den 11.02.2010, 08:41 + schrieb Stuart Buchanan: > > Hi All, > > > > A number of people with ATI cards are having problems with the default > > shaders on the current windows v2.0.0 RC: > > > > http://www.fligh

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Detlef Faber
Am Donnerstag, den 11.02.2010, 08:41 + schrieb Stuart Buchanan: > Hi All, > > A number of people with ATI cards are having problems with the default > shaders on the current windows v2.0.0 RC: > > http://www.flightgear.org/forums/viewtopic.php?f=6&t=6875&sid=b02b4d5ebd4c827ca26fc60fd857dda7&

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Stuart Buchanan
jean pellotier wrote: > here are the screens of some issues with my HD4650: > > > the color change done to close/far field (gren/red/darker): > > http://janodesbois.free.fr/fg_screens/decembre09/screens_fg_windowsXP/ > > and some clouds and others, specialy if the sun is low on horizon > (sta

Re: [Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread jean pellotier
Stuart Buchanan a écrit : > Hi All, > > A number of people with ATI cards are having problems with the default > shaders on the current windows v2.0.0 RC: > > http://www.flightgear.org/forums/viewtopic.php?f=6&t=6875&sid=b02b4d5ebd4c827ca26fc60fd857dda7&p=64237#p64237 > > Does anyone on the -dev l

[Flightgear-devel] Shader issue on ATI cards

2010-02-11 Thread Stuart Buchanan
Hi All, A number of people with ATI cards are having problems with the default shaders on the current windows v2.0.0 RC: http://www.flightgear.org/forums/viewtopic.php?f=6&t=6875&sid=b02b4d5ebd4c827ca26fc60fd857dda7&p=64237#p64237 Does anyone on the -dev list have an ATI card that is working (o