Re: [Interest] How to set absolute Qt3D::QCamera rotation/orientation

2016-06-17 Thread Sean Harmer
Hi, On Friday 17 June 2016 13:36:40 Oleg Evseev wrote: > Qt3DRender::QCamera as an QEntity has QTransform component. You can get it > with help of Qt3DCore::QTransform *transform() const function and then > setTranslation, setRotation or setMatrix for it as you wish. > > Maybe that is what are yo

Re: [Interest] How to set absolute Qt3D::QCamera rotation/orientation

2016-06-17 Thread Oleg Evseev
Qt3DRender::QCamera as an QEntity has QTransform component. You can get it with help of Qt3DCore::QTransform *transform() const function and then setTranslation, setRotation or setMatrix for it as you wish. Maybe that is what are you looking for? Regards, Oleg. 2016-06-08 14:32 GMT+03:00 Ola Røe

[Interest] How to set absolute Qt3D::QCamera rotation/orientation

2016-06-08 Thread Ola Røer Thorsen
I need to set a Qt3D::QCamera orientation directly. I've got the position in a QVector3D and the rotation in a QQuaternion. I can't seem to find any API for this. The "rotate"-function just adds my quaternion to the existing orientation which is not what I'm looking for. Is there some better way to