Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,546 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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