pman icon indicating copy to clipboard operation
pman copied to clipboard

Add Texture Optimization

Open Moguri opened this issue 8 years ago • 2 comments

We can create Panda3D txo files for textures using Texture.write('name.txo'). We should add an option to convert textures to txo and to compress textures. Panda3D's texture class will automatically pick an appropriate compression format based on number of channels when using Texture.set_compression(Texture.CM_on). However, we will need to handle switching to CM_rgtc if we detect the texture is used for normal maps.

Moguri avatar Jul 14 '17 17:07 Moguri

For the record, you can tell Panda's model-cache to cache textures as .txo automatically using model-cache-textures true. Also, when converting models using egg2bam, you can use the -txo flag to automatically convert textures referenced by the .egg file to .txo.

rdb avatar May 07 '19 15:05 rdb

Those are good to know, thanks!

The current why pman handles conversion, it would be nice to separate texture compression from model conversion. However, maybe it makes sense to change up how pman does model conversion so it can take more advantage of Panda features.

Moguri avatar May 07 '19 19:05 Moguri