[osg-users] Does OSG work on Mac OS?
GeeKer Wang
wwthunan at gmail.com
Mon Sep 18 02:23:47 PDT 2017
Hi, Robert,
I am actually using the git version, which doesn't work. Although I have:
glVersion=4.1, isGlslSupported=YES, glslLanguageVersion=4.1,
there are still errors for osgsimplegl3:
Warning: detected OpenGL error 'invalid enumerant' at Before
Renderer::compile
WARNING: Could not find vertex shader attribute 'osg_MultiTexCoord7' to
match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_MultiTexCoord5' to
match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_SecondaryColor' to
match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_MultiTexCoord1' to
match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_MultiTexCoord6' to
match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_FogCoord' to match
BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_Color' to match
BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_MultiTexCoord4' to
match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'osg_MultiTexCoord2' to
match BindAttributeLocation request.
Even not for Mac, how about mesa3d, which doesn't work if no special
graphic?
For example, I tried osgsimplegl3 in ubuntu in parallel virtual machine,
VERTEX glCompileShader "" FAILED
VERTEX Shader "" infolog:
0.1(10): error: GLSL 1.40 not supported
because mesa3d only support GLSL 3.3 in core profile.
Then OSG doesn't support core profile in linux. Am I right? Or is there
special compiling flags to turn on?
----
Martin
On Mon, Sep 18, 2017 at 4:18 PM, Robert Osfield <robert.osfield at gmail.com>
wrote:
> Hi (could sign with your name so we know how to appropriately address you
> :-),
>
> Apple decided to make developers life hard in their OpenGL support, while
> it's easy to roll out support on other platforms on OSX, well... it's a
> pain in the butt. This doesn't just apply to OpenGL, Apple have done it
> for their own API's as well. OSX takes more work than Linux and WIndows
> put together to support, alas only relatively small number of devs in the
> OSG community to use/support it so it's greatest pain for smallest gain...
>
> On the OSG side we have had to steadily implement a range of different
> things to get things to work cleanly, lots of code has had to be rewritten
> to properly support GL3 core profile under OSX, too many changes to make it
> into the OSG-3.2.x and OSG-3.4.x stable releases.
>
> In master we have the VertexArrayObject support built in and a number of
> other changes that makes life easier under OSX, such using git master it's
> now possible to develop under OSX with GL Core Profile.
>
> Robert.
>
>
>
> On 18 September 2017 at 07:25, GeeKer Wang <wwthunan at gmail.com> wrote:
>
>> Hi, all,
>>
>> I have tried OSG on Mac OS 10.12.5 with NVIDIA card by compiling OSG with
>> GL3 enabled, but I failed to make osgsimplegl3 work. It complains the
>> version of glsl.
>>
>> I think the problem is OSG doesnot support core profile. Does it mean all
>> functions depending on glsl130 or above will not work?
>>
>> I also tried mesa3d in virtual machine. However, mesa only support GL3.3
>> in core profile. Is there a solution?
>>
>> --
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
--
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170918/fa4c7177/attachment.htm>
More information about the osg-users
mailing list