Hi Robert,
Sorry I had to ask because I am currently working on something where I have to pack basically groups of textured triangles into a texture, and those groups are clearly non-rectangular and may even have holes... I currently use a "tetris packing"-like scheme but the results are not so good. Regards, guillaume -----Original Message----- From: [EMAIL PROTECTED] on behalf of Robert Osfield Sent: Tue 9/5/2006 10:48 AM To: osg users Subject: Re: [osg-users] TextureAtlasBuilder checked into CVS. Hi Guillaume, On 9/5/06, Poirier, Guillaume <[EMAIL PROTECTED]> wrote: > > Does this atlas builder packs only rectangular textures with some sort of > binary > space partitionning algorithm ? Can it handle non-rectangular elements > like > triangle strips ? > I am confused, texture atlas is purely for textures, and textures are are always rectangle in shape. Triangle strip are are totally orthogonal element to OpenGL and the OSG, and have nothing todo with texture atlas building, other that texcoords on geometry has to be updated to handle the new position of the image without the wider texture atlas. The updating of tex coords is handled, but again this has nothing to do with tri strips or other primitives, its purely a Vec2Array matrix operation on the texcoords. Robert,
<<winmail.dat>>
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
