Page 1 of 1

How do i tint a texture

Posted: Mon Feb 10, 2014 8:33 pm
by Mr.Man
http://youtu.be/Jb3ehwncypo?t=2m10

an example video

I wonder how i make the water in this case, glow this blue tint it has.

I looked through its GLDEFS, TERRAIN, everything related as far as i know, but i couln't find anything.

After looking alot through the wiki, i found a script for GLDEFS that might be the awnser to this, but when it ry it, it doesnt work.

Code: Select all

glow{
flats{
		flat MAGMA
}
flat "WATER1", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER2", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER3", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER4", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER5", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER6", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER7", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER8", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER9", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER10", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER11", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER12", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER13", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER14", Color [0.0 0.0 0.5, 64] [, fullbright]
flat "WATER15", Color [0.0 0.0 0.5, 64] [, fullbright]
}
Note the water 1-15 is the one that will give the tint.

Does anybody know why this wont work?

RE: How do i tint a texture

Posted: Mon Feb 10, 2014 10:32 pm
by Leonard
Try something like that ?

Code: Select all

glow{
flats{
        flat MAGMA
}
Texture "WATER1", 000005 , 64, fullbright
Texture "WATER2", 000005 , 64, fullbright
Texture "WATER3", 000005 , 64, fullbright
Texture "WATER4", 000005 , 64, fullbright
Texture "WATER5", 000005 , 64, fullbright
Texture "WATER6", 000005 , 64, fullbright
Texture "WATER7", 000005 , 64, fullbright
Texture "WATER8", 000005 , 64, fullbright
Texture "WATER9", 000005 , 64, fullbright
Texture "WATER10", 000005, 64, fullbright
Texture "WATER11", 000005, 64, fullbright
Texture "WATER12", 000005, 64, fullbright
Texture "WATER13", 000005, 64, fullbright
Texture "WATER14", 000005, 64, fullbright
Texture "WATER15", 000005, 64, fullbright
}

RE: How do i tint a texture

Posted: Tue Feb 11, 2014 5:41 am
by Mr.Man
Script error, "fakepack.pk3:Fusedresourcepackv1.wad:GLDEFS" line 30:
Expected 'fullbright', got '64'.

:/

The wiki really isnt very clear with this, but i see it also put glow and [] lines in it.

EDIT: here the link to the page: http://zdoom.org/wiki/GLDEFS#Glowing_flats