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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 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
Multi Reative Bump Map #38977
01/06/05 19:31
01/06/05 19:31
Joined: May 2004
Posts: 66
Brazil
key_46 Offline OP
Junior Member
key_46  Offline OP
Junior Member

Joined: May 2004
Posts: 66
Brazil
I am Searching for a BumpMap that reacts with Sun, Static Lights and if i have luck dynamic Lights. Can any Help me?


ADPA Ataque Dos PĂ´neis Assassinos! Atack Of Killer Ponys! ADPA(R) all rights reserved
Re: Multi Reative Bump Map [Re: key_46] #38978
01/07/05 07:41
01/07/05 07:41
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
I posted one ages ago, It will be available at Acknex Unlimited as a demo or wdl in the next week or so. If you can't wait that long for a working demo, here's my original code:

// Shader.wdl
material bump_model //assaign all models this material in script
{
flags = tangent;
}

action Shader_Bumpmap
{
my.material = bump_model;
}

bmap yournormalmapnameDOT3 = <yournormalmapname.tga>;
material yourwadtexturename
{
skin1 = yournormalmapnameDOT3;
flags = tangent;
}


starter load_shaders()
{
d3d_automaterial=1;
effect_load(bump_model,"bumpmap_ent.fx");
effect_load(yourwadtexturename,"bumpmap.fx");
}



//bumpmap.fx
matrix matWorldViewProj;
matrix matWorld;

texture mtlSkin1;
texture entSkin1;
texture entSkin2;
vector vecLight;



technique dot3map
{
pass p0
{
Texture[0] = <mtlSkin1>;
Texture[1] = <entSkin2>;
Texture[2] = <entSkin1>;
TextureFactor = 0xFFFFFFFF;

COLOROP[0] = DotProduct3;
COLORARG1[0] = Texture;
COLORARG2[0] = TFactor;
TexCoordIndex[0] = 1;

COLOROP[1] = Modulate;
COLORARG1[1] = Texture;
COLORARG2[1] = Current;
TexCoordIndex[1] = 0;

magFilter[2]=Linear;
minFilter[2]=Linear;
mipFilter[2]=Linear;
COLOROP[2] = Modulate;
COLORARG1[2] = Texture;
COLORARG2[2] = Current;
TexCoordIndex[2] = 1;
}
}




//Bumpmap_ent
matrix matWorldViewProj;
matrix matWorld;

texture mtlSkin1;
texture entSkin1;
texture entSkin2;
vector vecLight;



technique dot3map
{
pass p0
{
Texture[1] = <entSkin1>;
Texture[0] = <entSkin2>;
TextureFactor = 0xFFFFFFFF;

COLOROP[0] = DotProduct3;
COLORARG1[0] = Texture;
COLORARG2[0] = TFactor;
TexCoordIndex[0] = 1;



magFilter[1]=Linear;
minFilter[1]=Linear;
mipFilter[1]=Linear;
COLOROP[1] = Modulate;
COLORARG1[1] = Texture;
COLORARG2[1] = Current;
TexCoordIndex[1] = 1;
}
}



Enjoy, Matt Coles


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