Okay, I finally got back to working on this a bit.  The good news is
that the code I submitted works fine in Windows.  The bad news is that
my loadShaderSourceFromFile() override function will not work in
Windows.  Apparently, dlls don't let you overload functions the same
way you can in Linux .so files :(

And so I'm back to trying to figure out how to fix up the .osg loader,
which should also solve my shader loading problem.  I've dug into the
code pretty deep and it looks like someone may have had a plan to get
rid of all the deprecated code in the .osg loader, but I have no idea
what that plan is.  Is there a plan for rewriting the .osg loader
without deprecated code that I just haven't figured out?  And, if so,
has most of the code been written and just not assembled correctly in
ReaderWriterOSG.cpp?  Or is there plenty of heavy lifting left to do?
I'll be happy to work on this more, but I am unable to figure out
current intentions just by looking at the code.

For a little bit there I was hoping I could just rewrite
DeprecatedDotOsgWrapperManager::readShader() but when I step through
the loading process, that function never even gets called.  Instead,
DeprecatedDotOsgWrapperManager::readObject() calls
Shader_readLocalData(), which calls
Shader::loadShaderSourceFromFile().
--
Terry Welsh
mogumbo 'at' gmail.com
www.reallyslick.com


>
> Message: 2
> Date: Fri, 14 Oct 2011 08:40:59 +0100
> From: Robert Osfield <[email protected]>
> To: OpenSceneGraph Submissions
>        <[email protected]>
> Subject: Re: [osg-submissions] tight integration of virtual file
>        system
> Message-ID:
>        <cafn7y+wqznesunvmcja4chw_hyszanmrfugl1gpkdntsr5e...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Terry,
>
> I'm afraid I've been rushed off my feet with client work so haven't
> had a chance to review your submission.  As a general comment we
> should work on migrating from the Shader::loadShadeSourceFromFile to
> the osgDB::readShadeFile().
>
> Others are welcome to dive in and test out your changes and give you
> feedback.  I'll be working to clear my backlog and once I've got a
> window I'll dive back into reviewing submissions.
>
> Thanks for you patience,
> Robert.
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to