[osg-users] Any progress in configuration abstraction...

Adrian Egli 3dhelp at gmail.com
Tue Jul 31 08:24:40 PDT 2007


Hi Robert,

After doing the 2nd review of the Configure class, i redesigned it. Further
i remarked that we should
have a similar configuration object for each packages, or at least for the
osgUtil packages. For example
you creates a new SceneView objects with CullVisitor and UpdateVisitor
inside. May it would be
better to create the core objects like CullVisitor, UpdateVisitor,... by
using a factory. So we would
have to biggest flexibilty of the creation for the objects. But i just need
my own database pager
to boost my paging. My we can handle by user accessing and casting the
SceneView object by the latest
interface you added last week. i don't know what would be the easiest way to
solve this issue.

i the attachment i have the changes i did. (tag: //adegli)

//adegli setDatabasePager(new osgDB::DatabasePager);
setDatabasePager(osgViewer::Configuration::instance()->getDatabasePagerFactory()->produceDatabasePager());//adegli


this code works for my application, and this design is now much easier.


/Adegli

2007/7/28, Robert Osfield <robert.osfield at gmail.com>:
>
> Hi Adrian,
>
> On 7/24/07, Adrian Egli <3dhelp at gmail.com> wrote:
> > perfect, i propse to do a review myself, may you will be able to send
> just
> > the files, then i can review them for a third review :-)
>
> Have you done a review?  I'm now ready to do a second review with a
> view to getting changes integrated for the next dev release, just
> point me at the source code you want me to consider.
>
> BTW, I've now added a s/getRenderer(Object*) method into osg::Camera
> that I plan to use to attach the GraphicsOperations to that are doing
> the rendering, this way you'll be able to do a dynamic_cast<> to get
> the implementation, and from this the SceneView being used.   One will
> also be able to set your own renderer that can be passed on to the
> GraphicsThreads to use for rendering.
>
> The above isn't wired up yet.  You Configuration class should be able
> to dovtail in with these changes though.  Right now don't worry about
> this, rather just get your Configuration working for your own purposes
> then I can adapt if required at my end.
>
> Cheers,
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
********************************************
Adrian Egli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070731/1686a845/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgViewer.zip
Type: application/zip
Size: 4412 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070731/1686a845/attachment.zip 


More information about the osg-users mailing list