[Self-Solved] Mipmapping questions January 06, 2015 12:33PM | Registered: 10 years ago Posts: 45 |
Re: Mipmapping questions January 10, 2015 04:25PM | Registered: 14 years ago Posts: 363 |
Re: Mipmapping questions January 14, 2015 02:32PM | Registered: 10 years ago Posts: 45 |
gxtexconv -i image.png colfmt=4 mipmap=yes minlod=0 maxlod=8 -o texture.tplBut remember, the source image must be a power-of-two in order for this to work properly... Also, because mipmapped textures are roughly 35% larger than non-mipmapped textures, it is best to use either RGB565 or DXT1 Compressed as the texture format.
GX_InitTexObjLOD( barbTex.TexObj(), // Texture object to set the mipmap settings to. GX_LIN_MIP_LIN, // Set minFilt (near) as Linear-mipmap-Linear. GX_LINEAR, // Set magFilt (far) as just Linear. 0.f, // MinLOD... Should be 0 in most cases. 8.f, // MaxLOD... 8 is good enough in most cases. -0.4f, // LOD bias... This value reduces blurring a little. GX_DISABLE, // No need to clamp LOD+Bias I think? GX_ENABLE, // Compute LOD by adjacent texels, improves sharpness of far away texels. GX_ANISO_4 // Anisotropy level (the higher the level, the sharper far textures will look but may also be slower). );
Re: [Self-Solved] Mipmapping questions January 15, 2015 01:02AM | Registered: 14 years ago Posts: 363 |
Re: [Self-Solved] Mipmapping questions January 15, 2015 08:09AM | Registered: 10 years ago Posts: 45 |
Re: [Self-Solved] Mipmapping questions January 15, 2015 08:14AM | Registered: 14 years ago Posts: 363 |