[Qt-interest] View JPEG in QGLWidget
Constantin Makshin
cmakshin at gmail.com
Tue Aug 2 12:12:58 CEST 2011
OK, I think I've found the source of the problem — incorrect vertex coordinates. In 3D graphics view-space both X and Y coordinates lie in the [-1, 1] range, not [0, width] [0, height] (these are ranges for screen-space coordinates).
The attached tarball contains fixed version of the code. I also removed most debugging stuff and other unneeded things to make the code cleaner and easier to read.
On Monday, August 01, 2011 10:52:24 AM Brilliantov Kirill Vladimirovich wrote:
> > Could you create a small example to demonstrate the problem (with some static JPEG image of the same size as your camera generates)? That would allow others, including me, perform a deeper "research" to find a solution.
>
> Hello Constantin!
> Please see sources in attache (opengl.zip (690 kB)).
>
> MD5: 5db5a4a76266636aef69ecc9b87d778e
> SHA1: c66cf159f14076953cd06f59e43c94b351a9b26c
> SHA256: 1361b90d991357803746df9873b82dda5d7e04902045ca8b95c3a8945d894e4f
>
> P.S. Sorry, I create zip-archive because gmail don't accept tar.gz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opengl.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 706456 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110802/bef71f21/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110802/bef71f21/attachment-0001.bin
More information about the Qt-interest-old
mailing list