sajis997
15th December 2014, 18:39
Hello forum,
I am trying to draw a teapot as opengl underlay rendering and qt quick UI on top of the underlay to interact with the teapot. Since qt quick 2 uses opengl 2 for all of its rendering , i am using the compatibility profile with the modern opengl pipeline .
I am having QQuickView subclass as follows:
class Window : public QQuickView
{
Q_OBJECT
public:
explicit Window(QWindow *parent = 0);
public slots:
void renderOpenGLScene();
private:
QScopedPointer<AbstractScene> mScene;
QTime mTime;
};
All the opengl commands are initiated in the following class :
class TeapotTessellation : public AbstractScene, protected QOpenGLFunctions_4_3_Compatibility
{
Q_OBJECT
public:
explicit TeapotTessellation(QObject *parent = 0);
~TeapotTessellation();
//scene related functions
virtual void initialise();
virtual void update(float t);
virtual void render();
virtual void resize(int w,int h);
private:
void loadShaders();
GLSLShader *mTessellationShader;
TeapotVboPatch *mTeapotPatch;
....................
....................
};
I can see the teapot, but the QML scene is not behaving properly(spring animation of a rounded rectangle) and i get the following info in the cosole:
QSGContext::initialize: stencil buffer support missing, expect rendering errors
The qml code is tested separately and i works fine.
Where should i look into the debug this issue ?
I am trying to draw a teapot as opengl underlay rendering and qt quick UI on top of the underlay to interact with the teapot. Since qt quick 2 uses opengl 2 for all of its rendering , i am using the compatibility profile with the modern opengl pipeline .
I am having QQuickView subclass as follows:
class Window : public QQuickView
{
Q_OBJECT
public:
explicit Window(QWindow *parent = 0);
public slots:
void renderOpenGLScene();
private:
QScopedPointer<AbstractScene> mScene;
QTime mTime;
};
All the opengl commands are initiated in the following class :
class TeapotTessellation : public AbstractScene, protected QOpenGLFunctions_4_3_Compatibility
{
Q_OBJECT
public:
explicit TeapotTessellation(QObject *parent = 0);
~TeapotTessellation();
//scene related functions
virtual void initialise();
virtual void update(float t);
virtual void render();
virtual void resize(int w,int h);
private:
void loadShaders();
GLSLShader *mTessellationShader;
TeapotVboPatch *mTeapotPatch;
....................
....................
};
I can see the teapot, but the QML scene is not behaving properly(spring animation of a rounded rectangle) and i get the following info in the cosole:
QSGContext::initialize: stencil buffer support missing, expect rendering errors
The qml code is tested separately and i works fine.
Where should i look into the debug this issue ?