Sorry I found my bug, I forget to change the up vector. Does the up vector be given with the view center to avoid this kind of forget?
I also think that it can be helpfull if there was asserts on computations resulting in nan values. 2016-03-16 15:48 GMT+01:00 Xavier Bigand <flamaros.xav...@gmail.com>: > Hi, > > I have some issue when setting my camera in orthographic mode. > > I saw with nsight that the mvp uniform that is passed to the vertex shader > have all values set to nan, it is the same for the eye uniform of the > fragment shader. > > I am setting the orthographic projection like this : > lens()->setOrthographicProjection(-10.0f, 10.0f , -7.0f, 7.0f , 0.004f, > 200.0f); > > And set the transform with following code : > setPosition(QVector3D(0.0f, 100.0f, 0.0f)); > setViewCenter(QVector3D(0.0f, 99.0f, 0.0f)); > > > May I missed something or it is a bug? > > > PS: I am using Qt 5.6 > > -- > Xavier > -- Xavier
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest