Re: [Flightgear-devel] Shader issue on ATI cards
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 tested them in montagnous area, and a flight today in flat landscape showed buggy crop and landmass. There was more of the same problem in the landmass and crop shaders, but with the diffuse component. Please try the new shaders I've just checked in. Tim This seems to have fixed it for me, No more colour flashing up to now. Thanks! -- 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 -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
On Fri, Feb 12, 2010 at 2:30 PM, jean pellotier jean.pellot...@wanadoo.frwrote: 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 spec says about this situation, but mixing the old pipeline with shaders is deprecated and probably a fertile source of bugs. Also, I cleaned up some other shader errors. 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 tested them in montagnous area, and a flight today in flat landscape showed buggy crop and landmass. There was more of the same problem in the landmass and crop shaders, but with the diffuse component. Please try the new shaders I've just checked in. Tim As for the ATI graphics hardware, the ATI R500-based GPU variants (ATI Radeon X16xx-X1950) seem reliable for FlightGear 2.0 with the ATI Catalyst Display Drivers for some people. You may want to test the corrupted texture issues with the newer Mesa 7.6.1 release as well. ~ Ken -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 no problems there. I did however find that chrome colors could exceed 1.0 (up to 1.2 I believe. Could this be a problem? See the values in /rendering/scene/chrome-light when this problem arises to test if it happens when chrome values exceed 1.0 Erik -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
On Fri, Feb 12, 2010 at 12:14 AM, jean pellotier jean.pellot...@wanadoo.frwrote: 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 This is an important clue and points to some bugs in the shaders. The interaction between the old fixed function pipeline and shaders in OpenGL is kind of tricky, and the behavior of the ATI driver is arguably consistent with the spec. I'll check in fixes shortly. Thanks for the detective work! Tim -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
On Fri, Feb 12, 2010 at 1:01 PM, Erik Hofman e...@ehofman.com 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. We have a general lighting problem: our ambient, diffuse and specular colors often add up to more than 1.0, which means that the diffuse shading can be completely washed out. Are you saying that ambient + diffuse + specular added together may not exceed 1.0? I alway thought their maximum value was 1.0 (also for individual channels). Ambient, diffuse, specular and emission material values are not clamped by OpenGL, though values 1.0 don't make physical sense. The corresponding LightSource values are not clamped either; even if they were, you could easily get color values greater than 1.0 when you add up all the lighting contributions. In the fixed function pipeline the color produced by lighting is clamped before being modulated by the texture. In the shader pipeline it is not (because the math is all done in the shader program), but the final output color has to be clamped unless your using an exotic floating point frame pointer. The results are visibly different if you do the clamping before or after the texture multiply, so our shaders do clamp before in order to avoid nasty artifacts. Of course, you have to clamp the color values before they are sent to the screen, but that's what tone mapping and HDR are all about: mapping a wide range of color values to the gamut supported by the display. Tim -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
On Fri, Feb 12, 2010 at 2:30 PM, jean pellotier jean.pellot...@wanadoo.frwrote: 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 from the vertex color. I don't know what the spec says about this situation, but mixing the old pipeline with shaders is deprecated and probably a fertile source of bugs. Also, I cleaned up some other shader errors. 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 tested them in montagnous area, and a flight today in flat landscape showed buggy crop and landmass. There was more of the same problem in the landmass and crop shaders, but with the diffuse component. Please try the new shaders I've just checked in. Tim -- 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
[Flightgear-devel] Shader issue on ATI cards
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=6t=6875sid=b02b4d5ebd4c827ca26fc60fd857dda7p=64237#p64237 Does anyone on the -dev list have an ATI card that is working (or not) with the shader options? I've had a look at the shader code and I can't see anything wrong, but I don't have a working FG computer right now to experiment with. -Stuart -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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=6t=6875sid=b02b4d5ebd4c827ca26fc60fd857dda7p=64237#p64237 Does anyone on the -dev list have an ATI card that is working (or not) with the shader options? I've had a look at the shader code and I can't see anything wrong, but I don't have a working FG computer right now to experiment with. -Stuart 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 (starting from number20): http://janodesbois.free.fr/fg_screens/2010_janvier/ the 32-38 serie is turning with the propeller. this was with a windows binary from november i think, i didn't test the 2.0 binary yet on windows. on debian sid, i'm using the radeon driver so am unable to use flightgear, except low poly jsbsim planes without scenery, but with an ubuntu recently installed i've got the same color change. jano -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 (starting from number20): http://janodesbois.free.fr/fg_screens/2010_janvier/ the 32-38 serie is turning with the propeller. this was with a windows binary from november i think, i didn't test the 2.0 binary yet on windows. on debian sid, i'm using the radeon driver so am unable to use flightgear, except low poly jsbsim planes without scenery, but with an ubuntu recently installed i've got the same color change. jano 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. -Stuart -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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=6t=6875sid=b02b4d5ebd4c827ca26fc60fd857dda7p=64237#p64237 Does anyone on the -dev list have an ATI card that is working (or not) with the shader options? I've had a look at the shader code and I can't see anything wrong, but I don't have a working FG computer right now to experiment with. I see the same issue on a MSI X600 Notebook with ATI HD4300 Graphiccard and Ubuntu Linux. The whole ground suddenly changes from normal to either red, green or black while panning the view. This applies to all views. When the ground becomes dark, disabling of specific effects changes the colour of the affected grounds (e.G disabling crop effect changes crop landscape from black to green). Only turning off all effects (Disable Effects checkbox) helps. I tried some tweaks in the ATI Control Centre, but still no change. The same build on a Nvidia GraphicCard is perfectly allright. Greetings -- 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 -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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.flightgear.org/forums/viewtopic.php?f=6t=6875sid=b02b4d5ebd4c827ca26fc60fd857dda7p=64237#p64237 Does anyone on the -dev list have an ATI card that is working (or not) with the shader options? I've had a look at the shader code and I can't see anything wrong, but I don't have a working FG computer right now to experiment with. I see the same issue on a MSI X600 Notebook with ATI HD4300 Graphiccard and Ubuntu Linux. The whole ground suddenly changes from normal to either red, green or black while panning the view. This applies to all views. When the ground becomes dark, disabling of specific effects changes the colour of the affected grounds (e.G disabling crop effect changes crop landscape from black to green). Only turning off all effects (Disable Effects checkbox) helps. I tried some tweaks in the ATI Control Centre, but still no change. The same build on a Nvidia GraphicCard is perfectly allright. forgot to mention: It's CVS of last Saturday Greetings -- 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 -- 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 -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 for the first time. I am experiencing the same thing here. Disabling any shader alone does not help, but disabling the shader infrastructure completely solves the problem. I don't remember the name of the option in the menu but I can check it when I get back home. I get no error messages in the console. The only message that resemble this were the glCompileShader FAILED that were reported some days ago, but this was solved and there is no error messages anymore. 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. Is this lower than you would expect from this machine? Regards, Diogo -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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. Is this lower than you would expect from this machine? Are both with 3d clouds and shader effects visible? Erik -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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. Is this lower than you would expect from this machine? Are both with 3d clouds and shader effects visible? Only 3D clouds were enabled on both machines, and the previous computer was an AMD 64 3000+, GF6800XT and 1Gb DDR. As flightgear doesn't make intensive use of threads, maybe the bottleneck is the CPU and a single core of the I-7 is roundly as fast as the AMD 3000+? Diogo -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 clouds and others, specialy if the sun is low on horizon (starting from number20): http://janodesbois.free.fr/fg_screens/2010_janvier/ the 32-38 serie is turning with the propeller. this was with a windows binary from november i think, i didn't test the 2.0 binary yet on windows. on debian sid, i'm using the radeon driver so am unable to use flightgear, except low poly jsbsim planes without scenery, but with an ubuntu recently installed i've got the same color change. jano 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. -Stuart Hi, As advised some time ago, in Nov, this is still present in Vista, but apparently not in Ubuntu, on my ATI Radeon HD 2600 XT card. There were no error messages output to the console. Some images and more information is at - http://geoffair.net/tmp/fg/ati-driver.htm HTH Geoff. -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 I-7 860, ATI HD4890, 4gB DDR3. Is this lower than you would expect from this machine? Are both with 3d clouds and shader effects visible? Only 3D clouds were enabled on both machines, and the previous computer was an AMD 64 3000+, GF6800XT and 1Gb DDR. As flightgear doesn't make intensive use of threads, maybe the bottleneck is the CPU and a single core of the I-7 is roundly as fast as the AMD 3000+? Turning of all shaders except 3d clouds gives me around 20 fps more. Turning off shader support altogether gives me another 20 fps and turning of 3d clouds yet another 20 fps. (I'm getting around 100 fps then). Interestingly enough turning off shader support but keeping 3d clouds enabled slows down the frame rate by around 20fps but no clouds are visible. Erik -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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. The bug is quite serious; the sim is unbearable to look at with shader-effects turned on. I have observed this equally with Debian Squeeze and Ubuntu Karmic. Does anyone on the -dev list have an ATI card that is working (or not) with the shader options? I have a Radeon HD 4870 with 1GB of 256-bit GDDR5. It uses the RV770 chipset. I've run a sampling of tests from the phoronix test suite and never noticed any problems. FG is the only application that suffers from either the pathetically low frame rate or the shader-related pall. Are you seeing any error messages in the console at all? No messages. Usually if there is a shader issue, then some error messages are displayed there. However the colour problems you are seeing are quite strange. 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. === 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? -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 generated when loading new a new tile. So, it has no effect on the current scenery, but should have an effect if you fly elsewhere. That said, I haven't tested it for a while. -Stuart -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 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 -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
On Thu, Feb 11, 2010 at 4:42 PM, Diogo Kastrup d...@bighost.com.br 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 tiny amount brings the pall back in full force. 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) Tim -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 and ints in GLSL: it seems ATI is a lot more fussy about having the right types. Making sure that you have floats (i.e. 1.0 not just 1) where floats are required might help compatibility. - gl_LightSource[n].position seems to be void with ATI in glsl vertex shader -Stuart -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 issue on ATI cards 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=6t=6875sid=b02b4d5ebd4c82 7ca26fc60fd857dda7p=64237#p64237 Does anyone on the -dev list have an ATI card that is working (or not) with the shader options? I've had a look at the shader code and I can't see anything wrong, but I don't have a working FG computer right now to experiment with. -Stuart -- 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 -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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/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 (starting from number20): http://janodesbois.free.fr/fg_screens/2010_janvier/ the 32-38 serie is turning with the propeller. this was with a windows binary from november i think, i didn't test the 2.0 binary yet on windows. on debian sid, i'm using the radeon driver so am unable to use flightgear, except low poly jsbsim planes without scenery, but with an ubuntu recently installed i've got the same color change. jano 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. -Stuart Hi, As advised some time ago, in Nov, this is still present in Vista, but apparently not in Ubuntu, on my ATI Radeon HD 2600 XT card. There were no error messages output to the console. Some images and more information is at - http://geoffair.net/tmp/fg/ati-driver.htm ..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 -- ..med vennlig hilsen = with Kind Regards from Arnt... ;o) ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case. -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 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 - 1.1 +++ Shaders/crop.frag 11 Feb 2010 23:11:07 - @@ -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 - 1.4 +++ Shaders/default.vert 11 Feb 2010 23:11:07 - @@ -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 - 1.1 +++ Shaders/landmass.frag 11 Feb 2010 23:11:07 - @@ -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
Re: [Flightgear-devel] Shader issue on ATI cards
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 with no success. Diogo -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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! -- 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
Re: [Flightgear-devel] Shader issue on ATI cards
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 look okay, and I get no error messages on the console. It is *slow* though, with the speed depending on the view, and how close I am to the ground. Sitting at the default starting location at KSFO, I get: Normal inside view: 17 fps - shaders and 3D clouds 20 fps - shaders 20 fps - 3D clouds 22 fps - no shaders or 3D clouds External chase view: 3 fps - shaders and 3D clouds 4 fps - shaders 4 fps - 3D clouds 4 fps - no shaders or 3D clouds Inside view, if I zoom in close enough so that I can't see out the windows (and yes, it really does run a bit faster with shaders and 3D clouds turned on, but the difference probably isn't meaningful): 40 fps - shaders and 3D clouds 38 fps - shaders 38 fps - 3D clouds 38 fps - no shaders or 3D clouds In summary: (a) Things work (b) Shaders and 3D clouds slow things down, but not by much (c) The view makes a big difference (d) Being close to the ground makes a difference (although I haven't tried to measure it) Brian -- 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