Robert,

In my opinion all we need to do is support the old functionality through
the old interfaces. This doesn't mean that we cannot use the new
datastructure for supporting the old way of working. In two complete
code paths would you also want to store the data in two separate
locations?

For easing porting of old applications we could also add an osgUtil
class that can compile a new 6 face image from 6 single images and vice
versa.
This helper class could also be used in TextureCubeMap and the .osg and
.ive readerwriter, but I don't know if this introduces new dependencies.

Roland 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Robert Osfield
> Sent: zaterdag 29 september 2007 10:33
> To: OpenSceneGraph Submissions
> Subject: Re: [osg-submissions] DDS cubemap support
> 
> Hi Roland,
> 
> On 9/28/07, Smeenk, R.J.M. (Roland) <[EMAIL PROTECTED]> wrote:
> > I've updated TextureCubeMap to support old style multiple 
> image loading.
> > The example osgvertexprogram demonstrates backwards 
> compatibility when 
> > using the command line parameter --old.
> 
> Thanks.
> 
> > An array of images stored in TextureCubeMap is now used as 
> a cache of 
> > files that will automatically be converted to a single 6 
> face image as 
> > soon as the image list is complete.
> 
> I haven't reviewed the code yet, but this sounds really 
> fragile and problematic.  My thought was that TextureCubeMap 
> should fully support the old usage and the new single Image 
> usage, not try to shoe horn the new usage onto the old usage.
> 
> Yes this will mean some duplicate paths which itself isn't 
> ideal, but at least it would preserve the original 
> functionality - no user code should break.
> 
> Robert.
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-o
penscenegraph.org
> 

This e-mail and its contents are subject to the DISCLAIMER at 
http://www.tno.nl/disclaimer/email.html
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to