Hello Johannes,

Schaefer Johannes wrote:
> i am developing a simple opensg application with a qt4 gui. as implementation 
> methode i am using the passive window ( similar to 
> http://www.opensg.org/doc-1.6.0/QT.html#TutorialQTPassiveWindow ).
> Unfortunaly when i am loading vrml files there is a corrupt visualisation. if 
> i am creating a simple geometry, every thing is fine ( 
> http://img151.imageshack.us/img151/5971/correct.png ).
> in the most cases the object is only black ( 
> http://img257.imageshack.us/img257/4361/wrongelephant.png ), in some cases a 
> few parts of the object are colored (the vrml file has subobjects, 
> http://img7.imageshack.us/img7/8035/wrongcar.png ) and the stanford bunny 
> looks ugly ( http://img30.imageshack.us/img30/1448/wrongbunny.png ). in other 
> opensg applications (with qt3) the objects look ok.

hm, since you are saying the objects look ok in other OpenSG apps, I 
suspect that Qt4 changes OpenGL state and when rendering starts it is 
not reset to the OpenGL defaults, which in turn confuses OpenSG.
If you have an OpenGL debugger (e.g. bugle) you could try running your 
program under it and have it log OpenGL calls. If you insert some dummy 
GL call (e.g. glGetString(GL_VENDOR); ) before rendering with OpenSG you 
should be able to see the calls that happen before rendering starts. 
Comparing that with one of the programs that work you might be able to 
find what state is different.

Do the OpenSG Qt4 test programs (e.g. testWindowQT4_qt.cpp) work with 
your models?

        Cheers,
                Carsten

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to