[osg-users] osgText and GL3.3 core profile

86 views
Skip to first unread message

Roman Grigoriev

unread,
Oct 5, 2016, 3:02:49 AM10/5/16
to osg-...@lists.openscenegraph.org
Hi,
I have to port my software to intel graphics under linux,
but in mesa drivers only GL 3.3 core context,
so I switched to vertex_array_object branch
and slightly modify osgQT to have core context in embedded GL windows.
All works fine but osgText.
I know that I have to switch on VAO on text, but I don't know the right way.
Nothing drawed at all, even simple quads.
Maybe someone already tried make similar, please share your solution.
Thank you!

Cheers,
Roman

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68856#68856





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Sebastian Messerschmidt

unread,
Oct 5, 2016, 3:25:38 AM10/5/16
to osg-...@lists.openscenegraph.org
Hi Roman,

See this thread:

"osgText and OpenGL ES 3"

You need to attach a shader to the text, as it is based on fixed
function right currently.+

Cheers

Sebastian

Roman Grigoriev

unread,
Oct 5, 2016, 7:48:56 AM10/5/16
to osg-...@lists.openscenegraph.org
First thing I made is attach shaders to osgText.
Problem is that in GL core profile OGL doesn't show at all without VAO.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68864#68864

Robert Osfield

unread,
Oct 5, 2016, 7:59:41 AM10/5/16
to OpenSceneGraph Users
On 5 October 2016 at 12:50, Roman Grigoriev <grig...@gosniias.ru> wrote:
> First thing I made is attach shaders to osgText.
> Problem is that in GL core profile OGL doesn't show at all without VAO.

Are you working under OSX?

For VAO support you'll need to use the vertex_array_object branch.
Once it's undergone more testing I'll be merging this with git master
and shortly after will go for the next stable release 3.6, so VAO
support will be part of 3.6.

Robert.

Roman Grigoriev

unread,
Oct 5, 2016, 8:12:27 AM10/5/16
to osg-...@lists.openscenegraph.org
Hi, Robert!
It's under Ubuntu 16.04 but with Intel i5 Mesa drivers 12.0.1
Now Mesa support GL 3.0 compatability profile and
GL 3.3 ONLY Core profile. I need geometry shaders and I have to use GL3.3 Core profile and use VAO
Long time ago I posted my version of osgText with VAO.
forum.openscenegraph.org/viewtopic.php?t=14783
with patch http://forum.openscenegraph.org/download.php?id=6045
But I thought that in vertex_array_object branch all will be worked fine
But not.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68868#68868

Robert Osfield

unread,
Oct 5, 2016, 8:51:59 AM10/5/16
to OpenSceneGraph Users
Hi Roman,

On 5 October 2016 at 13:14, Roman Grigoriev <grig...@gosniias.ru> wrote:
> Hi, Robert!
> It's under Ubuntu 16.04 but with Intel i5 Mesa drivers 12.0.1
> Now Mesa support GL 3.0 compatability profile and
> GL 3.3 ONLY Core profile. I need geometry shaders and I have to use GL3.3 Core profile and use VAO
> Long time ago I posted my version of osgText with VAO.
> forum.openscenegraph.org/viewtopic.php?t=14783
> with patch http://forum.openscenegraph.org/download.php?id=6045
> But I thought that in vertex_array_object branch all will be worked fine
> But not.

The vertex_array_object branch doesn't utilize any of the previous VAO
support submissions, each of these had their own issues that made them
inappropriate for rolling out for general usage. The
vertex_array_object branch is pretty close to being complete, but
needs testing across the community and across usage models.

What isn't working with the vertex_array_object branch?

Robert.

Roman Grigoriev

unread,
Oct 5, 2016, 5:45:19 PM10/5/16
to osg-...@lists.openscenegraph.org
Just checked my old way http://forum.openscenegraph.org/download.php?id=6045 to use compileGLObjects and use glBindVertexArray in DrawForegroundText - works fine.
For now I can't know to use VertexArrayState way in osgText

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68886#68886

Robert Osfield

unread,
Oct 6, 2016, 3:43:05 AM10/6/16
to OpenSceneGraph Users
HI Roman,

On 5 October 2016 at 22:47, Roman Grigoriev <grig...@gosniias.ru> wrote:
> Just checked my old way http://forum.openscenegraph.org/download.php?id=6045 to use compileGLObjects and use glBindVertexArray in DrawForegroundText - works fine.
> For now I can't know to use VertexArrayState way in osgText

I'm can't work out what specific issues you are hitting up against.
The GLSL shaders required as a fallback for osgText should be the same
regardless of VAO support.

The best forward might be to modify the osgtext example to illustrate
the issue you are having and give us instructions as to how you've
built the OSG and what versions of the OSG you've tested against.

Robert.
Reply all
Reply to author
Forward
0 new messages