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), 13,972 guests, and 6 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
Page 1 of 4 1 2 3 4
leveltexture detailmaps / or multitextures #28302
06/02/04 05:57
06/02/04 05:57
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline 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.de
quoted: 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 Offline
Member
SFMAT4  Offline
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: SFMAT4] #28304
06/02/04 15:02
06/02/04 15:02
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
ähm, what? does it work or not?

Re: leveltexture detailmaps / or multitextures [Re: ello] #28305
06/02/04 16:25
06/02/04 16:25
Joined: Jul 2002
Posts: 156
Thüringen
SFMAT4 Offline
Member
SFMAT4  Offline
Member

Joined: Jul 2002
Posts: 156
Thüringen
doesn´t work


www.easyparticle.com Das Leben ist ein scheiß Spiel. Aber die Grafik ist verdammt Geil!
Re: leveltexture detailmaps / or multitextures [Re: SFMAT4] #28306
06/02/04 16:37
06/02/04 16:37
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
well then try it the way i provided it and apply the standard brickdark texture onto the levelgeometrie.it worked on my pc i testet it befor i posted it.
btw: your edition supports shaders?

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 Offline

Dichotomic
Captain_Kiyaku  Offline

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] #28308
06/02/04 16:59
06/02/04 16:59
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
nein, kein alphakanal. einfach die textur nehmen, die man möchte. ich hab die noise1.tga natürlich nicht mit beigepackt, die war bei mir nur zu testzwecken.

der material code MUSS vor die main function.

ich habe die d3d_... und matrix zeilen direkt hinter function main() {

gepackt

Re: leveltexture detailmaps / or multitextures [Re: ello] #28309
06/02/04 17:00
06/02/04 17:00
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
ja gut dann hab ich alles richtig gemacht, und die bricktextur bleibt die gleiche

edit
wenn ich es direkt nach der { mache, dann bleibt er einfach weis der block

Last edited by DS_Kihaku; 06/02/04 17:03.

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 Offline OP
Senior Expert
ello  Offline 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.
Re: leveltexture detailmaps / or multitextures [Re: ello] #28311
06/02/04 17:08
06/02/04 17:08
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
habs geändert, klappt nicht ^^''
liegt wohl der fehler bei mir, werd da mal bissl rumprobieren.

hab ne Ati Radeon 9200, also das sollte schon damit klapen glaub ich o_O


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
Page 1 of 4 1 2 3 4

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