Re: [Interest] About the coordinator between the texture and vertex in opengl
Hi, Sorry that I am still not understand it clearly, let’s begin with follow example: If I have a vertex array as bellow: GLint vert[4 * 3]= { -1, 1, 0, -1, -1, 0, 1, 1, 0, 1, -1, 0 }; And a rectangle will be drawn by: glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(3, GL_FIXED, 0, vert); glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); And if I want to bind a texture to this object without rotation, so how to decide the coordinator of the texture ? Thanks, Song From: interest-bounces+song.7.liu=nokia@qt-project.org [mailto:interest-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of ext Till Oliver Knoll Sent: Saturday, December 29, 2012 10:09 PM To: Qt Project Subject: Re: [Interest] About the coordinator between the texture and vertex in opengl Am 29.12.2012 um 12:52 schrieb song.7@nokia.commailto:song.7@nokia.com: ... The problem is about binding a texture to an object, but i am quite not understanding how is the texture coordinator decided according to the vertex coordinator ? Your question is indeed a little bit off-topic, but your assumption about OpenGL experts here on this list is probably true (disclaimer: it's been quite some while I did some OpenGL code, and that was back when OpenGL 1.4 was current, so expert doesn't necessarily include me ;)). If you haven't done already study this example: http://doc.qt.digia.com/qt/opengl-textures.html specifically http://doc.qt.digia.com/qt/opengl-textures-glwidget-cpp.html In GLWidget::makeObject you'll see how for every vertex (world coordinates are usually denoted as X, Y, Z) a corresponding texture coordinate (usually denoted U, V) is specified. That data is then passed on to OpenGL as array with glTexCoordPointer (the non-OpenGL ES 2 code path) or as array attribute to the GL shader program. Cheers, Oliver ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] About the coordinator between the texture and vertex in opengl
hi, i am new to opengl, and expect there are some experts of qt opengl in this community, so i would ask some opengl questions here. The problem is about binding a texture to an object, but i am quite not understanding how is the texture coordinator decided according to the vertex coordinator ? Could someone share something about it ? Many thanks ! Thanks, Song ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] About copying the image buffer with alpha blending
Is the premultiplied specified when creating QImage or other ? From: interest-bounces+song.7.liu=nokia@qt-project.org [mailto:interest-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of ext Till Oliver Knoll Sent: Wednesday, August 29, 2012 5:04 PM To: Qt Project Subject: Re: [Interest] About copying the image buffer with alpha blending Am 29.08.2012 um 09:53 schrieb song.7@nokia.commailto:song.7@nokia.com: Hi, We found that QPainer::drawImage takes 30~50ms for one 150*114 image, it seems a little slow. Make sure all images are using *premultiplied* alpha values when doing image compositing. Does that help? Cheees, Oliver ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] About copying the image buffer with alpha blending
QImage(const QString fileName, const char *format = 0); If I want to use Format_ARGB8565_Premultiplied, so what’s the format string in above constructor ? Thanks, Song From: interest-bounces+song.7.liu=nokia@qt-project.org [mailto:interest-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of Liu Song.7 (Nokia-MP/Beijing) Sent: Wednesday, August 29, 2012 5:54 PM To: till.oliver.kn...@gmail.com; interest@qt-project.org Subject: Re: [Interest] About copying the image buffer with alpha blending Is the premultiplied specified when creating QImage or other ? From: interest-bounces+song.7.liu=nokia@qt-project.orgmailto:interest-bounces+song.7.liu=nokia@qt-project.org [mailto:interest-bounces+song.7.liu=nokia@qt-project.org]mailto:[mailto:interest-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of ext Till Oliver Knoll Sent: Wednesday, August 29, 2012 5:04 PM To: Qt Project Subject: Re: [Interest] About copying the image buffer with alpha blending Am 29.08.2012 um 09:53 schrieb song.7@nokia.commailto:song.7@nokia.com: Hi, We found that QPainer::drawImage takes 30~50ms for one 150*114 image, it seems a little slow. Make sure all images are using *premultiplied* alpha values when doing image compositing. Does that help? Cheees, Oliver ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] AnimatedImage in Qt
Hi, I have one PNG image with frame animation, so how can I show one specific frame in Qt ? Many thanks ;) Thanks, Song ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] AnimatedImage in Qt
I just find the QMovie, can it work with my case ? From: interest-bounces+song.7.liu=nokia@qt-project.org [mailto:interest-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of Liu Song.7 (Nokia-MP/Beijing) Sent: Tuesday, August 28, 2012 10:17 AM To: interest@qt-project.org Subject: [Interest] AnimatedImage in Qt Hi, I have one PNG image with frame animation, so how can I show one specific frame in Qt ? Many thanks ;) Thanks, Song ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] About qxmlstream
Hi, Can the Qt XML handle the content as below ? title Hello / Any help is appreciated ;) Thanks, Song ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt on Windows Phone 8
as they are supporting stuff like PhoneGap, HTML5, etc. They are supporting different Game middleware, but HTML5 is just another application type. So the developer can write the application with C++/XAML, C#/XAML, JS/HTML5, then how about the C++/QML pair? It seems to be similar with C++/XAML... Personally, I don't like this duplication... But if there are really good and massive Mobile apps written by C++/QML, it would be worthy to support Qt on WP8... Else if you start to write a new apps you can use the C++/XAML if you choose native code... Just my personal thoughts, please argue. -Original Message- From: interest-bounces+song.7.liu=nokia@qt-project.org [mailto:interest-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of ext Harri Pasanen Sent: Thursday, June 21, 2012 4:40 PM To: interest@qt-project.org Subject: Re: [Interest] Qt on Windows Phone 8 Indeed, and as I wrote before it would be logical for Nokia to officially support Qt on Windows 8. Otherwise they are truly throwing out the baby with the bathwater. Someone said that Microsoft does not like cross platform, but I don't quite buy that argument, as they are supporting stuff like PhoneGap, HTML5, etc. Harri On 06/21/2012 09:10 AM, Turunen Tuukka wrote: Based on the announcement yesterday that seems to be technically feasible, and possibly quite straightforward task to create the needed items to run Qt nicely in WP8. Definite answer depends on how that platform actually becomes, how are the rules for delivery (app stores etc) and finding the needed parties to create it. But it can certainly be said that it looks much more possible than before. -- Tuukka -- -- *Lähettäjä:* interest-bounces+tuukka.turunen=digia@qt-project.org [interest-bounces+tuukka.turunen=digia@qt-project.org] käyttäjän lucas.betsch...@crypto.ch [lucas.betsch...@crypto.ch] puolesta *Lähetetty:* 21. kesäkuuta 2012 9:49 *Vastaanottaja:* interest@qt-project.org *Aihe:* [Interest] Qt on Windows Phone 8 Will Qt be avaiable for WP8 since it supports C++ ? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Warining about: Project WARNING: QtGui cannot have a QT of gui
Hi, I am building the Qt5, but could somebody point out what's the possible cause of: Project WARNING: QtGui cannot have a QT of gui ? Any information is appreciated ;) Thanks, Song ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest