|
|
From: Oleg Romanenko [mailto:oleg@xxxxxxxxxxxx]
> I have a task to develop a small OpenGL program. Details of
> the program
> below. Would you please tell me if it is possible to do with Qt, and
> what kind of difficulties would I meet?
>
> I will have a small world in OpenGL. I should be able to load OpenGL
> models (3d studio or Maya) into this world. Also, I will need
> to be able to walk in the world (...). The
> main problem I will need to render 4 or more cameras (viewports) at
> once, and results of it should be in 4 different windows in one
> applications.
Hi Oleg,
I do not see a reason why it should not be possible to do this with Qt.
In fact, we have an application with multiple OpenGL widgets, partly
even in stereo, showing more or less the same scene. The problems you
might meet are mostly related to OpenGL rather than to Qt (e.g. making
the correct context current).
One pitfall might be that you should use a shared context in order to
get your textures and display lists shared between the different
viewports. We usually use the constructor QGLWidget::QGLWidget
(sharedFormat, ... , ... , sharedWidget, ...), with sharedWidget set to
0 only for the first widget to get this working.
Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth
--
INPHO GmbH * Smaragdweg 1 * 70174 Stuttgart * Germany
phone: +49 711 2288 10 * fax: +49 711 2288 111
mailto:Rainer.Wiesenfarth@xxxxxxxx * www.inpho.de
Leader in Photogrammetry and Digital Surface Modelling
Please visit www.inpho.de
|
|