Hello Björn,
Let me explain the very first problem I had:
I had to insert in my code a code of an other developer. It was
developed in pure OpenSG and used a GLUTWindow. I'm working with QT
3.3.4. Something I didn't say.. I'm working under Windows XP. Sorry for
that... Well, I gave a look at the exemples from OpenSG with QT and saw
the OSGQGLWidget in order to use a GLUTWindow. Unfortunately it didn't
work, actually it crashed as I invoked the constructor of OSGQGLWidget
and I didn't have any possibility to debug it. The debugger didn't go in
my constructor. And my class was only derived from OSGQGLWidget without
other modification (no invoke of GL commands in constructor, etc.). An
answer forthat problem was the one from Frederik. But I didn't want to
recompile this library because it's not so easy on Windows and I didn't
have a lot of time. So I tried another way, this time with the QGLWidget
of QT and a PassiveWindow. It worked but was slow and there was depth
ordering problems. For the rendering, since the only difference between
my code and the code of the other developer was the PassiveWindow, I
tried to find a way to use a GLUTWindow with a QGLWidget. Actually, it's
exactly the same way, we just have to initialise Glut somewhere, to
invoke glutCreateWindow and give the id to the GLUTWindow. I didn't use
the SimpleSceneManager too. And it works fine for the moment. Then I had
a Problem of depth ordering. I found very fast that a DrawAction was not
the right way but the RenderAction. That's it.
I will tried to find why OSGQGLWidget does not work, because if there is
problems with my way I should react very fast. May be it does not work
on Linux. I will try in a few days.
Let see how it will work and how much problems we will get. For the
moment everything is working fine but is also very simple. We don't use
multithreading etc.
Best regards.
Vincent
Björn Harmen Gerth wrote:
Hello,
hm, I didn't get the gist of the message below. Since
Vincent is using a RenderAction, everything should be
fine.
But I still wonder what this thread is all about.
Vincent, have you actually tried to find out why your
MyWidget does not work? I'm using OpenSG with Qt 3.3.3
and it works fine. I also derived my own widget to
include it in a GUI with menus and stuff and, well, it
works finde.
After all, a few weeks back Dirk explained to me that
using a PassiveWindow has the drawback that it doesn't
handle multithreading the way the "real" windows do.
And a GLUT window inside a Qt window is, as Dirk
already said, somehow weird. Who knows what kind of
bugs that might introduce.
Have you checked on what Fredrik Andersson wrote, that
you might have a library mismatch? Are you invoking
any gl commands inside the constructor of MyWidget,
where the GL context might not yet be active?
Björn
--- Dirk Reiners <[EMAIL PROTECTED]> schrieb:
Hi Vincent,
Vincent Honnet wrote:
Hello Dirk,
May be the difference of performance is coming
from the fact that I'm
using a RenderAction instead of DrawAction. Could
it be ?
Yup, that explains a lot. Yes, the DrawAction is
supposed to be much
slower and it does not do any transparency sorting,
it just traverses
and renders the graph. I don't recommend using the
DrawAction for
antyhing but really low-level debugging (and,
honestly, not even for that).
Dirk
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
--
Vincent Honnet
Photographie und Software Service
Mariahilfstr. 15
52062 Aachen
E-Mail: [EMAIL PROTECTED]
Tel.: 0241 400 8882
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users