Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (vicknick), 776 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 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