Page 1 of 1

tcMod transform

Posted: Sat Sep 24, 2011 10:28 pm
by RedSnappa
From the Q3A Shader Manual:

Code: Select all

6.6.5 tcMod <transform> <m00> <m01> <m10> <m11> <t0> <t1>
Transforms each texture coordinate as follows:

S' = s * m00 + t * m10 + t0
T' = t * m01 + s * m11 + t1

This is for use by programmers.

Umm...what? What does this mean and how do I use it?

Re: tcMod transform

Posted: Sat Sep 24, 2011 10:33 pm
by Delirium
RedSnappa wrote:

Code: Select all

This is for use by programmers.

Not level designers

Re: tcMod transform

Posted: Sat Sep 24, 2011 10:57 pm
by HappyDay
Afaik you can shear and stretch your texture. But there's no use for a shader like that. If you really wanted to do that (I don't know why you would want to do that) you'd probably do it in photoshop or gimp.

Re: tcMod transform

Posted: Sun Sep 25, 2011 1:25 am
by RedSnappa
I tried it and it made a water texture I made VERY bright, and made everything viewed through it much brighter as well. I wish I knew how to use it properly, because the guy who made edo uses it in one of his water shaders and it looks nice. He has it on a .tga file with an alpha channel though. My tcMod transform was on a .jpg file.

BTW, I use GIMP 2.4 for all texture editing.

Re: tcMod transform

Posted: Sun Sep 25, 2011 2:18 am
by Delirium
I bet, just like you he added it in not knowing what it was doing. Probably left it there cause he was satisfied with it.

It can be used in skyboxes yet I haven't a clue how it works

Re: tcMod transform

Posted: Sun Sep 25, 2011 6:27 am
by Rayne
You really don't need this.
This is a one time passive command that will stretch the texture across coordinates determined in the shader and that's it.
This is not an active command like scroll.

Re: tcMod transform

Posted: Sat Oct 15, 2011 9:00 pm
by theRipper
someone should edit the shader manual specifically for urban terror and cmm :)

Re: tcMod transform

Posted: Sat Oct 15, 2011 9:02 pm
by Delirium
Lol why?
The shader manual is only just a reference anyhow

Re: tcMod transform

Posted: Sat Oct 15, 2011 10:40 pm
by theRipper
well, people look through it for things to use in maps, and to get inspiration for home made shaders ;)

Re: tcMod transform

Posted: Sun Oct 16, 2011 6:52 am
by Rayne
Shader manual merely explains the meaning of each keyword that can be used.
Tcmod transform was in the end described as something used by programmers, what Red needed was tcmod scale.