Menu

#386 Stereoscopic view modes broken with >= OSG 3.0.0

Verified
nobody
Immediate
2011-07-29
2011-07-23
Anonymous
No

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

What steps will reproduce the problem?
1. Enable any of the stereoscopic view modes

What is the expected output? What do you see instead?
Scenery rendering is completely broken when a stereoscopic mode is enabled (see screen shots). Display returns to normal when stereoscopic view mode is switched to "off" again.

What FlightGear version (or GIT date)?
2.4.0 + 2.5.0 today

What operating system and graphics card?
Linux, OSG 3.0 (probably the cause...) and NVidia GeForce 210

Might be related to issue #362 - though that was on ATI. But (probably) also triggered by OSG3.0. If this proves to be a OSG3.0 issue, we should consider if releasing Windows binaries with OSG 3.0 as default is a good decision for the FG 2.4.0 release.

2 Attachments

Related

Tickets: #362

Discussion

  • Anonymous

    Anonymous - 2011-07-27

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

    I can confirm this bug with OSG 3.0.0.
    Anaglyphic 3d works fine with OSG 2.8.5

    Looks like another OSG oddity, looks like we shouldn't ship with 3.0.0 in 2.4.0!

    Status: Accepted

     
  • Anonymous

    Anonymous - 2011-07-27

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

    Torsten, does it affect all your machines (Mac/Linux/Windows)?

    I'll ask on osg-devel if anyone has successfully tested the feature recently. And they're working on a 3.0.1 (patch) release - if we're lucky...

     
  • Anonymous

    Anonymous - 2011-07-27

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

    (No comment was entered for this change.)

    Summary: Stereoscopic view modes broken with >= OSG 3.0.0

     
  • Anonymous

    Anonymous - 2011-07-27

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

    CCing: Mathias/Lauri as OSG and shader experts... The fluffy 3D clouds turn into colored blobs with OSG 3.0.0 when "OSG stereo" is enabled. Also cockpit surfaces are almost all black. Could the problem be related to all surfaces being rendered by shaders? Any other ideas why some areas could be affected while others are not?

    Cc: Mathias....@googlemail.com lauri.pe...@gmail.com

     
  • Anonymous

    Anonymous - 2011-07-27

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

    Same is on Windows with osg 3.0.0 with release/2.4.0 and next
    This is really a serious bug, we can't ship 2.4.0 with that one!

    Labels: -Priority-High Priority-Immediate

     
  • Anonymous

    Anonymous - 2011-07-27

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

    And this is not a shader issue. It also happens with shaders disabled. I've posted this at osg-devel and there were some helpful comments. See here:
    http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg51855.html

    @Mathias: Robert Osfield remembered some email discussion with you about OSG 3.0 changes, which broke some custom culling optimization/trick/hack for FG. Could that be related here? Flying over the mountains, I can see the problem also affect the shape of scenery elements - so it indeed seems culling related.

    And, as suggested by RobertO, it's probably a good idea to start a binary search, to identify which OSG change triggered the issue for us. OSG 2.9.13 seems already affected. We've been using OSG 2.9.9 for quite a while (FG2.2.0) - so I think that was still ok.

    Cc: -lauri.pe...@gmail.com

     
  • Anonymous

    Anonymous - 2011-07-27

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

    (No comment was entered for this change.)

    Blocking: 362

     
  • Anonymous

    Anonymous - 2011-07-27

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

    Reading the osg-users discussion, I assume one might want to check the simgear::EffectCullVisitor in simgear/scene/EffectCullvisitor.* if it has some customizations which are now broken. Maybe even disable it in src/Main/CameraGroup.cxx installCullvisitor function? Iirc disabling this makes all textures and other effects not work, but if the stereo mode then works correctly, it seems the custom cullvisitor is the culprit.

    Looking at the screenshots, it looks exactly like any surfaces having complex effects is not displayed correctly, but the geometry exists. I assume it is something in that cullvisitor.

     
  • Anonymous

    Anonymous - 2011-07-28

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

    On our presentation machine, the last working version (incl. stereo) of OSG is 2.9.5. From 2.9.6 and upwards, I get a pale blue screen and just the gui gets drawn. FG is working perfectly fine, but not a single piece of scenery is visible.
    Using latest nvidia driver and just a single window for fg.
    Please check if the stereo-bug comes in with 2.9.6...

     
  • Anonymous

    Anonymous - 2011-07-28

    Originally posted by: Mathias....@googlemail.com

    Ok,

    Does [rb3ad524cec5c0ff26aad91117558beef9d39edcd] committed a few minutes ago on next fix this problem?
    Also can anybody with a still alive osg 2.8 build double check that next still compiles/works?

    Mathias

     
  • Anonymous

    Anonymous - 2011-07-28

    Originally posted by: Mathias....@googlemail.com

    And, yes - I also observed a completely blue screen when switching to osg 3.0 for the first time.
    But the completely blue screen with osg-3.0 went away here when I did a complete rebuild from scratch of osg, simgear and flightgear.

    Mathias

     
  • Anonymous

    Anonymous - 2011-07-28

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

    FlightGear next compiles and runs fine with your patch and OSG 2.8.5
    Building with OSG 3.0.0 as I type...

    Interesting your blue screen went away... I tried several OSG versions today and did a make clean && make && make install for SimGear and FlightGear with each version change of OSG.
    2.9.5 worked fine, 2.9.6 did not, going back to 2.9.5 worked fine again. Will check later, if that's gone with your patch, too.

    Status: Testing

     
  • Anonymous

    Anonymous - 2011-07-28

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

    Mathias, you are my hero!
    1. stereo mode now works with osg 3.0.0 and your patch compiles with 2.8.5
    2. the blue screen goes away (as you said) after starting from scratch. make clean is  not enough, but
    rm -rf * && cmake /path/to/simgear-or-flightgear && make install
    did the trick.

    Issue solved for next - should we pick into 2.4.0? I'd say yes!

     
  • Anonymous

    Anonymous - 2011-07-28

    Originally posted by: Mathias....@googlemail.com

    Cherry picked and pushed into 2.4.0.

    And sorry for the bad branch I have at gitorious for some minutes. The push refspec was just incomplete when I hit the return button.
    It took me some time to find out how to get rid of that bad branch on gitorious again :-/

    I have changed the state to verified based on the last screenshot.

    Status: Verified

     
  • Anonymous

    Anonymous - 2011-07-29

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

    Also verified on Windows/release/2.4.0 -> works.

     
  • Anonymous

    Anonymous - 2011-07-29

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

    Yay, it also works over here. Thanks Mathias! *applause*

     

Log in to post a comment.

MongoDB Logo MongoDB