Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Quick question - Multitexturing #127909
05/03/07 22:58
05/03/07 22:58
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
Hey guys,
I'm new to shaders and I was just wondering how I'd scale the detailmap image so it tiles instead of streching it across the whole mesh.

Code:
 
bmap detailmap = <detailmap.bmp>;

material terrian_multitex
{
Skin2 = detailmap;
Effect"
// Texture entSkin1;
Texture entSkin2;
Texture mtlSkin1;
Texture mtlSkin2;

Matrix matMtl;
Matrix matMtl2;
Matrix matMtl3;
Matrix matMtl0;

Technique Test
{
Pass P0
{
// Texture[0] = <entSkin1>;
Texture[1] = <entSkin2>;
Texture[2] = <mtlSkin1>;
Texture[3] = <mtlSkin2>;

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

PixelShader = asm
{
ps_1_2

tex t0
tex t1

sub r0,t0,t1
};
}
}
";
}



Hope somebody knows
Thanks

-Bright


KAIN - Coming soon...
Re: Quick question - Multitexturing [Re: Bright] #127910
05/03/07 23:34
05/03/07 23:34
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
I found out how to do it dont worry. Thank you for your time anyway.


KAIN - Coming soon...

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