Re: [Interest] How to use QSGSimpleTextureNode?

2014-11-08 Thread Nuno Santos
Gunnar, Texture was being correctly generated aside of positioning problem of the font drawing. The problem was on vertex and texture coordinates. I was not taking correctly into account left and right bearing of the fonts. Thanks, Regards, Nuno On 06 Nov 2014, at 12:15, Nuno Santos wrote:

Re: [Interest] How to use QSGSimpleTextureNode?

2014-11-06 Thread Nuno Santos
Gunnar, I will run your debugging suggestions. Thanks, Regards, Nuno On 05 Nov 2014, at 17:39, Gunnar Sletta wrote: > > On 04 Nov 2014, at 23:20, Nuno Santos wrote: > >> Gunnar, >> >> I have implemented a really basic node for text rendering on scene graph >> based on my previous approa

Re: [Interest] How to use QSGSimpleTextureNode?

2014-11-05 Thread Gunnar Sletta
On 04 Nov 2014, at 23:20, Nuno Santos wrote: > Gunnar, > > I have implemented a really basic node for text rendering on scene graph > based on my previous approach but adapter to Qt API. The setup code is below. > I can already draw a string on OpenGL but the characters are not smooth at > s

Re: [Interest] How to use QSGSimpleTextureNode?

2014-11-04 Thread Nuno Santos
Gunnar, I have implemented a really basic node for text rendering on scene graph based on my previous approach but adapter to Qt API. The setup code is below. I can already draw a string on OpenGL but the characters are not smooth at small sizes with a pixel font. With a non pixel font, even at

Re: [Interest] How to use QSGSimpleTextureNode?

2014-11-03 Thread Gunnar Sletta
On 03 Nov 2014, at 17:15, Nuno Santos wrote: > Hi, > > I’m trying to render text on scene graph. My strategy consists in creating a > texture with all the glyphs and then draw a specific subset of the texture > for each glyph. I have already done this for iOS and Android native API’s but > n

[Interest] How to use QSGSimpleTextureNode?

2014-11-03 Thread Nuno Santos
Hi, I’m trying to render text on scene graph. My strategy consists in creating a texture with all the glyphs and then draw a specific subset of the texture for each glyph. I have already done this for iOS and Android native API’s but now, i’m porting my app to Qt/Qml and need to do it on scene