How do i tint a texture

Discuss all aspects related to modding Zandronum here.
Post Reply
Mr.Man
Forum Regular
Posts: 657
Joined: Thu May 09, 2013 7:25 pm

How do i tint a texture

#1

Post by Mr.Man » Mon Feb 10, 2014 8:33 pm

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?
Last edited by Mr.Man on Mon Feb 10, 2014 8:33 pm, edited 1 time in total.

User avatar
Leonard
Developer
Posts: 166
Joined: Sat Mar 30, 2013 8:09 pm

RE: How do i tint a texture

#2

Post by Leonard » Mon Feb 10, 2014 10:32 pm

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
}
[spoiler]

Code: Select all

<@WaTaKiD> punish me
* Seanphone gets his belt out
<+Seanphone> all right WaTaKiD bend over

Code: Select all

<Kokiri> capo whos your fav pony?
<capo> i like them all

Code: Select all

cobalt changes topic to 'ZDoom 2.6.1 progress: at r3771, 23 revisions left (98% complete)'
<edward-san> omg
<edward-san> almost finished!!!
<Sean> !!!!!!!!!!!!!!
<Sean> Plot twist: This is the status of Half-Life 3.
<Dusk> plot twist: the percentage count suddenly begins to decline instead
<Sean> Torr makes a forum post "We're going back to 2.5.0"
<Dusk> and we do so incrementally
[/spoiler]

Mr.Man
Forum Regular
Posts: 657
Joined: Thu May 09, 2013 7:25 pm

RE: How do i tint a texture

#3

Post by Mr.Man » Tue Feb 11, 2014 5:41 am

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
Last edited by Mr.Man on Tue Feb 11, 2014 5:43 am, edited 1 time in total.

Post Reply