Re: [Interest] [Qt3D] QText2DEntity not appears if QLayerFilter is used
I think I found internal Qt3D Entity instances that Paul mentioned - DistanceFieldTextRenderer. Still have confusion why they are not listed in childNode? Anyway using recursive property introduced in Qt 5.10 looks like the only adequate way to use QLayer on QText2DEntity https://bugreports.qt.io/browse/QTBUG-80092 Thanks for help, Paul. пн, 18 нояб. 2019 г. в 10:30, Oleg Evseev : > Got it! > > Check it in Qt 5.14, recursive property helps, but why? I'm confused, > walkEntity explicitly specifies there are no children Entities (and Nodes > either than QTransform). > (also there was issues with font size and QText2DEntity size, I don't > feel the scales of it yet) > > > пн, 18 нояб. 2019 г. в 09:56, Oleg Evseev : > >> Hi Paul, >> >> Thank for the feedback! >> Lack of recursive QLayer is the first think I thought of. That's why >> there is walkEntity function in test example, and it says that there is >> only one entity - QText2DEntity : >> >> Entity: Qt3DExtras::QText2DEntity(0x33a3d4e0) Components: >> QVector(Qt3DCore::QTransform(0x33a3d580), Qt3DRender::QLayer(0x33a3d310)) >> >> >> No internal entities. Also I had checked QText2DEntity source precisely >> on this aspect and hadn't seen anything. >> >> >> I'm currently using Qt 5.9.5 and don't have recursive property, I will >> check it in qt 5.14 latter. >> >> пн, 18 нояб. 2019 г. в 09:03, Paul Lemire : >> >>> Hi Oleg, >>> >>> From what I can see in the code, QText2DEntity doesn't draw anything, >>> but it instead instantiates internal Qt3D Entity instances to do the >>> drawing. >>> >>> Therefore if you set the QLayer on QText2DEntity, it won't be set on the >>> internal entities and won't draw. >>> >>> One option might be to set the recursive property to true on your QLayer >>> so that setting it on QText2DEntity also makes it pickup all of its >>> children Entities. >>> >>> I hope that helps, >>> >>> Paul >>> On 11/17/19 2:18 AM, Oleg Evseev wrote: >>> >>> Hi, >>> >>> Did somebody successfully work with QText2DEntity in 3d scenes with >>> QLayerFilters? >>> >>> Here is my project https://bugreports.qt.io/browse/QTBUG-80092. >>> QText2DEntity doesn't appear. >>> https://github.com/Nonmant/Qt3DExtras-QText2DEntity-Example without >>> Layers works fine. >>> >>> This is the bug or maybe I set something wrong? >>> >>> Thanks in advance for any help. >>> >>> --- >>> With regards, Oleg. >>> >>> ___ >>> Interest mailing >>> listInterest@qt-project.orghttps://lists.qt-project.org/listinfo/interest >>> >>> -- >>> Paul Lemire | paul.lem...@kdab.com | Senior Software Engineer >>> KDAB (France) S.A.S., a KDAB Group company >>> Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr >>> KDAB - The Qt, C++ and OpenGL Experts >>> >>> ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] [Qt3D] QText2DEntity not appears if QLayerFilter is used
Got it! Check it in Qt 5.14, recursive property helps, but why? I'm confused, walkEntity explicitly specifies there are no children Entities (and Nodes either than QTransform). (also there was issues with font size and QText2DEntity size, I don't feel the scales of it yet) пн, 18 нояб. 2019 г. в 09:56, Oleg Evseev : > Hi Paul, > > Thank for the feedback! > Lack of recursive QLayer is the first think I thought of. That's why there > is walkEntity function in test example, and it says that there is only one > entity - QText2DEntity : > > Entity: Qt3DExtras::QText2DEntity(0x33a3d4e0) Components: > QVector(Qt3DCore::QTransform(0x33a3d580), Qt3DRender::QLayer(0x33a3d310)) > > > No internal entities. Also I had checked QText2DEntity source precisely on > this aspect and hadn't seen anything. > > > I'm currently using Qt 5.9.5 and don't have recursive property, I will > check it in qt 5.14 latter. > > пн, 18 нояб. 2019 г. в 09:03, Paul Lemire : > >> Hi Oleg, >> >> From what I can see in the code, QText2DEntity doesn't draw anything, but >> it instead instantiates internal Qt3D Entity instances to do the drawing. >> >> Therefore if you set the QLayer on QText2DEntity, it won't be set on the >> internal entities and won't draw. >> >> One option might be to set the recursive property to true on your QLayer >> so that setting it on QText2DEntity also makes it pickup all of its >> children Entities. >> >> I hope that helps, >> >> Paul >> On 11/17/19 2:18 AM, Oleg Evseev wrote: >> >> Hi, >> >> Did somebody successfully work with QText2DEntity in 3d scenes with >> QLayerFilters? >> >> Here is my project https://bugreports.qt.io/browse/QTBUG-80092. >> QText2DEntity doesn't appear. >> https://github.com/Nonmant/Qt3DExtras-QText2DEntity-Example without >> Layers works fine. >> >> This is the bug or maybe I set something wrong? >> >> Thanks in advance for any help. >> >> --- >> With regards, Oleg. >> >> ___ >> Interest mailing >> listInterest@qt-project.orghttps://lists.qt-project.org/listinfo/interest >> >> -- >> Paul Lemire | paul.lem...@kdab.com | Senior Software Engineer >> KDAB (France) S.A.S., a KDAB Group company >> Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr >> KDAB - The Qt, C++ and OpenGL Experts >> >> -- С Уважением, Евсеев Олег. ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] [Qt3D] QText2DEntity not appears if QLayerFilter is used
Hi Paul, Thank for the feedback! Lack of recursive QLayer is the first think I thought of. That's why there is walkEntity function in test example, and it says that there is only one entity - QText2DEntity : Entity: Qt3DExtras::QText2DEntity(0x33a3d4e0) Components: QVector(Qt3DCore::QTransform(0x33a3d580), Qt3DRender::QLayer(0x33a3d310)) No internal entities. Also I had checked QText2DEntity source precisely on this aspect and hadn't seen anything. I'm currently using Qt 5.9.5 and don't have recursive property, I will check it in qt 5.14 latter. пн, 18 нояб. 2019 г. в 09:03, Paul Lemire : > Hi Oleg, > > From what I can see in the code, QText2DEntity doesn't draw anything, but > it instead instantiates internal Qt3D Entity instances to do the drawing. > > Therefore if you set the QLayer on QText2DEntity, it won't be set on the > internal entities and won't draw. > > One option might be to set the recursive property to true on your QLayer > so that setting it on QText2DEntity also makes it pickup all of its > children Entities. > > I hope that helps, > > Paul > On 11/17/19 2:18 AM, Oleg Evseev wrote: > > Hi, > > Did somebody successfully work with QText2DEntity in 3d scenes with > QLayerFilters? > > Here is my project https://bugreports.qt.io/browse/QTBUG-80092. > QText2DEntity doesn't appear. > https://github.com/Nonmant/Qt3DExtras-QText2DEntity-Example without > Layers works fine. > > This is the bug or maybe I set something wrong? > > Thanks in advance for any help. > > --- > With regards, Oleg. > > ___ > Interest mailing > listInterest@qt-project.orghttps://lists.qt-project.org/listinfo/interest > > -- > Paul Lemire | paul.lem...@kdab.com | Senior Software Engineer > KDAB (France) S.A.S., a KDAB Group company > Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr > KDAB - The Qt, C++ and OpenGL Experts > > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] [Qt3D] QText2DEntity not appears if QLayerFilter is used
Hi Oleg, From what I can see in the code, QText2DEntity doesn't draw anything, but it instead instantiates internal Qt3D Entity instances to do the drawing. Therefore if you set the QLayer on QText2DEntity, it won't be set on the internal entities and won't draw. One option might be to set the recursive property to true on your QLayer so that setting it on QText2DEntity also makes it pickup all of its children Entities. I hope that helps, Paul On 11/17/19 2:18 AM, Oleg Evseev wrote: > Hi, > > Did somebody successfully work with QText2DEntity in 3d scenes with > QLayerFilters? > > Here is my project https://bugreports.qt.io/browse/QTBUG-80092. > QText2DEntity doesn't appear. > https://github.com/Nonmant/Qt3DExtras-QText2DEntity-Example without > Layers works fine. > > This is the bug or maybe I set something wrong? > > Thanks in advance for any help. > > --- > With regards, Oleg. > > ___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest -- Paul Lemire | paul.lem...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr KDAB - The Qt, C++ and OpenGL Experts smime.p7s Description: S/MIME Cryptographic Signature ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
[Interest] [Qt3D] QText2DEntity not appears if QLayerFilter is used
Hi, Did somebody successfully work with QText2DEntity in 3d scenes with QLayerFilters? Here is my project https://bugreports.qt.io/browse/QTBUG-80092. QText2DEntity doesn't appear. https://github.com/Nonmant/Qt3DExtras-QText2DEntity-Example without Layers works fine. This is the bug or maybe I set something wrong? Thanks in advance for any help. --- With regards, Oleg. ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest