|
From: Stuart B. <stu...@gm...> - 2020-03-28 14:26:23
|
Hi Fernando, On Fri, Mar 27, 2020 at 7:48 PM Fernando García Liñán wrote: > On Thu, Mar 26, 2020 at 11:14 PM Stuart Buchanan wrote: > > There is one major issue remaining around Compositor support for > > osm2city buildings, which I will look at next. > > I've added a small general guide in the wiki > (http://wiki.flightgear.org/Compositor#Porting_and_developing_Effects) > to porting Effects to the Compositor. I haven't added how to add > support for shadows yet but I'll add it soon. Feel free to ask > anything if you need any help. Perfect! That was exactly what I was looking for, and I've now got the osm2city buildings working with the default pipeline under the Compositor. I noticed in passing one oddity - the wiki suggests using technique number 10-19 for ALS, but model-combined.eff uses technique 4 for ALS with the model shader. I'm also getting a crash when using --compositor=Compositor/als, stacktrace below. -Stuart Error: caught signal 11: /lib/x86_64-linux-gnu/libc.so.6 : ()+0x3ef20 /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.435.21 : ()+0x1060728 /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.435.21 : ()+0xcde29a /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.435.21 : ()+0xb970a6 /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.435.21 : ()+0xcf0ab1 /home/stuart/FlightGear/next/install/lib/libosg.so.160 : osg::Geometry::drawPrimitivesImplementation(osg::RenderInfo&) const+0xda /home/stuart/FlightGear/next/install/lib/libosg.so.160 : osg::Geometry::drawImplementation(osg::RenderInfo&) const+0x249 /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderLeaf::render(osg::RenderInfo&, osgUtil::RenderLeaf*)+0xd9a /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderBin::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&)+0x165 /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderBin::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&)+0x8b /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderBin::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&)+0xbb /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderStage::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&)+0x346 /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderBin::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&)+0x8b /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderStage::drawInner(osg::RenderInfo&, osgUtil::RenderLeaf*&, bool&)+0x9b /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::RenderStage::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&)+0xa82 /home/stuart/FlightGear/next/install/lib/libosgUtil.so.160 : osgUtil::SceneView::draw()+0x20c /home/stuart/FlightGear/next/install/lib/libosgViewer.so.160 : osgViewer::Renderer::cull_draw()+0x4d6 /home/stuart/FlightGear/next/install/lib/libosg.so.160 : osg::GraphicsContext::runOperations()+0x379 /home/stuart/FlightGear/next/install/lib/libosgViewer.so.160 : osgViewer::ViewerBase::renderingTraversals()+0x1e3d ./src/Main/fgfs : fgOSMainLoop()+0x2e4 ./src/Main/fgfs : fgMainInit(int, char**)+0x9bf ./src/Main/fgfs : main()+0x232 /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main()+0xe7 ./src/Main/fgfs : _start()+0x2a Aborted (core dumped) |