Hi,


Well I started my thread earlier with title as custom QQuick3D text but I 
couldnot get any response.

Iam getting issues in drawItem() of below code that I tried so far:-




Class TextItem3D: public QQuickItem3D
{
Q_OBJECT

Q_PROPERTY(qreal xPos READ xPos WRITE setXPos NOTIFY positionChanged)

Q_PROPERTY(qreal yPos READ yPos WRITE setYPos NOTIFY positionChanged)

Q_PROPERTY(QString textString READ textString WRITE setTextString NOTIFY 
textStringChanged)

Public:

Explicit TextItem3D(QObject *parent=0);
~TextItem3D() { }

qreal xPos() const { return x;}
void setXPos(const qreal &xPos);

qreal yPos() const { return y;}
void setYPos(const qreal &yPos)

qreal zPos() const { return z;}
void setZPos(const qreal &zPos);

QString textString() const { return mTextString;}
Void setTextString(const QString &);

Q_SIGNALS:
void positionChanged();
void textStringChanged();

protected:
void drawItem(QGLPainter *painter)

private:
qreal x,y,z;
QString m_TextString;
QGLSceneNode *m_geometry;
bool m_ChangeFlag;
};QML_DECLARE_TYPE(TextItem3D)


void TextItem3D::setXPos(qreal xPosition)
{
If(x!=XPosition)
{
   x= XPosition ;
m_ChangeFlag = true;
emit PositionChanged();
update();
}

Void TextItem3D::drawItem(QGLPainter *painter)
{
    If(m_ChangeFlag || m_Geometry) {
        If(m_Geometry) delete m_Geometry;

QGLBuilder builder;
QGeometryData textCollection;

builder.newSection();

//INSERT Bitmap text OpenGL code like Points or Line
builder.appendAttribute() //wrong….?
builder.CurrentNode() ->setX(x);
builder.CurrentNode() ->setY(y);
builder.CurrentNode() ->setZ(z);

builder.CurrentNode() ->setDrawingMode();//wrong …?


m_Geometry = builder.finalizedSceneNode();
m_ChangeFlag = false;
}
m_Geomtery->draw(painter);
}



Thanks and Regards,

Ramakanth

________________________________
From: 
interest-bounces+ramakanthreddy_kesireddy=mahindrasatyam....@qt-project.org 
[interest-bounces+ramakanthreddy_kesireddy=mahindrasatyam....@qt-project.org] 
on behalf of BOUCARD Olivier [boucard_oliv...@yahoo.fr]
Sent: Tuesday, December 11, 2012 1:43 PM
To: interest@qt-project.org
Subject: Re: [Interest] [Qt3D] Is it usable yet?

Hi,

It would be preferable if you start your own thread.

I'm sorry but I cannot help. I still don't know how to create custom Item3D.

Olivier.

________________________________
De : Ramakanthreddy_Kesireddy <ramakanthreddy_kesire...@mahindrasatyam.com>
À : Sean Harmer <sean.har...@kdab.com>; "interest@qt-project.org" 
<interest@qt-project.org>; BOUCARD Olivier <boucard_oliv...@yahoo.fr>
Envoyé le : Mardi 11 décembre 2012 5h03
Objet : RE: [Interest] [Qt3D] Is it usable yet?

Hi,

I would like to see Text in 3D space as I had been trying hard for the last 
week to render text in 3D space using custom QQuickItem3D but somehow couldnot 
manage to render text.

Your help in this is greatly appreciated.

Best Regards,
Ramakanth

________________________________________
From: 
interest-bounces+ramakanthreddy_kesireddy=mahindrasatyam....@qt-project.org<mailto:mahindrasatyam....@qt-project.org>
 
[interest-bounces+ramakanthreddy_kesireddy=mahindrasatyam....@qt-project.org<mailto:mahindrasatyam....@qt-project.org>]
 on behalf of Sean Harmer [sean.har...@kdab.com<mailto:sean.har...@kdab.com>]
Sent: Monday, December 10, 2012 4:57 PM
To: interest@qt-project.org<mailto:interest@qt-project.org>; BOUCARD Olivier
Subject: Re: [Interest] [Qt3D] Is it usable yet?

Hi,

On Monday 10 December 2012 10:59:23 BOUCARD Olivier wrote:
> Hello guys,
>
> First, is this a good place to talk about Qt3D?

For use of it yes this is fine. For development of it development@ would be
better.

> This weekend I was playing with Qt5 and Qt3D.

Glad to see there is interest in this module :)

> So I built Qt5 and Qt3D from Git using the official documentation.
> And the result is that it is partially usable.

Yes that agrees with my experiences too.

> So my first question is: is Qt3D ready?

Short answer, no. As you say it is partially usable. However, there has been
some bit-rot as other modules have developed and Qt3D has stagnated given the
situation this year.

Longer answer is that we are discussing what we wish to do with Qt3d in the
longer term. As a result I cannot promise that the API will not change at this
stage.

If you have specific features you would like to see then please raise them in
JIRA or on the mailing list.

One major idea that we have had is to provide integration between Qt5 and
other scene graphs such as OpenSceneGraph and OGRE.

> I have two problems:
>      * The big one is that when I try to use "Qt3D.Shapes 2.0" in my QML I've
> got the error "module "Qt3D.Shapes" is not installed" at run time. The
> module "Qt3D 2.0" is working.

There is a patch pending to fix this:

https://codereview.qt-project.org/#change,40458

However, some other stuff needs to go in first to allow the CI system to
actually pass. There's a few other tidy-up's pending too. I will hopefully get
these sorted out this week now that devdays is over.

> * The small one is that the QML editor does
> not recognize the "import Qt3D 2.0" command (error "QML module not found").
> But the strange thing is that it recognizes the "import Qt3D.Shapes 2.0"
> commands. Any help will be appreciated.

Not sure about this one off-hand. I'll take a look once the other patches are
merged.

Kind regards,

Sean
--
Dr Sean Harmer | sean.har...@kdab.com<mailto:sean.har...@kdab.com> | Senior 
Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
_______________________________________________
Interest mailing list
Interest@qt-project.org<mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest

________________________________

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



________________________________

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to