Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, 1 invisible), 1,499 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Scale mtlSkin1? #150142
08/25/07 06:39
08/25/07 06:39
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
Hello,

this is the shader I`m using.
Is there a way to scale the dirt-texture to a much bigger size than the entSkin1???

Code:

bmap dirt_map = <wall_dirt.bmp>;

material wall_108
{
skin1 = dirt_map;

effect
"
texture entSkin1; // block texture
texture entSkin2; // shadow texture
texture mtlSkin1; // dirt texture

technique test
{
pass p0
{
Texture[0] = <entSkin1>; // block
Texture[1] = <entSkin2>; // shadow
Texture[2] = <mtlSkin1>; // dirt

TexCoordIndex[0] = 1;
TexCoordIndex[1] = 0;
TexCoordIndex[2] = 1;

pixelshader = asm
{
ps.1.1

tex t0
tex t1
tex t2

add r1, t0, t2
mul r0, r1, t1
};
}
}
";
}



Last edited by Freddy; 08/25/07 06:40.
Re: Scale mtlSkin1? [Re: Freddy_dup1] #150143
10/10/07 09:07
10/10/07 09:07
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
Since you're not doing any texcoord work in a vertexshader maybe you can try adding this?

TextureTransformFlags[2] = Count2;
TextureTransform[2]=
{ 1.0 , 0.0, 0.0 ,0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0
};

Change the green hilighted numbers to your scaling.


Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1