[osg-users] Using multiples texture for a geometry

Björn Blissing bjorn.blissing at vti.se
Mon May 9 15:04:30 PDT 2016


Flogo wrote:
> 
> I wanted to have multiples different textures not mixed (or blended) on a same geometry such as doing floor tiles (https://en.wikipedia.org/wiki/Porcelain_tile#/media/File:Chinese_porcelain_tiles,_Cochin_synagogue.jpg).


Hi Florian,

Normally this is done via a texture atlas:
https://en.wikipedia.org/wiki/Texture_atlas

That is a large texture which contains multiple subtextures. These can then be applied to the geometry by specifying the corresponding UV-coordinates.

There is even some thing called Mega-textures, where parts of the texture atlas get streamed from disk to create gigantic virtual textures:
http://gamedev.stackexchange.com/questions/1157/how-does-megatexture-work

Regards
Björn

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67063#67063








More information about the osg-users mailing list