Hi, sorry, just found it early on Friday. Code now look like this:
g->renderOptions = OSG::RenderOptions::create(); //g->renderOptions->editUseGLFinish() = true; g->renderOptions->editStatistic() = false; //g->renderOptions->editPolygonMode() = GL_FILL; g->renderOptions->editTwoSidedLighting() = true; //g->renderOptions->editSpecTexLighting () = false; //g->renderOptions->editSortTrans () = false; //g->renderOptions->editZWriteTrans () = false; //g->renderOptions->editLocalLights () = false; g->renderOptions->editCorrectTwoSidedLighting() = true; //g->renderOptions->editOcclusionCulling() = true; //g->renderOptions->editOcclusionCullingMode() = 0; //g->renderOptions->editOcclusionCullingPixels() = 10; //g->renderOptions->editAntialiasing() = true; //g->renderOptions->editAntialiasingDistance() = 10.0f; //g->renderOptions->editAntialiasingScale () = 1.0f; //g->renderOptions->editAntialiasingTrigger () = 0; g->renderOptions->editFrustumCulling () = (config.getCulling() == 1); g->renderOptions->editBackfaceCulling () = false; //g->renderOptions->editSmallFeatureCulling () = true; //g->renderOptions->editSmallFeaturePixels () = 10.0f; //g->renderOptions->editSmallFeatureThreshold() = 10; //g->renderOptions->editFirstFrame () = true; //g->renderOptions->editDepthOnlyPass() = false; //g->renderOptions->editLightModelAmbient(); //g->renderOptions->editFogColor (void); //g->renderOptions->editFogRange (void); //g->renderOptions->editFogDensity (void); //g->renderOptions->editFogMode (void); //g->renderOptions->editMultiSample () = true; //g->renderOptions->editMultiSampleFilterMode() = 0; and on the window g->win->editSFRenderOptions()->setValue(g->renderOptions); Btw how does it behave in a cluster setup (normally the windows are locally created and need local RenderOptions, I guess)? Regards, Christoph On 13.04.2012 20:27, Carsten Neumann wrote: > Hello Christoph, > > On 04/12/2012 09:54 AM, "Christoph Fünfzig" wrote: >> while scanning the OpenSG 2.0 source tree, I found >> OSGRenderOptions.h/OSGRenderOptionsBase.h >> >> Here all global render options are collected, but >> the class RenderOptions cannot be instantiated directly. >> So how to activate TwoSidedLighting for example??? > it's derived from FieldContainer (the direct parent is Attachment) and > like all of those you need to use the static member function create() to > make an instance. > > Cheers, > Carsten > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Opensg-users mailing list > Opensg-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users