Menu

#335 Shader rendering on 777-200ER not working on ATI Radeon

Fixed
nobody
2011-07-04
2011-06-03
Anonymous
No

Originally created by: rna... (code.google.com)@gmail.com

*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 [r11bb6ef1466a64c966479f39e0526da03ce1b33c] Sun May 29 09:34:56 2011 +0200
simgear commit [rc033979130b1c5822c5e9fc55bffc09632d5a48f] 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 [r2fca40ea65d9f2a6f8451c324bb4b82786f34f76]

*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.

2 Attachments

Related

Tickets: #264

Discussion

  • Anonymous

    Anonymous - 2011-06-03

    Originally posted by: bre... (code.google.com)@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

    Blockedon: 96 264
    Labels: ATi Rendering
    Status: NeedInfo

     
  • Anonymous

    Anonymous - 2011-06-03

    Originally posted by: bre... (code.google.com)@gmail.com

    (No comment was entered for this change.)

    Summary: Shader rendering on 777-200ER not working on ATI Radeon
    Cc: adams....@gmail.com

     
  • Anonymous

    Anonymous - 2011-06-03

    Originally posted by: rna... (code.google.com)@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

     
  • Anonymous

    Anonymous - 2011-06-03

    Originally posted by: bre... (code.google.com)@gmail.com

    Ok. Doesn't happen with all aircraft, since only few use shaders so far (it's a new feature).

     
  • Anonymous

    Anonymous - 2011-06-20

    Originally posted by: 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.

     
  • Anonymous

    Anonymous - 2011-06-23

    Originally posted by: 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

     
  • Anonymous

    Anonymous - 2011-06-23

    Originally posted by: adams.... (code.google.com)@gmail.com

    Works fine here on a ATI Mobility Radeon HD 4250 with propietary driver.

     
  • Anonymous

    Anonymous - 2011-06-24

    Originally posted by: rna... (code.google.com)@gmail.com

    The problem happens only with radeon driver and not with fglrx.

     
  • Anonymous

    Anonymous - 2011-07-03

    Originally posted by: zakalawe@mac.com

    This happens with the CRJ-700/900 too - same exterior shader used i guess.

     
  • Anonymous

    Anonymous - 2011-07-03

    Originally posted by: stuar... (code.google.com)@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

     
  • Anonymous

    Anonymous - 2011-07-03

    Originally posted by: 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

     
  • Anonymous

    Anonymous - 2011-07-04

    Originally posted by: rna... (code.google.com)@gmail.com

    Thank you Stuart, Gijs and James.

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

    - Leonardo

     

Log in to post a comment.

MongoDB Logo MongoDB