Thomas Hogarth and I have done some work on running FFP models in GLES2,
with his extended ShaderGen code. It appeared originally in his HogBoxLib:
http://www.hogbox.co.uk/hogboxLib/hogboxProject.php

I am not sure how closely that repo is currently tracking his latest
changes, so it might be best to inquire with him about the latest code.

"thomas.hogarth" <[email protected]>


On Tue, Aug 27, 2013 at 11:04 AM, deniz diktas <[email protected]>wrote:

> Hi Robert,
>
> Thanks for the detailed answer. I will go ahead with ShaderGenVisitor and
> take it from there.
>
> Best,
> Deniz
>
>
> rmilh wrote:
> > On 26.8.2013 22:32, deniz diktas wrote:
> >
> > > Is there a method or utility (maybe some visitor) inside osg that can
> modify the models so that the rendered model is consistent with opengl-3.x
> and opengl-es2.0 features, and that these notifications are disabled?
> > >
> > Hi Deniz,
> >
> > The short answer is: To my best knowledge, and i might be wrong, osg
> > doesn't provide utility or visitor that can remove fixed pipeline state
> > attributes from the graph or visitor that is able to output core opengl
> > or ES2.0  compatible shaders to be used as a replacement for the fixed
> > pipeline state attributes.
> >
> > Anyway, you might want to have a look at the osgshadergen example to see
> > how to do it with osgUtils:ShaderGenVisitor but I believe it won't
> > produce opengl 3 core or ES 2 compatible shaders. You can of course
> > modify ShaderGenVisitor source...
> >
> > Also, there is osg::ShaderComposer you might want to have a look at,
> > designed to solve problems like one you are describing.  The idea here
> > is to attach "shader componet" to any? fixed pipeline state attribute
> > and then let osg automatically compose final shader program for you. The
> > bad news here is that shader composer isn't finished yet, I believe. Of
> > course, you can have a look at the osgshadercomposition example ...
> >
> > Robert Milharcic
> >
> > _______________________________________________
> > osg-users mailing list
> >
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >  ------------------
> > Post generated by Mail2Forum
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=56003#56003
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected]
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography
• Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS •
Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to