Code: Select all
texture_unit
{
texture checkerboard.png
tex_coord_set 0
}
Code: Select all
texture_unit
{
texture checkerboard.png
tex_coord_set 0
}
Thanks for the reply. Excuse me for blurry description. I've tried your first option to skip this issue. However, in case I need a cube where all sides are covered with different texture, say a dice with a variety of dots. In this case how could I apply the texture on this cube?kubatp wrote:I am not really sure what are you trying to achieve (the description is not really clear to me), but here are few suggestions from top of my head:
- Why don't you remove the faces from the model, where you dont want to have textures? Is there any particular reason to have these faces without texture?
- Set different (new) material for those faces, where you don't want to have texture. For this new material, don't use the texture and make it transparent.
- You can also use the same material for the whole cube, but use shader and some special UV mapped parameters for those faces you want to have transparent. In shader you discard those faces you want to have transparent.
If you want to have the same mesh (cube) used in different scenarios where in one you want some faces to be transparent and in another one to be textured, you can go for the second or third suggested option.bozhang wrote:Thanks for the reply. Excuse me for blurry description. I've tried your first option to skip this issue. However, in case I need a cube where all sides are covered with different texture, say a dice with a variety of dots. In this case how could I apply the texture on this cube?