Super Happy Cow@Posted: Mon Oct 01, 2007 5:38 am :
textures/509s/chair
{
noselfShadow

{
blend diffuseMap
map textures/509s/chair_d.tga
scale .5, .5
}
}

I applied that simple material to a model, yet the texture does not scale at all. Not much else I can say about this, as I don't really understand it.

What's the best way to get a texture not tile on a model that has UVs that cause tiling?



Super Happy Cow@Posted: Mon Oct 01, 2007 8:48 am :
Actually, almost got it to work. I had to use map instead if "blend" to get it to work.

textures/509s/brak
{

noselfshadow

{
blend bumpmap
map textures/509s/brak_local.tga
scale .1, .1
}
diffusemap textures/509s/brak_d.tga
bumpmap textures/509s/brak_local.tga
}

This is totally not awesome.

It almost works, but instead of just scaling the one texture under blend bumpmap, it scales the diffuse map and the bump map under there. : [



rich_is_bored@Posted: Tue Oct 02, 2007 6:58 am :
Why are you defining the bump map stage twice?



Super Happy Cow@Posted: Wed Oct 03, 2007 4:44 am :
The one with scale is stretched to fit the entire tree while the other one is tiled a lot.



Super Happy Cow@Posted: Wed Oct 03, 2007 4:45 am :
Super Happy Cow wrote:
The one with scale is stretched to fit the entire tree while the other one is tiled a lot.



I was going to make a different bump map for the scaled one, but I was testing to see if my idea would even work before I actually implemented it.



rich_is_bored@Posted: Wed Oct 03, 2007 5:39 am :
Yeah I can see what you're trying to do. The problem is that a material can't have multiple diffuse, bump, or specular stages display at the same time.



Super Happy Cow@Posted: Wed Oct 03, 2007 8:16 am :
...I wonder...why not? : [

It seems lke everything is displaying, except that the scale is affecting everything outside of the brackets, or am I just super wrong and aiming at something unattainable?



Kamikazee@Posted: Wed Oct 03, 2007 8:30 am :
Diffuse maps can be blended by supplying different stages and using different blend parameters (like blend filter). However, bumpmaps can't be blended like that.

You could try it with "image program functions" though: (not tried this one)
Code:
textures/509s/brak
{
    noselfshadow
    diffusemap textures/509s/brak_d.tga
    {
        blend bumpmap
        map addnormals( textures/509s/brak_local.tga, scale(textures/509s/brak_local.tga, 0.1) )
    }
}



Super Happy Cow@Posted: Wed Oct 03, 2007 8:23 pm :
That would make sense, but scale(<rgargaerg>, .1) doesn't seem to want to work whenever I use it.

It's pretty frustrating. : [