Re: [Interest] [Qt3d] Line culling

2018-07-25 Thread Oleg Evseev
I have the same issue but with plane. If there is only one vertex inside camera frustum - entity get culled. --- With regards, Oleg 2018-03-14 11:54 GMT+03:00 Saif Suleiman : > Hi every one, > > Why when one of the two vertices of a line placed out side the camera > frustum, the whole line gets

Re: [Interest] [Qt3d] Scene camera manipulation

2018-05-24 Thread Mike Krus
> On 13 Mar 2018, at 13:03, Saif Suleiman wrote: > > Hi every one, > > Currently I am working on project that needs some camera manipulations, like : > • Fit scene in camera frustum. > > • Fit Entity or more than one in camera frustum. > > • Camera

Re: [Interest] [Qt3D] Render same geometry to multiple Scene3D nodes

2018-03-28 Thread Gil H
Hi Nikita, if you can visualize the different viewpoints inside a single Scene3D object with a custom frame graph and viewports, that would be easy.  See the Qt3D viewports example for that approach.  But I can imagine some scenarios that require a more flexible layout. If you need multiple

Re: [Interest] [Qt3d] Scene camera manipulation

2018-03-13 Thread Vincent Hui
Hi Saif, Perhaps, you can find answers from source code of qt3d-editor and qt 3d studio. Those are built on top of Qt 3D. Cheers, Vincent On 13 March 2018 at 21:03, Saif Suleiman wrote: > Hi every one, > > Currently I am

Re: [Interest] [Qt3D] any way to synchronize main thread with render thread ?

2018-01-17 Thread david crémoux
My mistake: I'm not on OnDemand render policy. On 18.01.2018 10:04, david crémoux wrote: Hello, While using Qt3D I'm trying to separate as much as possible the scene, rendering, and render window/widget. I'm not using Qt3DWindow, I'm using my own widget/surface. The thing is, when I'm

Re: [Interest] Qt3D: Correct way of using QBuffer and a compute shader

2018-01-17 Thread Michael Sué
Hi, I use attributes, like positionAttributes (for the vertices) and normalAttributes (for the normal vectors). Attributes contain the buffer, datatype and size information. But I think this is not essential. The buffer for vertices and normal are usual one big array, used in two blocks:

Re: [Interest] Qt3D: Correct way of using QBuffer and a compute shader

2018-01-16 Thread Konstantin Tokarev
16.01.2018, 20:29, "Esch Lorenz TU Ilmenau" : > Dear Qt Community, > > I am writing my first application using a compute shader based on Qt3D in > C++. My question: What is the correct way of updating the data needed by the > compute shader during run-time? This is

Re: [Interest] [Qt3D] 5.10.0 crash with OpenGL ES 2.0 on desktop

2017-12-19 Thread Gil H
Hi David, I logged this bug here: https://bugreports.qt.io/browse/QTBUG-64964 Feel free to comment on it to include your findings, and upvote so it actually gets addressed :) Cheers, Gil On 2017-12-18, 5:56 AM, "Interest on behalf of david crémoux"

Re: [Interest] [Qt3D] 5.10.0 crash with OpenGL ES 2.0 on desktop

2017-12-18 Thread david crémoux
On 18.12.2017 13:44, Konstantin Tokarev wrote: 18.12.2017, 09:05, "david crémoux" : Hello, I have a crash when forcing to use opengl es on desktop for 5.10.0 version (via: QApplication::setAttribute(Qt::AA_UseOpenGLES)). It comes from QT3D_UNIFORM_TYPE_IMPL

Re: [Interest] [Qt3D] 5.10.0 crash with OpenGL ES 2.0 on desktop

2017-12-18 Thread Konstantin Tokarev
18.12.2017, 09:05, "david crémoux" : > Hello, > > I have a crash when forcing to use opengl es on desktop for 5.10.0 > version (via: QApplication::setAttribute(Qt::AA_UseOpenGLES)). > It comes from QT3D_UNIFORM_TYPE_IMPL (graphicscontext_p.h:366), > m_rawByteSize is set to 0. >

Re: [Interest] [QT3D] Has anyone figured out how to use a QSkyboxEntity?

2017-11-18 Thread Igor Mironchik
Hi, On 19.11.2017 01:00, Pierre Chicoine wrote: This is the only place I found on the Internet that Igor sent me.https://github.com/igormironchik/3Dtree Thank Igor. Strange to note. It only works in his program in Kubuntu. When I try it, using his

Re: [Interest] [QT3D] Does anyone have an example of using QSkyboxEntity?

2017-11-16 Thread Pierre Chicoine
Hi Oleg I appreciate the reference. I typed it in my browser and found an entry in Qt tests but there no actualcode there. Except for the callout to main.qml from a cpp file but no main.qml. https://code.woboq.org/qt5/qt3d/tests/manual/skybox/main.cpp.html On Thu, Nov 16, 2017, 12:23 AM Oleg

Re: [Interest] [QT3D] Does anyone have an example of using QSkyboxEntity?

2017-11-16 Thread Oleg Evseev
qt3d\tests\manual\skybox\ 2017-11-16 2:27 GMT+03:00 Pierre Chicoine : > Has anyone figured out how to use a QSkyboxEntity? > > An example would be awesome. > > I've tried all sorts of techniques. I use C++ but I'm sure I could > translate a QML file if anyone has

Re: [Interest] Qt3D & Instancing

2017-11-15 Thread Paul Lemire
Hi Igor, Instancing is already supported by Qt3D. QGeometryRenderer has properties for instanceCount and firstInstance. https://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html When instanceCount is higher than 1, Qt3D will use instanced draw calls. Also QAttribute has a divisor property you

Re: [Interest] [QT3D] Does anyone have an example of using QSkyboxEntity?

2017-11-15 Thread Igor Mironchik
Hi, I used QSkyboxEntity in a small playing with Qt3D... https://github.com/igormironchik/3Dtree On 16.11.2017 02:27, Pierre Chicoine wrote: Has anyone figured out how to use a QSkyboxEntity? An example would be awesome. I've tried all sorts of techniques.  I use C++ but I'm sure I could

Re: [Interest] Qt3D Stencil example?

2017-11-03 Thread Jonathan Greig
Jonathan P. Greig aka redteam316 RIP 6/13/1984 - 2/7/2016 On Mon, Sep 25, 2017 at 3:25 PM, Gil H wrote: > Thanks very much for the example, Sean. It’s much clearer now that I see > RenderStates in use (for some reason I thought they only applied in Effect)… > > There is a

Re: [Interest] [Qt3D] Mixing C++ and QML

2017-10-21 Thread Xavier Bigand
Hello Sean, I don't really understand how to use QAbstractNodeFactory::createNode("QEntity") and it seems to be a part of private API which I prefer to avoid. But I found a simpler way, I have created a Class that inherit QEntity and in the constructor I simply set the it as parent of the other

Re: [Interest] [Qt3D] Mixing C++ and QML

2017-10-19 Thread Sean Harmer
Hi, you've hit one of the issues we did with exposing C++ and QML APIs. Namely, QQmlListProperty. This thing should ideally never have existed and instead support for properties of collections should have been added to QObject and the metaobject system. To avoid pulling in a QtQml

Re: [Interest] [Qt3D] Mixing C++ and QML

2017-10-19 Thread Jérôme Godbout
You can create your own MyQmlEntity class and expose a method that call it: class MyQMlEntity : public QEntity { Q_OBJECT Q_PROPERTY(VariantList components READ get_components WRITE set_components NOTIFY componentsChanged) Q_INVOKABLE void add(QObject* obj) {

Re: [Interest] [Qt3D] Mixing C++ and QML

2017-10-19 Thread Xavier Bigand
The issue is that QEntity doesn't reflect directly the qml type Entity, this is the same for many Qt3D classes. Here is the declaration of QEntity from qentity.h class QT3DCORESHARED_EXPORT QEntity : public QNode { Q_OBJECT public: explicit QEntity(QNode *parent = nullptr);

Re: [Interest] [Qt3D] Mixing C++ and QML

2017-10-19 Thread Jason H
> I am looking for a way to manage an Entity tree in C++ and the Scene > configuration in QML. My C++ code manage entities from a root node and I want > to move the Frame graph and camera management,... to qml. > I can't figure out how to do that because if create a class that derive from >

Re: [Interest] Qt3D cross compile on Pi3, examples/applications not working

2017-10-06 Thread Sergio Martins
On 2017-10-06 10:28, Carlo Ferraresi wrote: I tried with several examples such as simple-cpp, lights and materials,  the screen shows strange artifacts and the application seems freezed.   When I try planets-qml I get this output: “QOpenGLTexture*

Re: [Interest] Qt3D Stencil example?

2017-09-25 Thread Gil H
Thanks very much for the example, Sean. It’s much clearer now that I see RenderStates in use (for some reason I thought they only applied in Effect)… There is a pretty serious issue that is blocking me from using Qt3D for augmented reality, which is that QtMultimedia’s VideoOutput doesn’t work

Re: [Interest] Qt3D/QML How to access a QTransform based property from C++

2017-08-30 Thread Volker Enderlein
Thanks Guiseppe, I try to come up with a solution based on your and Sean's answer. Cheers Volker Am 30/08/2017 um 11:29 schrieb Giuseppe D'Angelo: Il 30/08/2017 10:07, Volker Enderlein ha scritto: Entity {   id: root   property Transform frame: Transform {}   property Material

Re: [Interest] Qt3D/QML How to access a QTransform based property from C++

2017-08-30 Thread Sean Harmer
Set the properties on the QTransform, not the QTransform itself. But in general don't poke up into the QML layer from C++. Much better idea to bind the transform in QML to properties on an object you export from C++ to QML. i.e. Entity { components: [ Transform {

Re: [Interest] Qt3D/QML How to access a QTransform based property from C++

2017-08-30 Thread Giuseppe D'Angelo
Il 30/08/2017 10:07, Volker Enderlein ha scritto: Entity { id: root property Transform frame: Transform {} property Material mat: PhongMaterial { diffuse: Qt.rgba(0.8, 0.8, 0.8, 1.0) } ... } Later I try to update the Transform and Material from C++. But I cannot set the

Re: [Interest] Qt3D/QML How to access a QTransform based property from C++

2017-08-30 Thread Volker Enderlein
Thanks René, I tried that already (but unfortunately didn't mention it), but Qt3DCore::QTransform is derived from QNode and therefore implicitly from QObject so it is missing the copy constructor that is needed for the registration as metatype. Cheers Volker Am 30/08/2017 um 10:40 schrieb

Re: [Interest] Qt3D/QML How to access a QTransform based property from C++

2017-08-30 Thread René Hansen
Try to register Qt3DCore::QTransform as a metatype in your main(): qRegisterMetaType("Qt3DCore::QTransform"); http://doc.qt.io/qt-5/qmetatype.html#qRegisterMetaType On Wed, 30 Aug 2017 at 10:16 Volker Enderlein < volker.enderl...@ifm-chemnitz.de> wrote: > Hi all, > > for an animation system I

Re: [Interest] Qt3D Rendering offscreen

2017-08-16 Thread Andy
-) I'll take a look. > > Best regards, > > Laszlo > > > > > > *From:* Interest [mailto:interest-bounces+laszlo.agocs=qt.io@qt-project. > org] *On Behalf Of *Andy > *Sent:* onsdag 16. august 2017 07.19 > *To:* Sean Harmer <sean.har...@kdab.com> > *Cc:* Qt Project

Re: [Interest] Qt3D Rendering offscreen

2017-08-15 Thread Laszlo Agocs
To: Sean Harmer <sean.har...@kdab.com> Cc: Qt Project <interest@qt-project.org> Subject: Re: [Interest] Qt3D Rendering offscreen Does anybody have any hints? I've tried all kinds of node configurations and can't get this to work. Thanks. --- Andy Maloney // https://asmaloney

Re: [Interest] Qt3D Rendering offscreen

2017-08-15 Thread Andy
Does anybody have any hints? I've tried all kinds of node configurations and can't get this to work. Thanks. --- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney On Sat, Aug 12, 2017 at 2:03 PM, Andy wrote: > Based on your

Re: [Interest] Qt3D Rendering offscreen

2017-08-12 Thread Andy
Based on your outline, here is the hierarchy I have set up (but I still get images of size (1,1)): Qt3DRender::QRenderCapture:: Qt3DExtras::QForwardRenderer:: Qt3DRender::QRenderSurfaceSelector:: Qt3DRender::QViewport:: Qt3DRender::QCameraSelector::

Re: [Interest] Qt3D Rendering offscreen

2017-08-12 Thread Andy
On Sat, Aug 12, 2017 at 8:40 AM, Sean Harmer wrote: > Hi, > > On Friday 11 August 2017 14:34:34 Andy wrote: > > Goal: With Qt3D (C++), render my scene offscreen, use render capture on > it, > > and save image to disk. > > > > With my Qt3DWindow-based solution the scene

Re: [Interest] Qt3D Rendering offscreen

2017-08-12 Thread Sean Harmer
Hi, On Friday 11 August 2017 14:34:34 Andy wrote: > Goal: With Qt3D (C++), render my scene offscreen, use render capture on it, > and save image to disk. > > With my Qt3DWindow-based solution the scene looks fine and I can do the > render capture part (on macOS anyways - Windows doesn't work for

Re: [Interest] [Qt3D] Virtual Reality (Vive/Oculus) Example

2017-07-18 Thread Vlad Stelmahovsky
Hi great news. Hope you guys will combine efforts to make the solution multiplatform. For example, compatible with GearVR btw, did you checked this project: https://github.com/google/lullaby ? On Tue, Jul 18, 2017 at 11:22 AM, Sean Harmer wrote: > Hi Daniel, > > awesome,

Re: [Interest] [Qt3D] Virtual Reality (Vive/Oculus) Example

2017-07-18 Thread Sean Harmer
Hi Daniel, awesome, thank you for this! We too have been starting work on something similar: https://codereview.qt-project.org/#/c/195892/ The latency you mention can be avoided if we update the head tracking directly on the qt3d renderer backend. That way it can be used immediately on the

Re: [Interest] [QT3D] access geometry data of a loaded model

2017-07-13 Thread Sean Harmer
On Thursday, 13 July 2017 12:06:39 BST d...@john-online.info wrote: > Thanks Oleg, > > that gives me a good hint. > In fact, even better is the example in > > qt3d\tests\manual\assimp-cpp > > Which exactly does what I need: > It creates the entity tree with material, GeometryRenderer etc. >

Re: [Interest] [QT3D] access geometry data of a loaded model

2017-07-13 Thread doe
Thanks Oleg, that gives me a good hint. In fact, even better is the example in qt3d\tests\manual\assimp-cpp Which exactly does what I need: It creates the entity tree with material, GeometryRenderer etc. from a interactively loaded model with sceneloader and lists the entity tree

Re: [Interest] [QT3D] access geometry data of a loaded model

2017-07-11 Thread Oleg Evseev
Hi, Take a look on qt3d\tests\manual\assimp example, from there you will understand how to find specific entities or components of scene loader tree. --- With regards, Oleg 2017-07-11 12:32 GMT+03:00 : > > > Hi > > I use QT5.8 C++ API. > I know how to create and display

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-07 Thread Oleg Evseev
> > I think the entity could also be a property (a QEntity* or a QEntity, I am > not sure) of the controller. > Yes, it could, but only QEntity* of course, cause it inherits QObject in the end so it can't be copied. ___ Interest mailing list

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-07 Thread Helmut Mülner
] Gesendet: Freitag, 7. Juli 2017 09:49 An: "Helmut Mülner" <helmut.muel...@gmail.com> Cc: interest@qt-project.org Betreff: Aw: Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML Hi Helmut, >The approach with qmlRegisterType has the prob

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-07 Thread max_bergmann89
  Hi Helmut,         >The approach with qmlRegisterType has the problem that the object is created by QML and lives in QML space, forcing me to transfer some of the workflow logic to QML, making testing and separating GUI and backend more difficult.   I faced the same problem and solved it

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
> no information about ownership (transfer) It is same as usual data ownership when mix C++/QML http://doc.qt.io/qt-5/qtqml-cppintegration-data.html especially take into account this: *additionally, the QML engine respects the normal QObject parent ownership semantics of Qt C++ objects, and will

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Helmut Mülner
Hi Oleg, > This is basically the same approach as in the Stackoverflow answer That's why I wrote "I'm not sure I understand your problem in a right way" before. Why is this approach not suitable for you? (just in case, in difference with StackOverflow approach in my example camera and render

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
> This is basically the same approach as in the Stackoverflow answer That's why I wrote "*I'm not sure I understand your problem in a right way"* before. Why is this approach not suitable for you? (just in case, in difference with StackOverflow approach in my example camera and render settings

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Helmut Mülner
> I think you misunderstood me: MY GUI is in QML, only the backend is in C++ This is certainly what I mean. Take a look my setData example from https://bugreports.qt.io/browse/QTBUG-60429 it uses Scene3D in QML and C++ backend. Sorry, my

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
> I think you misunderstood me: *MY GUI is in QML, only the backend is in C++* This is certainly what I mean. Take a look my setData example from https://bugreports.qt.io/browse/QTBUG-60429 it uses Scene3D in QML and C++ backend. > ___ Interest mailing

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Helmut Mülner
Hi Oleg, > Or is it possible to construct some of these in C++ and use them in QML via > setContextProperty: Buffer, Geometry, GeometryRenderer or other classes from > the Qt3D modules? >From my point of view it would be better to construct them (Buffer, Geometry, >GeometryRenderer, Textures

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
Hi, Helmut I'm not sure I understand your problem in a right way, but I think my setData example from https://bugreports.qt.io/browse/QTBUG-60429 maybe helpful. > Or is it possible to construct some of these in C++ and use them in QML via setContextProperty: Buffer, Geometry, GeometryRenderer or

Re: [Interest] Qt3D on Android with C++

2017-06-14 Thread Jason H
I'm not sure why this isn't considered a bug to be fixed in 5.9. It is a LTS release, after all.   Sent: Wednesday, June 14, 2017 at 8:04 AM From: max_bergman...@web.de To: "Laszlo Agocs" <laszlo.ag...@qt.io>, interest@qt-project.org Subject: Re: [Interest] Qt3D on Android wit

Re: [Interest] Qt3D on Android with C++

2017-06-14 Thread max_bergmann89
de>, "interest@qt-project.org" <interest@qt-project.org> Betreff: Re: [Interest] Qt3D on Android with C++ Hi,   createWindowContainer() has some minor issues on Android in Qt 5.9 and earlier, which unfortunately lead to not showing anything in the "embedded" window

Re: [Interest] Qt3D on Android with C++

2017-06-14 Thread Laszlo Agocs
Hi, createWindowContainer() has some minor issues on Android in Qt 5.9 and earlier, which unfortunately lead to not showing anything in the "embedded" window. The missing things have been added in the dev branch, so it should work in 5.10 (although I have only tested

Re: [Interest] Qt3D on Android

2017-06-08 Thread Mike Krus
Hi Hi it won’t work on tvOS (unless widgets was enabled in the build) but I don’t see why it would work on iOS either (other than the layout not really fitting the screen and the checkboxes being too small) Mike > On 7 Jun 2017, at 11:30, Paul Lemire wrote: > > Hi

Re: [Interest] [Qt3D] Mirrored textures aspects

2017-05-08 Thread Oleg Evseev
Ok, thanks for clarify this! ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] [Qt3D] Mirrored textures aspects

2017-05-08 Thread Sean Harmer
On 08/05/2017 18:39, Oleg Evseev wrote: Sean or Paul, Could you please explain aspects related to mirrored textures https://bugreports.qt.io/browse/QTBUG-54881 I didn't understand why when building against qt-5.8 I don't need to mirror textures image and SceneLoader load 3d models fine, but

Re: [Interest] [Qt3D] Smooth orbit camera

2017-05-06 Thread Oleg Evseev
Thanks Sean, There is no any instrument in qt3d animation framework similar to QuaternionAnimation (a PropertyAnimation for quaternions), isn't there? 2017-05-06 22:26 GMT+03:00 Sean Harmer : > Hi, > > On 06/05/2017 19:34, Oleg Evseev wrote: > >> Hi Andy, >> >> Thanks for

Re: [Interest] [Qt3D] Smooth orbit camera

2017-05-06 Thread Sean Harmer
Hi, On 06/05/2017 19:34, Oleg Evseev wrote: Hi Andy, Thanks for tips! I thought about standard animation (it's used in planets example by the way) but I suppose it's better to use FrameAction: https://doc.qt.io/qt-5/qt3dlogic-qframeaction.html#details The QFrameAction provides a way to

Re: [Interest] [Qt3D] Smooth orbit camera

2017-05-06 Thread Oleg Evseev
Hi Andy, Thanks for tips! I thought about standard animation (it's used in planets example by the way) but I suppose it's better to use FrameAction: https://doc.qt.io/qt-5/qt3dlogic-qframeaction.html#details > The QFrameAction provides a way to perform tasks each frame in a > synchronized way

Re: [Interest] [Qt3D] Smooth orbit camera

2017-05-06 Thread Andy
Oleg: The way I did it was to implement a QVariantAnimation-derived class that stores the QCamera's start positions, view centres, and up vectors. Then I just set the easing curve & the duration I want and call start(). Works great for my use case. I haven't looked at the new Qt3D animation

Re: [Interest] Qt3D and QtMultimedia.Camera not working together on Android

2017-04-27 Thread Christoph Keller
I tested a little bit more and created a bug report for this: https://bugreports.qt.io/browse/QTBUG-60452 Cheers, Christoph On 25/04/17 14:56, Christoph Keller wrote: Hi, I'm using Qt3D in a mobile project for Android and iOS, but unfortunately the QtMultimedia Camera Item stops working

Re: [Interest] [Qt3D] Update vertex buffer data together with increasing count of vertices leads to artifacts

2017-04-26 Thread Oleg Evseev
> > could you file a JIRA with a test case please? > > > Yes, I'll try to do test example later. > I did https://bugreports.qt.io/browse/QTBUG-60429 (as I mentioned in bug description I thought that it was due to that currently in qt 3d calling both QBuffer setData/functor and partial data

Re: [Interest] [Qt3D] Update vertex buffer data together with increasing count of vertices leads to artifacts

2017-04-23 Thread Oleg Evseev
> > could you file a JIRA with a test case please? Yes, I'll try to do test example later. By the way, it seems that I was wrong blaming updateData function to cause artifacts. In fact besides update geometry in my application new alike entities with custom geometry are created (for simplicity

Re: [Interest] [Qt3D] Update vertex buffer data together with increasing count of vertices leads to artifacts

2017-04-22 Thread Sean Harmer
Hi, could you file a JIRA with a test case please? These changes are supposed to be batched within a spin of the event loop before sent to to the backend. And on the backend, the geometry buffer update should happen within the same frame as the count is adjusted. So, looks like we've missed

Re: [Interest] Qt3D: Problem with QSkybox basename property

2017-04-19 Thread Sean Harmer
Hi, On 19/04/2017 01:20, Ch'Gans wrote: On 18 April 2017 at 22:58, Sean Harmer wrote: Hi, On 18/04/2017 10:10, Ch'Gans wrote: Hi there, I have just tried the sky box entity with Qt-5.9-beta, and found a small problem: If you don't specify a basename or if the

Re: [Interest] Qt3D: Problem with QSkybox basename property

2017-04-18 Thread Ch'Gans
On 18 April 2017 at 22:58, Sean Harmer wrote: > Hi, > > On 18/04/2017 10:10, Ch'Gans wrote: >> >> Hi there, >> >> I have just tried the sky box entity with Qt-5.9-beta, and found a >> small problem: >> If you don't specify a basename or if the basename is malformed, the >>

Re: [Interest] Qt3D: Problem with QSkybox basename property

2017-04-18 Thread Sean Harmer
Hi, On 18/04/2017 10:10, Ch'Gans wrote: Hi there, I have just tried the sky box entity with Qt-5.9-beta, and found a small problem: If you don't specify a basename or if the basename is malformed, the GUI will freeze. As the documentation doesn't specify that the basename should be in a QUrl

Re: [Interest] [Qt3D][Threads] A right way to do calculations for qt 3d entities in separate thread

2017-04-15 Thread Oleg Evseev
> > We do something analogous with the sceneparser plugins which for the scene > file being loaded, it creates a QEntity subtree complete with > GeometryRenderer, Material, Transform components. These are then moved to > the main thread with QObject::moveToThread and grafted into the main tree >

Re: [Interest] [Qt3D][Threads] A right way to do calculations for qt 3d entities in separate thread

2017-04-15 Thread Sean Harmer
Hi, On 15/04/2017 11:45, Oleg Evseev wrote: Hi, I have a Scene3D with different QEntities. One of the entity have a slot with calculations which involves updating QGeometry of one of its child (QEntity) and sometimes creating new child entity. I'm looking for a way to move those calculations

Re: [Interest] [Qt3D] SkyboxEntity textures are not rendered on Windows 7 (just black)

2017-04-14 Thread Oleg Evseev
Hi Sean, As I wrote, I try to prepare test case example with same "basis" of 3d as in my application, but it suddenly turned out to be valid. Unfortunately I can't provide my entire application. > Not sure what could be wrong off hand. Ok, never mind then. It's not so important. I'll try to do

Re: [Interest] [Qt3D] SkyboxEntity textures are not rendered on Windows 7 (just black)

2017-04-14 Thread Sean Harmer
Hi, could you provide a test case for this please? Not sure what could be wrong off hand. Cheers, Sean On 14/04/2017 17:51, Oleg Evseev wrote: Hi, Cause Sean is now get busy with SkyboxEntity, I take this opportunity to ask what could be wrong: Related to qt3d I have Qml with loader that

Re: [Interest] Qt3D memory leaks

2017-04-14 Thread Igor Mironchik
Hi, More data (in MB): 1. 136.1 2. 143.5 (+7.4) 3. 145.9 (+2.4) 4. 147.2 (+1.3) 5. 150.1 (+2.9) 6. 152.3 (+2.2) 7. 152.0 (-0.3) 8. 154.7 (+2.7) I guess that small memory leaks still exist. P.S. 5 years tree has 341 branches and 512 leafs. All of them I delete on restart of tree (I

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 22:20, Igor Mironchik пишет: Hi, The entity takes ownership of any components that are parentless when added. This is done using the usual QObject ownership mechanism so the components will be deleted by the entity when it is being destroyed just like any other QObject

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 02:43 PM, Igor Mironchik wrote: 13.04.2017 20:36, Sean Harmer пишет: On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, The entity takes ownership of any components that are parentless when added. This is done using the usual QObject ownership mechanism so the components will be deleted by the entity when it is being destroyed just like any other QObject parent. There may be a leaks elsewhere but I don't

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
13.04.2017 20:36, Sean Harmer пишет: On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems that entity doesn't delete anything.

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
13.04.2017 17:31, william.croc...@analog.com пишет: On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Are those numbers for

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Are those numbers for Linux or Windows? 13.04.2017 15:39,

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? 13.04.2017 15:39, william.croc...@analog.com пишет: On 04/13/2017 08:34 AM, Igor Mironchik wrote: Hi, Strange, I launch

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, With example of error: ==1834== Thread 1: ==1834== Syscall param writev(vector[...]) points to uninitialised byte(s) ==1834==at 0x7C5340D: ??? (syscall-template.S:84) ==1834==by 0xD4AFF28: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0) ==1834==by 0xD4B031C: ??? (in

Re: [Interest] Qt3D: Wireframe

2017-04-13 Thread Ch'Gans
On 14 April 2017 at 00:25, Ch'Gans wrote: > On 13 April 2017 at 18:52, Sean Harmer wrote: >> Hi, >> >> On 13/04/2017 06:15, Ch'Gans wrote: >>> >>> On 13 April 2017 at 14:38, Ch'Gans wrote: Hi, I would like to be able to

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 08:34 AM, Igor Mironchik wrote: Hi, Strange, I launch 3Dtree on Linux under valgrind: ==4321== HEAP SUMMARY: ==4321== in use at exit: 439,965 bytes in 6,185 blocks ==4321== total heap usage: 2,207,719 allocs, 2,201,534 frees, 1,241,469,509 bytes allocated ==4321== ==4321==

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, Strange, I launch 3Dtree on Linux under valgrind: ==4321== HEAP SUMMARY: ==4321== in use at exit: 439,965 bytes in 6,185 blocks ==4321== total heap usage: 2,207,719 allocs, 2,201,534 frees, 1,241,469,509 bytes allocated ==4321== ==4321== LEAK SUMMARY: ==4321==definitely lost:

Re: [Interest] Qt3D: Wireframe

2017-04-13 Thread Ch'Gans
On 13 April 2017 at 18:52, Sean Harmer wrote: > Hi, > > On 13/04/2017 06:15, Ch'Gans wrote: >> >> On 13 April 2017 at 14:38, Ch'Gans wrote: >>> >>> Hi, >>> >>> I would like to be able to select at run-time how my entities are >>> rendered (ideally on a per

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, You will need a custom material as the built in materials don't support instancing out of the box - this is waiting on the shader generator that is in development at the moment. In what version of Qt do you guys guess to add instancing support in built in materials? Thank you.

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
On 13/04/2017 10:14, Igor Mironchik wrote: Hi, 13.04.2017 12:02, Sean Harmer пишет: Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 12:02, Sean Harmer пишет: Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender. Modified a little constants of the tree.

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender. Modified a little constants of the tree. Example looks nice. This is a benchmark of your

Re: [Interest] Qt3D: Wireframe

2017-04-13 Thread Sean Harmer
Hi, On 13/04/2017 06:15, Ch'Gans wrote: On 13 April 2017 at 14:38, Ch'Gans wrote: Hi, I would like to be able to select at run-time how my entities are rendered (ideally on a per entity basis). I would like to have 3 choices: - 1. wireframe - 2. shaded - 3. shaded + wireframe

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender. Modified a little constants of the tree. Example looks nice. This is a benchmark of your video card, because leafs and branches are

Re: [Interest] Qt3D: Wireframe

2017-04-12 Thread Ch'Gans
On 13 April 2017 at 14:38, Ch'Gans wrote: > Hi, > > I would like to be able to select at run-time how my entities are > rendered (ideally on a per entity basis). > I would like to have 3 choices: > - 1. wireframe > - 2. shaded > - 3. shaded + wireframe > > I had a look at the wire

Re: [Interest] Qt3D: Mesh, buffer and tangent

2017-04-11 Thread Ch'Gans
On 11 April 2017 at 20:45, Sean Harmer wrote: > Hi, > > On Tuesday 11 April 2017 10:46:24 Ch'Gans wrote: >> Hi there, >> >> I'm writing some code to display 2D polygons as 3D polygonal plates, >> my input being a 2D triangulated polygon. >> As i'm pretty new to 3D/OpenGL, I

Re: [Interest] Qt3D memory leaks

2017-04-11 Thread Igor Mironchik
Hi, I fixed a little 3Dtree. Now branches positions are correct. And I know that not all leafs is visible (this is because leaf geometry is implemented as plain which renders only on one side). 10.04.2017 13:20, Igor Mironchik пишет: Hello, I guess that Qt3D has huge memory leaks. You

Re: [Interest] Qt3D: Mesh, buffer and tangent

2017-04-11 Thread Sean Harmer
Hi, On Tuesday 11 April 2017 10:46:24 Ch'Gans wrote: > Hi there, > > I'm writing some code to display 2D polygons as 3D polygonal plates, > my input being a 2D triangulated polygon. > As i'm pretty new to 3D/OpenGL, I had a look first at how the plane, > cylinder, cuboid, cone, and torus are

Re: [Interest] Qt3D, custom mesh and materials

2017-04-10 Thread Helmut Mülner
Sean Harmer helped me with my little problem, thank you very much. There were two problems: > I created a custom mesh by defining the following attributes: position, normal, index, texCoord. > If I use a PhongMaterial, the mesh displays nicely: > [...} > If I use a

Re: [Interest] Qt3D

2017-04-08 Thread Igor Mironchik
Hi, I killed whole day today to understand one simple thing - parent transformation applies on children too in Qt3D. Parent is not simple owner of the object it applies its transformation to the children... OMG, so much time and nerves... :) 08.04.2017 17:03, Igor Mironchik пишет: Hi,

Re: [Interest] Qt3D

2017-04-08 Thread Igor Mironchik
Hi, Sorry guys. It seems that it my fault... 08.04.2017 15:18, Igor Mironchik пишет: Hello guys, Did anybody do any 3D project with new Qt3D? Did you do the scene dynamically? I.e. did you allocate new and new QEntity with parent? Do you see every QEntity? Does Qt3D stable? A lot of

Re: [Interest] Qt3D, custom mesh and materials

2017-04-07 Thread Sean Harmer
For completeness, this was due to missing tangent vectors in the custom geometry. Tangents are required for normal mapping materials. Cheers, Sean On 05/04/2017 17:34, Helmut Mülner wrote: Another question for the Qt3D experts: I created a custom mesh by defining the following attributes:

<    1   2   3   4   5   >