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,619 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
detailshader problem #38291
12/24/04 05:21
12/24/04 05:21
Joined: Mar 2004
Posts: 202
Germany
zSteam_ Offline OP
Member
zSteam_  Offline OP
Member

Joined: Mar 2004
Posts: 202
Germany
hallo
ich hab nen problem: 1.ich bekomm schon ewig kein mipmapping in mein shader
2.der shader reagiert auf sonne aber ich will das er nur auf lichter reagiert

Code:
 var d3d_automaterial=1;

bmap b_detail2=<detail1.tga>;//detail map textur

function init_detail_mapping
{
bmap_to_mipmap(mtl.skin1);
}

material InWall //textur im wad
{

event=init_detail_mapping;
skin1=b_detail2;
effect=
"
texture mtlSkin1;
technique detail_mapping
{
pass p0
{
texture[2]=<mtlSkin1>;

magfilter[2]=linear; //???
minfilter[2]=linear; //???
mipFilter[2]=linear; //mipmapping filter (funzt ni)

resultarg[0]=temp; // ???

colorop[1]=selectarg1; //beleuchtung
colorop[2]=addsigned; // add detail map to color map
colorarg1[3]=temp; // (shadow map + vertex lighting)
colorop[3]=modulate; // modulate (color map + detail map) with (shadow map + vertex lighting)

texcoordindex[2]=1;
texturetransformflags[2]=count2;
texturetransform[2]={4.0,0.0,0.0,0.0, // detail map u scale
0.0,4.0,0.0,0.0, // detail map v scale
0.0,0.0,0.0,0.0,
0.0,0.0,0.0,0.0};

}
}
";
}




A6 Commercial 6.50.6
Re: detailshader problem [Re: zSteam_] #38292
12/27/04 07:00
12/27/04 07:00
Joined: Sep 2003
Posts: 48
germany
sane Offline
Newbie
sane  Offline
Newbie

Joined: Sep 2003
Posts: 48
germany
muss der event befehl nicht nach der skin defintion?


---------------------------------- www.xiron.de
Re: detailshader problem [Re: sane] #38293
12/27/04 21:16
12/27/04 21:16
Joined: Mar 2004
Posts: 202
Germany
zSteam_ Offline OP
Member
zSteam_  Offline OP
Member

Joined: Mar 2004
Posts: 202
Germany
klappt trotzdem nicht


A6 Commercial 6.50.6
Re: detailshader problem [Re: zSteam_] #38294
12/28/04 02:25
12/28/04 02:25
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
InWall

Should be

InWall_bmp

You need to type the full filename, substituting "." with "_"

Quote:

InWall

Soll sein

InWall_bmp

Sie müssen den vollen Dateinamen tippen, der ersetzt "." mit "_"




-Rhuarc


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: detailshader problem [Re: zSteam_] #38295
12/28/04 05:00
12/28/04 05:00
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
btw i noticed in the last time that the directx compiler is case sensitive in some cases... so please write your code as provided in a manual.

ok i've some time left...

Code:

effect = "

texture entSkin1;
texture mtlSkin1;

technique t0
{
pass p0
{
Texture[0] = <entSkin1>;

ColorArg1[0] = Texture;
ColorOp[0] = Modulate; //OR Modulate2x
ColorArg2[0] = Diffuse;

Texture[1] = <mtlSkin1>;

TextureCoordIndex[1] = 1;
TextureTransformFlags[1] = Count2;
TextureTransform[1] = { 4.0, 0.0, 0.0, 0.0,
0.0, 4.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0 };

ColorArg1[1] = Current;
ColorOp[1] = Modulate | AddSmooth; //Use different blending methods here, i've got some good results out of this
ColorArg2[1] = Texture;
}
}

";




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