|
leveltexture detailmaps / or multitextures
#28302
06/02/04 05:57
06/02/04 05:57
|
Joined: Oct 2002
Posts: 8,939 planet.earth
ello
OP
Senior Expert
|
OP
Senior Expert
Joined: Oct 2002
Posts: 8,939
planet.earth
|
requested some times, so here we go with the brickdark-texture from the standard wad(sure you can replace it by your textures name): Code:
bmap detailmap=<noise1.tga>; //use your detailmap
material brickdark { //replace by your textures name skin1=detailmap; effect=" matrix matMtl; texture entSkin1; texture entSkin2; texture mtlSkin1; technique sol_test { pass p0 { ///////////////////////////////////////////standard a6 rendering Texture[0]=<entSkin2>; //get the lightmap ColorOp[0] = add; ColorArg1[0] = texture; ColorArg2[0] = diffuse; Texture[1]=<entSkin1>; //get the level texture ColorOp[1] = modulate2x; ColorArg1[1] = texture; ColorArg2[1] = current; //AddressU[1] = mirror; // try mirrored texture //AddressV[1] = mirror; ///////////////////////////////////////////detail map starts here Texture[2]=<mtlSkin1>; ColorOp[2] = modulate2x; ColorArg1[2] = texture; ColorArg2[2] = current; TextureTransformFlags[2] = count3; TextureTransform[2] = <matMtl>; TexCoordIndex[2]=1; } } "; }
in your main function place: Code:
d3d_automaterial=1; brickdark.matrix11=float(10); //replace by your textures name brickdark.matrix22=float(10); //replace by your textures name
i dont know why it does not work on my pc setting the matrix inside a init-function using event in the material section, so i set the matrix in the main function... hope i didnt any typos;-) however, you have to define a material for every texture u want to apply a detail and dont forget that you can have as many detail-textures as you like. just use different bmaps.
www.earthcontrol.dequoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
|
|
|
Re: leveltexture detailmaps / or multitextures
[Re: ello]
#28303
06/02/04 06:17
06/02/04 06:17
|
Joined: Jul 2002
Posts: 156 Thüringen
SFMAT4
Member
|
Member
Joined: Jul 2002
Posts: 156
Thüringen
|
Hi,
thx for help! :-)
I have changed the Textur name but the engine show me a error message: "Parameter unknowen texturname"
I have no idea ...
MfG
SF
Last edited by SFMAT4; 06/02/04 06:42.
|
|
|
Re: leveltexture detailmaps / or multitextures
[Re: ello]
#28307
06/02/04 16:51
06/02/04 16:51
|
Joined: Apr 2002
Posts: 4,801 Richmond B.C., Canada
Captain_Kiyaku

Dichotomic
|

Dichotomic
Joined: Apr 2002
Posts: 4,801
Richmond B.C., Canada
|
Hi,
ich hab den code über die main gepackt, weils dadrunter nicht funktioniert. die Noise map fehlt auch, ich hab einfach ein tga mit noise gemacht. umm allerdings muss man bestimmt irgendwie nen alphakanal nutzen oder?
naja also mein block ist weiß wenn ich das level starte.
bye
EDIT
habs jetzt mal ans ende der main geschrieben, diese 3 zeilen code ^^''
also dann startet das level, die textur sieht aber normal aus, ich weis ja nicht was sie machen soll, also vielleicht brauch ichne vernünftige noise texture.
könntest du deine zur verfügung stellen?
Last edited by DS_Kihaku; 06/02/04 16:59.
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: leveltexture detailmaps / or multitextures
[Re: Captain_Kiyaku]
#28310
06/02/04 17:02
06/02/04 17:02
|
Joined: Oct 2002
Posts: 8,939 planet.earth
ello
OP
Senior Expert
|
OP
Senior Expert
Joined: Oct 2002
Posts: 8,939
planet.earth
|
soll sie ja auch nur halt ne detail-textur dazugemixt. kannst per tab in die konsole gehen und mal brickdark.matrix11=float(irgendeine zahl) tippen. dann müsste man s gleich am bildschirm sehen.
versuch mal:
ColorOp[2] = subtract;
oder:
ColorOp[2] = lerp;
oder:
ColorOp[2] = add;
oder,oder,oder...
dann sollte es wirklich anders aussehen. wenn nicht dann weis ich auch nicht. bei mir funzt es sang und klang los. sollte übrigens ab dx6/7 karten funzen
Last edited by ello; 06/02/04 18:56.
|
|
|
|