Hello Carsten and Lars,

thanks for your advices. 
first i have tried the load the model without the help of qt (lars his advice).
NodePtr object = SceneFileHandler::the().read("object.wrl");
nothing changed.

@carsten
how can i compile the qt4 test programm? in the directory is no readme or 
anything else. can you post the commandoline option.

thank you,
johannes.

-----Ursprüngliche Nachricht-----
Von: Carsten Neumann [mailto:carsten_neum...@gmx.net]
Gesendet: Di 23.06.2009 17:20
An: opensg-users@lists.sourceforge.net
Betreff: Re: [Opensg-users] Problems with Qt4 + OSG 1.8 and loading VRML
 
        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

<<winmail.dat>>

------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to