[Development] Qt3d: Scene32d framebuffer size

Łukasz Korbel lkorbel at milosolutions.com
Wed Jan 20 16:47:34 CET 2016


I'm not sure of the source of problem so first quick introduction:

1. I want to set Camera properly to show object in Scene3d which is smaller
then QWindow.
2. I want to make proper mapping between qml view 2d coordinates and scene
3d coordinates (for example place some 3d object at location pointed by
mouse click).

I've solved those two issue in example qml code attached to the message.
This example lead to my actual question:

It looks like Scene3d frame buffer is somehow bound to dimension of
QWindow. So If I set Scene3d to be smaller it shows only fragment of
framebuffer. More precisely its part cut from left-bottom corner of buffer
matching scene size. Does it expected behaviour for this class? It leads to
few "funny", additional computations in order to set camera properly.

If I making some mistake by mentioning frame bufffer in this context then I
apologize. Still hope that my example explains what is a problem. I guess
it is worth discussing with someone involved in development and maybe its
not a bug, so I've raised topic here.


*Łukasz Korbel *
Senior Software Developer
Email: lkorbel at milosolutions.com
Skype: lukasz_korbel
*Milo Solutions*
www.milosolutions.com | Facebook <https://www.facebook.com/theMiloSolutions>
| Twitter <https://twitter.com/milosolutions>
Disclaimer: This e-mail and any attachments contain information that may be
privileged or confidential and is the property of Milo Solutions. If you
are not the intended recipient, please notify me immediately by replying to
this e-mail, and then delete it. Any unauthorised
dissemination, distribution, copying or use of this communication is
strictly prohibited. The contents of an attachment to this e-mail may
contain software viruses, which could damage your own computer system.
Although this e-mail and any files attached to it may have been checked
with virus detection software before transmission you should carry out your
own virus checks before opening the attachment. No liability can be
accepted for any damage which you may sustain as a result of software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160120/554ff650/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.qml
Type: text/x-qml
Size: 3295 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160120/554ff650/attachment.bin>

More information about the Development mailing list