Hi Eric,

On 7/5/06, Eric Sokolowsky <[EMAIL PROTECTED]> wrote:
> I believe the limit of a multiple of 4 is something related to the
> S3TC compression where it uses blocks of pixels as its block to do the
> compression.

Yes, this is exactly the reason. The question is, is it worthwhile coding
a check for this condition in OSG? I don't want to code it if it stands
little success for inclusion in OSG proper. I already have a workaround for
my application that deals with this situation, but the general solution
might be useful to others as well. The change would merely disable the
compression request for images that are not a multiple of four in either
dimension, when glTexSubImage2D() is called.

I think reporting an error and then falling back to non compressed
would be the most graceful approach.  I'm quite preoccupied with half
a dozen tasks right now so if you want to get your head fully around
it and code a solution then I'd be happy to merge the changes.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to