[Interest] Qt3D: Mesh, buffer and tangent

2017-04-10 Thread Ch'Gans
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 doing this (from Qt3DExtra). I can successfully display my polygonal p

Re: [Interest] Moc fails using Qt 5.6

2017-04-10 Thread Jean-Michaël Celerier
I think that moc is not very up-to-date regarding its parsing of modern c++ features (like decimal separator). It also fails for me (macOS, qt 5.8) on this file. You should report a bug on the tracker (http://bugreports.qt.io/). Best Jean-Michaël --- Jean-Michaël Celerier http://www.jceleri

[Interest] Moc fails using Qt 5.6

2017-04-10 Thread jschneiderman
I’ve attached a bit of demonstration code that shows how moc fails when using separators inside enumerations and comments. The error I’m getting is: Class declaration lacks Q_OBJECT macro. Even though it is clearly in the specified class. Is this a known issue or not? I didn’t find anything abou

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 QDiffuseMapMaterial

[Interest] Qt3D memory leaks

2017-04-10 Thread Igor Mironchik
Hello, I guess that Qt3D has huge memory leaks. You can check it on this example: https://github.com/igormironchik/3Dtree It's 3D tree, that grows year by year. By default tree will grow 5 years (5 minutes). When tree grown you can restart tree. And here I delete all resources: void MainWin

Re: [Interest] Subclassing of QEntity

2017-04-10 Thread Igor Mironchik
Hello. Got it!!! I had: void LeafPrivate::init() { m_mesh=newLeafMesh(q); q->addComponent(m_mesh); m_material=newQPhongMaterial(q); //m_material->setAmbient(Qt::darkGreen); m_material->setDiffuse(Qt::darkGreen); //m_material->setSpecular(Qt::darkGreen); q->addComponent(m_material); m_

Re: [Interest] Subclassing of QEntity

2017-04-10 Thread Igor Mironchik
10.04.2017 9:55, Igor Mironchik пишет: Hi, 09.04.2017 21:32, Sean Harmer пишет: Hi, Sounds odd. Can you file a JIRA and a test case please? Sorry, I missed - the problem is not in it. But the problem exists yet. What it can be? I increase the scale of new entities but they isn't seen.