alpha face sorting inside single mesh? 2004-03-29 - By Neto
Back > Actually a far better improvement (if the 2d sprites are small) is to > combine many sprites ona single texture. This will reduce the number of > shaders and therefore submeshes needed, not to mention minimise 3D state > changes which can be costly. So go with a 256x256 or even 512x512 collage of > your 2d sprites, then adjust the UV values to map sprites to quads.
That's truly the best thing to do. I'm something like that for displaying text using a bitmap font: there this big 512x512 texture with all characters, and each quad is given a UV set to display a different character.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|