Hi, Gerrit Voss schrieb: > Hi, > > On Wed, 2009-02-11 at 12:20 +0800, Gerrit Voss wrote: > >> Hi, >> >> On Tue, 2009-02-10 at 20:13 -0600, Carsten Neumann wrote: >> >>> Hello Christoph, >>> >>> Christoph Schäfer wrote: >>> >>>> what changed in the attached patch against r1720: >>>> -- fixed link problem (as mentioned 9. feb) >>>> -- fixed linux build with x11 >>>> -- testPassiveQT4 works >>>> -- testWindowQT4_qt has problems (blue render window on win32 / >>>> segmentation fault on linux) >>>> >>>> I think regarding the OpenSG2 changes the basics are almost done. I'm >>>> not sure whats the problem with the OSGQTWidget right now, I simply lack >>>> the needed OpenGL knowledge :/ Any help is welcome here ;-) >>>> >>> I did not yet get to look into this much, it crashes when creating the >>> OpenGL context. >>> >> visInfo.visualid = XVisualIDFromVisual( >> ((Visual*)QX11Info::display())); >> >> does not look to sound. >> >> > > few more hints ;-) after fixing the above you will get a blue > window on Linux too, reason is the setup in testWindowQT4_qt > > 1) you are missing 2 commitChanges, one before renderAllViewports > and one before querying the volume (after the torus creation) > > 2) you work with a near value of a 100, so the torus is in front > of your near clipping plane, hence you don't see it. > > 3) MyOSGQGLWidget::initializeGL is never called so you run without > depth testing enabled. > > that's all I can see after a quick glance. > > kind regards, > gerrit > Thank you for the hints! Now I can see the torus, but I can see through it from one side and the background is still blue (maybe this is default of OpenSG - I don't know ;-) ).What would be the proper place to call initializeGL()? Constructor of the OSGQGLWidget?
Cheers, Christoph ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
