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, The_Judge, Grant), 898 guests, and 5 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
BumpMap on LevelGeometry ? #68272
03/26/06 08:39
03/26/06 08:39
Joined: Oct 2005
Posts: 22
Moscow
R
Required Offline OP
Newbie
Required  Offline OP
Newbie
R

Joined: Oct 2005
Posts: 22
Moscow
How make BumpMap on LevelGeometry ?

My code:
/////////////////////////////
////// BumpGeom.WDL
/////////////////////////////
material BumpGeom_G
{

ambient_red = 255;
ambient_green = 255;
ambient_blue = 255;
diffuse_red = 255;
diffuse_green = 255;
diffuse_blue = 255;
specular_red = 0;
specular_green = 0;
specular_blue = 0;
emissive_red = 0;
emissive_green = 0;
emissive_blue = 0;
albedo = 50.195;
power = 0;



effect = "BumpGeom_G.fx";
}

action SHADER_BumpGeom_G
{
my.material = BumpGeom_G;
}

starter init_BumpGeom_G() {
bmap_to_normals(BumpGeom_G_mtlSkin1,10);
}

//////////////////
//////Fx code:
//////////////////
extern texture entSkin1;
extern texture entSkin2;
extern texture entSkin3;
extern texture entSkin4;
extern texture mtlSkin1;
extern texture mtlSkin2;
extern texture mtlSkin3;
extern texture mtlSkin4;

extern float4x4 matMtl;
extern float4x4 matViewInv;

technique BumpGeom_G
{
pass p0
{
ZWriteEnable = true;
ZEnable = true;
AlphaBlendEnable = false;
Lighting = true;
//TEXTURE STAGE [0]
Texture[0] = <entSkin2>;
ColorOp[0] = DotProduct3;
MagFilter[0] = Linear;
MinFilter[0] = Linear;
MipFilter[0] = Linear;
//TEXTURE STAGE [1]
Texture[1] = <entSkin1>;
ColorOp[1] = Modulate4X;
}
};

And how make on BumpMap Dynamic Light and script Light ?

Re: BumpMap on LevelGeometry ? [Re: Required] #68273
03/27/06 13:51
03/27/06 13:51
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
->AU

Xpresso

Re: BumpMap on LevelGeometry ? [Re: TWO] #68274
04/01/06 19:38
04/01/06 19:38
Joined: Apr 2005
Posts: 1,058
Luzern
Nicolas_B Offline
Serious User
Nicolas_B  Offline
Serious User

Joined: Apr 2005
Posts: 1,058
Luzern
hy,

macke a material and a starter:

Code:
 

bmap your_normalmap = <filename>;

material Texturname
{
effect = <yourFX.fx>;
}

starter bumpmaps
{
effect_load(your_Material, "YourFX.fx");
}



save the Shader Code as FX File;)

gg Nicolas

Last edited by Nicolas_B; 04/01/06 19:39.
Re: BumpMap on LevelGeometry ? [Re: Nicolas_B] #68275
04/01/06 23:11
04/01/06 23:11
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
and in the starter put at the start:

d3d_automaterial=1;


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