Re: [osg-users] Model Matrix in Vertex Shader

2017-01-27 Thread Sebastian Messerschmidt
Hi Johny, osg_ViewMatrixInverse is not set on 3.4.0? This is always zero for me. How did you find out it is actually zero? I use right settings: Code: state->setUseModelViewAndProjectionUniforms(true); state->setUseVertexAttributeAliasing(true); Did you set this at the camera's state set (

Re: [osg-users] Model Matrix in Vertex Shader

2017-01-27 Thread Johny Canes
I've just been doing some testing and the `view matrices` seem fine after all. It's my gl_Position that's confusing my glsl. I'm porting a Three.js shader to Open Scene Graph and I almost got Phong completely working. -- Read this topic online here: http://forum.openscenegraph.or

Re: [osg-users] bug: osgText doesn't work on MacOSX GL4.x with VAO

2017-01-27 Thread Remo Eichenberger
Hi (Robert :) I've tried a lot of things to get osgText working on MacOSX with VAO. GL3 on OSX Core Profile requires VAOs. osgText doesn't setup the VAO path correctly on MacOSX. I can show glyphs when I use a osg::Geometry as a Wrapper to draw geometries from text glyphs like so: Code:

Re: [osg-users] bug: osgText doesn't work on MacOSX GL4.x with VAO

2017-01-27 Thread Robert Osfield
Hi Remo, On 27 January 2017 at 13:59, Remo Eichenberger wrote: > I've tried a lot of things to get osgText working on MacOSX with VAO. GL3 on > OSX Core Profile requires VAOs. I don't have an OSX system so can't comment on the specifics of VAO support on MacOSX, I have rely upon OSX users to pr

Re: [osg-users] bug: osgText doesn't work on MacOSX GL4.x with VAO

2017-01-27 Thread Remo Eichenberger
Hi Robert I use OSG master 255a86cbe22ba436ab162bd2a2e7cc0341140050 Cheers, Remo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70063#70063 ___ osg-users mailing list osg-users@lists.openscenegraph.

Re: [osg-users] bug: osgText doesn't work on MacOSX GL4.x with VAO

2017-01-27 Thread Robert Osfield
On 27 January 2017 at 14:15, Remo Eichenberger wrote: > I use OSG master 255a86cbe22ba436ab162bd2a2e7cc0341140050 Have you enabled the new VAO support? The env var OSG_VERTEX_BUFFER_HINT should be used and set to VAO. Robert. ___ osg-users mailing lis

Re: [osg-users] bug: osgText doesn't work on MacOSX GL4.x with VAO

2017-01-27 Thread Remo Eichenberger
yes, OSG_VERTEX_BUFFER_HINT=VAO OSG_GEOMETRY_IMPLEMENTATION=VAO -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70065#70065 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.o

Re: [osg-users] bug: osgText doesn't work on MacOSX GL4.x with VAO

2017-01-27 Thread Robert Osfield
HI Remo, On 27 January 2017 at 14:29, Remo Eichenberger wrote: > OSG_VERTEX_BUFFER_HINT=VAO > OSG_GEOMETRY_IMPLEMENTATION=VAO Oh well, that exhausts one possibility of a fix. I don't really know if it's worth trying to fix osgText::Text, when I made the changes to support VAO I got things worki