My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 335: Shader rendering on 777-200ER not working on ATI Radeon
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jul 2011
Cc:  adams....@gmail.com
ATi

Blocked on:
issue 96
issue 264


Sign in to add a comment
 
Reported by rna...@gmail.com, Jun 3, 2011
*What steps will reproduce the problem?*
1. Compile simgear and flightgear from git under Linux 64-bit against openscenegraph v2.8.3 or v2.8.4. Use fgdata from git as well.
2. Launch "fgfs --aircraft=777-200ER"
3. Zoom out inside the cabin and cycle views until you get a view of the aircraft


*What is the expected output? What do you see instead?*
Expected result: see the livery applied on the whole aircraft, fuselage included. Get a neat and clean rendering of the cabin.

Observed result: the fuselage remains black and cabin rendering is weird.


*Any output in the console (black window)?*
Processing command line arguments
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Compatibility layer: testing for hard coded support
* can set light saturation:        yes
* hard coded terrain presampling:  yes
* terrain presampling initialized: no
* can disable global weather:      yes
Compatibility layer: tests done.
Loading local weather routines...
loading scenario 'nimitz_demo'
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
creating 3D noise texture... DONE
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9



*What FlightGear version are you using (when using GIT version, please
mention date)?*
flightgear commit 11bb6ef1466a64c966479f39e0526da03ce1b33c Sun May 29 09:34:56 2011 +0200
simgear commit c033979130b1c5822c5e9fc55bffc09632d5a48f Sat May 28 23:09:06 2011 +0200


*What operating system and graphics card?*
Ubuntu Linux Natty 64-bit
ATI Technologies Inc M92 [Mobility Radeon HD 4500 Series] /w radeon driver commit 2fca40ea65d9f2a6f8451c324bb4b82786f34f76

*Please provide any additional information below or as attachment (Avoid
expiring external links, such as to imageshack/pastebin/...).*
The problem does not happen with flightgear 2.0.
fgfs-screen-001.png
502 KB   View   Download
fgfs-screen-002.png
380 KB   View   Download
Jun 3, 2011
Project Member #1 bre...@gmail.com
Unfortunately a known issue due to usage of shaders on ATI Radeon.
Try disabling "Material Shaders" in the main menu: View -> Rendering Options -> Material shaders -> OFF

Status: NeedInfo
Labels: ATi Rendering
Blockedon: 96 264
Jun 3, 2011
Project Member #2 bre...@gmail.com
(No comment was entered for this change.)
Summary: Shader rendering on 777-200ER not working on ATI Radeon
Cc: adams....@gmail.com
Jun 3, 2011
#3 rna...@gmail.com
Yes, disabling "Material Shaders" rendering is okay.
I wonder why this does not happen with other aircrafts (i have not tested all of course) like 747, but I guess this is due to its rendering design.

Thank you
Jun 3, 2011
Project Member #4 bre...@gmail.com
Ok. Doesn't happen with all aircraft, since only few use shaders so far (it's a new feature).
Jun 20, 2011
Project Member #5 zakalawe@mac.com
Happens for me on Mac Radeon 3870, too. Let me know what log output I'm looking for - I could also bisect the shaders in FGDATA I guess.
Jun 23, 2011
Project Member #6 y...@sablonier.ch
FRAGMENT glCompileShader "" FAILED
FRAGMENT Shader "" infolog:
ERROR: 0:58: '>=' :  wrong operand types no operation '>=' exists that takes a left-hand operand of type 'uniform float' and a right operand of type 'const int' (or there is no acceptable conversion)

glLinkProgram "" FAILED
Program "" infolog:
ERROR: One or more attached shaders not successfully compiled
Jun 23, 2011
Project Member #7 adams....@gmail.com
Works fine here on a ATI Mobility Radeon HD 4250 with propietary driver.
Jun 24, 2011
#9 rna...@gmail.com
The problem happens only with radeon driver and not with fglrx.
Jul 3, 2011
Project Member #10 zakalawe@mac.com
This happens with the CRJ-700/900 too - same exterior shader used i guess.
Jul 3, 2011
Project Member #11 zakalawe@mac.com
CRJ cockpit showing the bug
Screen shot 2011-07-03 at 19.49.53.png
476 KB   View   Download
Jul 3, 2011
Project Member #12 zakalawe@mac.com
And the 747-400, for Gijs
Screen shot 2011-07-03 at 19.54.45.png
621 KB   View   Download
Jul 3, 2011
Project Member #13 stuar...@gmail.com
Problem is probably in line 58 of Shaders/lightmap.frag:

if ( condition >= 1 ) {

Should be

if ( condition >= 1.0 ) {

I'm unable to test this, and haven't checked it on NVidia either, but I'm 90% sure it's the bug. condition is a float, 1 isn't.

-Stuart



Jul 3, 2011
Project Member #14 zakalawe@mac.com
Fix pushed, thanks to Stuart and Gijs for the help.
https://gitorious.org/fg/fgdata/commit/366c39972031a622ad4fd39085c9d1057e41981d

Anyone who saw this issue, please update and verify (I hope)
Status: Fixed
Jul 4, 2011
Project Member #15 bre...@gmail.com
Similar issue was fixed for other shaders by Robert (dogg360):
http://www.gitorious.org/fg/fgdata/commit/38d1bdfe9fcd5d6277e909e32958e62815c70e45
Jul 4, 2011
#16 rna...@gmail.com
Thank you Stuart, Gijs and James.

Now everything looks as it should (and it's cool! :)

- Leonardo
Sign in to add a comment

Powered by Google Project Hosting