Gamestudio Links
Zorro Links
Newest Posts
A simple game ...
by bbn1982. 06/18/24 10:42
Face player all the time ...
by bbn1982. 06/18/24 10:25
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
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
3 registered members (VoroneTZ, bbn1982, vicknick), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: HLSL shader hints [Re: Darkstorm] #36242
01/12/05 06:23
01/12/05 06:23
Joined: Jun 2001
Posts: 2,006
USA
Darkstorm Offline
Senior Expert
Darkstorm  Offline
Senior Expert

Joined: Jun 2001
Posts: 2,006
USA
Anyone have any insight on this? If a screenshot would help let me know and I'll post one.

Re: HLSL shader hints [Re: Darkstorm] #36243
01/12/05 06:35
01/12/05 06:35
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Screenshot would be good, also what GPU this is being rendered on...


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: HLSL shader hints [Re: Rhuarc] #36244
01/12/05 17:39
01/12/05 17:39
Joined: Jun 2001
Posts: 2,006
USA
Darkstorm Offline
Senior Expert
Darkstorm  Offline
Senior Expert

Joined: Jun 2001
Posts: 2,006
USA
Okay here's a shot of what I'm talking about:



The code that I added is this:

Code:

bmap grassmap = <grass001.bmp>;
bmap dirtmap = <dirt001.bmp>;

function mtl_terrainmulti3_init()
{
bmap_to_mipmap(mtl.skin2);
bmap_to_mipmap(mtl.skin3);
}


MATERIAL mtl_terrainmulti3
{
skin2 = grassmap;
skin3 = dirtmap;

event = mtl_terrainmulti3_init;

effect = "

........



And I canged the two skins from entSkin to mtlSkin:

Code:

sampler sMaskTex = sampler_state
{
Texture = <entSkin1>;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Wrap;
Addressv = Wrap;
};

sampler sBaseTex = sampler_state
{
Texture = <mtlSkin2>;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Wrap;
Addressv = Wrap;
};

sampler sRedTex = sampler_state
{
Texture = <mtlSkin3>;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Wrap;
Addressv = Wrap;
};

#ifdef GREENMASK
sampler sGreenTex = sampler_state
{
Texture = <entSkin4>;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Wrap;
Addressv = Wrap;
};
#endif



The entSkins are working as they should but the mtlSkins have that blacked out look.

Page 2 of 2 1 2

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