[Interest] Qt3DCore::QTransform::fromAxisAndAngle

2017-04-05 Thread Igor Mironchik
Hello, What does Qt3DCore::QTransform::fromAxisAndAngle units of angle expect? Degs or rads? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Writing big pictures to file

2017-04-05 Thread Petric Frank
Hello, i have an application which writes pictures to *.png files. Some of them are getting rather big - width becomes in the range on 15 pixels. If the width grows above about 32k the file is somehow corrupt. Symptom here is that all drawings with x coordinates > 32K are cutted in the

Re: [Interest] QEntity & QTransform

2017-04-05 Thread Andy
If I understand your question, there's no need to remove/add the component - just change the QTransform. Everything will update using magic. --- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney On Wed, Apr 5, 2017 at 2:50 PM, Igor Mironchik

Re: [Interest] Applying transformation

2017-04-05 Thread Konstantin Shegunov
On Wed, Apr 5, 2017 at 5:35 PM, Igor Mironchik wrote: > But why it can be needed in 3D? > If the matrix is unitary (i.e. a rotation matrix), that's the inverse transform, but a general affine transformation is not unitary. In the common case it's just the application

[Interest] QEntity & QTransform

2017-04-05 Thread Igor Mironchik
Hello guys, Is it normal practice? removeComponent( d->m_transform ); d->m_transform->setScale( 0.5f ); addComponent( d->m_transform ); If I want to apply changed transformation... Or for such tasks there is a better solution? ___ Interest

Re: [Interest] Qt3D, custom mesh and materials

2017-04-05 Thread Sean Harmer
Are the image files actually found? I.e. can you load them into a QImage using those paths? Do you have the qtimageformats module installed for the webp format? If all of the above checks out, can you post a small compilable example that reproduces the issue please? Cheers, Sean On

Re: [Interest] WebEngineView memory cache

2017-04-05 Thread Jani Tykka
Thanks Kai, Created https://bugreports.qt.io/browse/QTBUG-59951 Jani On Wed, Apr 5, 2017 at 1:06 PM, Kai Koehne wrote: >> -Original Message- > >> [...] > >> WebEngineViews has possibility to set: > >> profile.httpCacheType: WebEngineProfile.MemoryHttpCache > >> > >>

[Interest] Qt3D, custom mesh and materials

2017-04-05 Thread Helmut Mülner
Another question for the Qt3D experts: I created a custom mesh by defining the following attributes: position, normal, index, texCoord. If I use a PhongMaterial, the mesh displays nicely: auto material = new Qt3DExtras::QPhongMaterial(); material->setAmbient(QColor(85, 85, 128));

Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik
05.04.2017 17:02, Sean Harmer пишет: On Wednesday 05 April 2017 16:30:52 Igor Mironchik wrote: Hi, 05.04.2017 16:12, Sean Harmer пишет: On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote: Hello, Can I apply Qt3DCore::QTransform to the QVector3D? How can I calculate new QVector3D if

Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik
Hi, But the same question as applied to 3D world, what the difference between 'M v' and 'v M'. I know that 'M v' applies transformation matrix to the vector. I understand it. And yes, I restored a little a gap in linear algebra. But I can't understand what 'v M' will give me in 3D world.

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Awesome, I have it working, thanks very much for putting up with all my questions :D Mark -Original Message- From: Konstantin Tokarev [mailto:annu...@yandex.ru] Sent: 05 April 2017 15:13 To: Mark Tucker ; Kai Koehne ; Nibedit Dey

Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev
05.04.2017, 17:08, "Mark Tucker" : > Ah, there's a 5.5.1 tag in there, presumably that's what I would need? > > Now I need to read up on how to use this from git :) You just clone this repo, checkout 5.5.1 and build with qmake > > Thanks > > Mark > > -Original

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Ah, there's a 5.5.1 tag in there, presumably that's what I would need? Now I need to read up on how to use this from git :) Thanks Mark -Original Message- From: Konstantin Tokarev [mailto:annu...@yandex.ru] Sent: 05 April 2017 15:06 To: Mark Tucker ; Kai

Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev
05.04.2017, 07:50, "Nibedit Dey" : > Dear Sze-Howe, > > I haven't worked much in Qt web modules. But below is my understanding. > > With Qt 5.5 the Qt WebKit module is > deprecated:(https://wiki.qt.io/New-Features-in-Qt-5.5#Deprecated_Functionality) FWIW, Qt WebKit is

Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev
05.04.2017, 17:03, "Mark Tucker" : > I'm not using the SDK installer - I compiled my own version of Qt from the > 5.5.1 sources. There doesn't seem to be anything included in that tarball > that is the QtWebView module. > > Is it a separate download? I think you can

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
I'm not using the SDK installer - I compiled my own version of Qt from the 5.5.1 sources. There doesn't seem to be anything included in that tarball that is the QtWebView module. Is it a separate download? Mark -Original Message- From: Konstantin Tokarev [mailto:annu...@yandex.ru]

Re: [Interest] Applying transformation

2017-04-05 Thread Sean Harmer
On Wednesday 05 April 2017 16:30:52 Igor Mironchik wrote: > Hi, > > 05.04.2017 16:12, Sean Harmer пишет: > > On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote: > >> Hello, > >> > >> Can I apply Qt3DCore::QTransform to the QVector3D? > >> > >> How can I calculate new QVector3D if

Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev
05.04.2017, 16:58, "Mark Tucker" : > Where do I install it from? Is it a configure option? If you are using Qt SDK installer, you probably need to build it from source, as there is no binary component for 5.5.1 or earlier > > Mark > > -Original Message- >

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Where do I install it from? Is it a configure option? Mark -Original Message- From: Konstantin Tokarev [mailto:annu...@yandex.ru] Sent: 05 April 2017 14:53 To: Mark Tucker ; Kai Koehne ; Nibedit Dey ; Sze Howe Koh

Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev
05.04.2017, 16:45, "Mark Tucker" : > Hi Kai, > > My problem is that despite having successfully compiled and installed both > the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux > platform, the QML statement You need to install QtWebView module >

Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik
Hi, You are right. I fully forgot all this things. And now I'm trying to restore the gap. 05.04.2017 16:44, Oleg Evseev пишет: Hi, Igor. With all due respect, looking on your questions, it seems that you have huge knowledge gap in linear algebra. It would be wise to firstly read how

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Hi Kai, My problem is that despite having successfully compiled and installed both the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux platform, the QML statement import QtWebView 1.0 Reports as being uninstalled/not available when I attempt to run my QML app on my Linux

Re: [Interest] Applying transformation

2017-04-05 Thread Oleg Evseev
Hi, Igor. With all due respect, looking on your questions, it seems that you have huge knowledge gap in linear algebra. It would be wise to firstly read how transformations can be represented by matrices: https://en.wikipedia.org/wiki/Transformation_matrix

Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik
Hi, 05.04.2017 16:12, Sean Harmer пишет: On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote: Hello, Can I apply Qt3DCore::QTransform to the QVector3D? How can I calculate new QVector3D if Qt3DCore::QTransform will be applied to it, in other words? The transformation is stored in the

Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik
Hi, 05.04.2017 16:12, Sean Harmer пишет: On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote: Hello, Can I apply Qt3DCore::QTransform to the QVector3D? How can I calculate new QVector3D if Qt3DCore::QTransform will be applied to it, in other words? The transformation is stored in the

Re: [Interest] Applying transformation

2017-04-05 Thread Sean Harmer
On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote: > Hello, > > Can I apply Qt3DCore::QTransform to the QVector3D? > > How can I calculate new QVector3D if Qt3DCore::QTransform will be > applied to it, in other words? The transformation is stored in the matrix property. Pre-multiply your

Re: [Interest] Plane rotations

2017-04-05 Thread Mike Chinander
The following is equivalent to your equation: float cosAngle = QVector3D::dotProduct(v1.normalized(), v2.normalized()); Your numerator is the dot product and the denominator does the normalization (makes them unit vectors). On Wed, Apr 5, 2017 at 7:50 AM, Igor Mironchik

[Interest] Applying transformation

2017-04-05 Thread Igor Mironchik
Hello, Can I apply Qt3DCore::QTransform to the QVector3D? How can I calculate new QVector3D if Qt3DCore::QTransform will be applied to it, in other words? ___ Interest mailing list Interest@qt-project.org

Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik
Hi, 05.04.2017 15:13, Sean Harmer пишет: Yes, just use the dot product. You want to say, that QVector3D::dotProduct() will give me an angle? Sean On Wednesday 05 April 2017 14:59:48 Igor Mironchik wrote: Hi, I Googled it and found: The cos of angle between vectors is: |(ax*bx + ay*by +

Re: [Interest] Plane rotations

2017-04-05 Thread Sean Harmer
Yes, just use the dot product. Sean On Wednesday 05 April 2017 14:59:48 Igor Mironchik wrote: > Hi, > > I Googled it and found: > > The cos of angle between vectors is: > |(ax*bx + ay*by + az*bz) > > sqrt(ax*ax + > ay*ay + az*az) *

Re: [Interest] QML WebView modules

2017-04-05 Thread Nibedit Dey
Thank you Kai Koehne for the clarification. On Wed, Apr 5, 2017 at 4:51 PM, Kai Koehne wrote: > > > > -Original Message- > > From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org] > > [..] > > With Qt 5.5 the Qt WebKit module is

Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik
Hi, I Googled it and found: The cos of angle between vectors is: |(ax*bx + ay*by + az*bz) sqrt(ax*ax + ay*ay + az*az) * sqrt(bx*bx + by*by + bz*bz)| 05.04.2017 14:52, Igor Mironchik пишет: 05.04.2017 14:45, Igor Mironchik пишет:

[Interest] HowTo detect Android / iBeacons (Qt 5.8)

2017-04-05 Thread ekke
I'm just developing a new example app to detect and manage Bluetooth LE devices from Qt 5.8 (Android / iOS) While implementing the BT LE Scanner part I got the question HowTo detect if a discovered BT LE Device is an iBeacon / Android - AltBeacon. Is there a way to do this with Qt 5.8 BT LE

Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik
05.04.2017 14:45, Igor Mironchik пишет: Hi, 05.04.2017 14:29, Paolo Angelelli пишет: Just cross N and M to get the vector around which to rotate. Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform, and construct it with fromAxisAndAngle(const QVector3D , float angle)

Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik
Hi, 05.04.2017 14:29, Paolo Angelelli пишет: Just cross N and M to get the vector around which to rotate. Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform, and construct it with fromAxisAndAngle(const QVector3D , float angle) Ok, I can rotate around the right axis. But

Re: [Interest] Plane rotations

2017-04-05 Thread Paolo Angelelli
Just cross N and M to get the vector around which to rotate. Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform, and construct it with fromAxisAndAngle(const QVector3D , float angle) On Wed, 5 Apr 2017 14:18:56 +0300 Igor Mironchik wrote: >

Re: [Interest] QML WebView modules

2017-04-05 Thread Kai Koehne
> -Original Message- > From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org] > [..] > With Qt 5.5 the Qt WebKit module is deprecated:(https://wiki.qt.io/New- > Features-in-Qt-5.5#Deprecated_Functionality) > > QWebView uses WebKit as the backend. > > QWebEngineView

[Interest] Plane rotations

2017-04-05 Thread Igor Mironchik
Hello, Let's say I have two vectors - N (normal vector to plane P1) and M (normal vector to plane P2). How to calculate x, y, z axis rotations angles for plane P2 to make plane P2 parallel to P1? How to calculate x, y, z axis rotations angles for plane P2 to rotate it around vector N?

Re: [Interest] Qt 5.9 Beta snapshot #423 Qt3d paintedtexture-cpp

2017-04-05 Thread Sean Harmer
Hi, On 05/04/2017 09:18, Helmut Mülner wrote: I played a little with Src\qt3d\tests\manual\paintedtexture-cpp in the current 5.9 Beta snapshot (on Windows 10, using VS2017 with the precompiled msvc2015 32-bit binary). I was surprised that the text with the current time is upside down. Qt

[Interest] Qt 5.9 Beta snapshot #423 Qt3d paintedtexture-cpp

2017-04-05 Thread Helmut Mülner
I played a little with Src\qt3d\tests\manual\paintedtexture-cpp in the current 5.9 Beta snapshot (on Windows 10, using VS2017 with the precompiled msvc2015 32-bit binary). I was surprised that the text with the current time is upside down. Qt 5.8.0 on Windows 10 using VS2013 and the precompiled

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Hi All, Thanks for your input. Seems like due to the Qt version I need to use, I may have to have different QML code for my target Android and Linux platforms. I have ways of working around this, and this isn't for anything that's going public anyway so I'll figure something out. Thanks

Re: [Interest] WebEngineView memory cache

2017-04-05 Thread Kai Koehne
> -Original Message- > [...] > WebEngineViews has possibility to set: > profile.httpCacheType: WebEngineProfile.MemoryHttpCache > > Even though memory cache is set I can see that WebCache directory is > created and data written there. Is this a bug or do you think it works as > expected?

Re: [Interest] Is there a way to simulate serial port data?

2017-04-05 Thread Majid Kamali
You can emit readyRead signal explicitly where you are using that class. mySerialPort msp; emit msp.readyRead(YourByteArray); because signal is defined as public. But this may not be a good way for testing On Wed, Mar 29, 2017 at 4:32 PM, Murphy, Sean wrote: > > I have to