tcMod transform

Having a problem with a shader or texture
Post Reply
RedSnappa
Posts: 323
Joined: Sun Aug 21, 2011 12:10 pm
Location: North Carolina (USA)

tcMod transform

Post 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?
[LCDLC]Snappa
LCDLC Mapmaking Dept.
Maps finished: Hellhouse, Sorry, Worrior 1-20
Maps modded: CubeOrigin
Maps in release candidate: Blockforts, Cannons 1, Hotzone, Icecastle
Maps in beta: Arctica, Cannons 2, Cerulean-River, Igloo, Skygarden, Spacestation
Maps in alpha: Merlin, Totem

User avatar
Delirium
Posts: 366
Joined: Sat Aug 27, 2011 8:37 am
Location: Auckland, New Zealand

Re: tcMod transform

Post by Delirium »

RedSnappa wrote:

Code: Select all

This is for use by programmers.

Not level designers
Image

User avatar
HappyDay
Posts: 60
Joined: Sun Aug 21, 2011 9:33 am
Contact:

Re: tcMod transform

Post 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.
Have a happy day! :)

RedSnappa
Posts: 323
Joined: Sun Aug 21, 2011 12:10 pm
Location: North Carolina (USA)

Re: tcMod transform

Post 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.
[LCDLC]Snappa
LCDLC Mapmaking Dept.
Maps finished: Hellhouse, Sorry, Worrior 1-20
Maps modded: CubeOrigin
Maps in release candidate: Blockforts, Cannons 1, Hotzone, Icecastle
Maps in beta: Arctica, Cannons 2, Cerulean-River, Igloo, Skygarden, Spacestation
Maps in alpha: Merlin, Totem

User avatar
Delirium
Posts: 366
Joined: Sat Aug 27, 2011 8:37 am
Location: Auckland, New Zealand

Re: tcMod transform

Post 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
Image

User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

Re: tcMod transform

Post 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.

User avatar
theRipper
Posts: 223
Joined: Tue Aug 30, 2011 1:57 pm
Contact:

Re: tcMod transform

Post by theRipper »

someone should edit the shader manual specifically for urban terror and cmm :)
Image

User avatar
Delirium
Posts: 366
Joined: Sat Aug 27, 2011 8:37 am
Location: Auckland, New Zealand

Re: tcMod transform

Post by Delirium »

Lol why?
The shader manual is only just a reference anyhow
Image

User avatar
theRipper
Posts: 223
Joined: Tue Aug 30, 2011 1:57 pm
Contact:

Re: tcMod transform

Post by theRipper »

well, people look through it for things to use in maps, and to get inspiration for home made shaders ;)
Image

User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

Re: tcMod transform

Post 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.

Post Reply