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,618 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
dx8 Bump Shader with static Light #100299
11/27/06 22:12
11/27/06 22:12
Joined: Nov 2006
Posts: 33
A
alfredm Offline OP
Newbie
alfredm  Offline OP
Newbie
A

Joined: Nov 2006
Posts: 33
hello my friends
I want apply dx8 bump shader to mymodel that working with static light
please help me

Re: dx8 Bump Shader with static Light [Re: alfredm] #100300
11/27/06 23:54
11/27/06 23:54
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Well, without posting the shader code, we can only guess at what changes are needed. Are you using the latest A6 version, or are you using an older Directx 8 version of A6? The current version requires DirectX 9 shaders, which are slightly different in syntax. I'm not sure if I can help you, but I could try..

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: dx8 Bump Shader with static Light [Re: alfredm] #100301
11/28/06 00:24
11/28/06 00:24
Joined: Nov 2006
Posts: 33
A
alfredm Offline OP
Newbie
alfredm  Offline OP
Newbie
A

Joined: Nov 2006
Posts: 33
thanks for your attention
I have gs6.22pro

I have bump shader that works with dynamic light
this code:
material mat_bump
{
skin2 = reptile; // set a reptile skin
scale1 = 0.2; // factor for the skin scale at stage 0
// define a material effect string
effect = "
// declare the used textures and variables
texture entSkin1; // the entity skin
texture mtlSkin2; // the bump map
dword mtlSkill1; // the light vector
// default technique
technique bump_dot3
{
pass P0
{
// set texture stage states
Texture[0] = <mtlSkin2>;
Texture[1] = <entSkin1>;
TextureFactor = <mtlSkill1>;
ColorArg1[0] = Texture; // stage 0 = bumpmap
ColorOp[0] = DotProduct3;
ColorArg2[0] = TFactor;
ColorArg1[1] = Texture; // stage 1 - skin texture
ColorOp[1] = AddSigned;
ColorArg2[1] = Current;
ColorArg1[2] = Diffuse; // stage 2 - lighting
ColorOp[2] = Modulate2x;
ColorArg2[2] = Current;
}
}

// fallback technique for devices that do not support bumpmapping
technique fallback
{
pass P0
{
// set texture stage states
Texture[0] = <entSkin1>;
ColorArg1[0] = Texture; // stage 0 = skin texture
ColorOp[0] = Modulate2x;
ColorArg2[0] = Diffuse; // modulate by lighting
}
}
"; // end of the effect string
}

starter mat_bump_init {
// initialize the material properties
vec_set(mat_bump.ambient_blue,mat_model.ambient_blue);
vec_set(mat_bump.diffuse_blue,mat_model.diffuse_blue);
vec_set(mat_bump.specular_blue,mat_model.specular_blue);
mat_bump.power = mat_model.power;
// create the normals map for DOT3 bumpmapping
bmap_to_normals(mat_bump.skin2,2);
// set a lighting vector for DOT3 bumpmapping
mat_bump.skill1 = pixel_for_vec(vector(200,200,200),100,8888);
}

Re: dx8 Bump Shader with static Light [Re: alfredm] #100302
11/28/06 09:32
11/28/06 09:32
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
go buy a legal 3dgamestudio copy you warez user ;<
I hope it will blow up your PC and house ;<<<<<


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig
Re: dx8 Bump Shader with static Light [Re: Captain_Kiyaku] #100303
11/28/06 11:10
11/28/06 11:10
Joined: Nov 2006
Posts: 70
UK!
erbismi Offline
Junior Member
erbismi  Offline
Junior Member

Joined: Nov 2006
Posts: 70
UK!
how could you tell he had an illegal copy?


-www.llamastormgames.page.tl
Re: dx8 Bump Shader with static Light [Re: erbismi] #100304
11/28/06 11:24
11/28/06 11:24
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
"I have gs6.22pro" and the warezbunny pwn3d you!

Re: dx8 Bump Shader with static Light [Re: erbismi] #100305
11/28/06 11:24
11/28/06 11:24
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
Captain_Kiyaku Offline

Dichotomic
Captain_Kiyaku  Offline

Dichotomic

Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
cause im mr. warezfinder. believe me, the chance that its illegal is super high. People who work with 3dgs for some time will find out when its illegal. i won't tell it here now so people are warned

EDIT: to the topic starter - download with your username and password the newest update then everything is fixed.

Last edited by Kihaku; 11/28/06 11:25.

My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig

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