Moving Textures?
Moderator: Moderators
-
-[D.S.M.]-Deadeye
- Lance Corporal
- Posts: 17
- Joined: Sun Feb 22, 2004 9:14 pm
- Location: Germany
- Contact:
Moving Textures?
Well, hey guys!
I am working on a new map, its a train which is moving on the rails.
But the Problem is following: How can i make a texture that is moving on the ground? I think about a normal earth ttexture which is moving very fast from the first to the other side. Can you guys help me?
Deadeye
I am working on a new map, its a train which is moving on the rails.
But the Problem is following: How can i make a texture that is moving on the ground? I think about a normal earth ttexture which is moving very fast from the first to the other side. Can you guys help me?
Deadeye
----------------------------------------------------
Already far ahead
Sorry, but that idea is taken--ha ha! This is Atomic's "Train To Hell" map.


-
-[D.S.M.]-Deadeye
- Lance Corporal
- Posts: 17
- Joined: Sun Feb 22, 2004 9:14 pm
- Location: Germany
- Contact:
******! F***** SH****!!!!!!!!!
And i thought i would have something noone have.
Okay..
I solved the problem by looking into the Scripting Forum, and i found this:
Well okay, i tried it and it works, but the texture is "driving" to the wrong direction. What do i have to do exacltly to change the direction?
Thanks
And i thought i would have something noone have.
Okay..
I solved the problem by looking into the Scripting Forum, and i found this:
Code: Select all
textures/belt/movingbelt
{
qer_keyword signs
surfaceparm metal
surfaceparm nomarks
{
map textures/belt/movingbelt.tga
depthWrite
tcMod scroll 1 0 //adjust this line for direction and speed
tcMod scale 1 1
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
} Thanks
----------------------------------------------------
-
-[D.S.M.]-Deadeye
- Lance Corporal
- Posts: 17
- Joined: Sun Feb 22, 2004 9:14 pm
- Location: Germany
- Contact:
tcMod scroll
Yes, that is the shader Atomic is using for all his textures. To change its direction or speed here is what the shader bible says. ( http://www.qeradiant.com/manual/ )
tcMod scroll -3 0
tcMod scroll <sSpeed> <tSpeed>
Scrolls the texture coordinates with the given speeds. The values "s" and "t" conform to the "x" and "y" values (respectively) as they are found in the original textureTGA. The scroll speed is measured in "textures" per second. A "texture" is the dimension of the texture being modified and includes any previous shader modifications to the original TGA). A negative s value would scroll the texture to the left. A negative t value would scroll the texture down.
Example: tcMod scroll 0.5 -0.5 moves the texture down and right (relative to the TGA files original coordinates) at the rate of a half texture each second of travel.
This should be the LAST tcMod in a stage. Otherwise there maybe popping or snapping visual effects in some shaders.
tcMod scroll -3 0
tcMod scroll <sSpeed> <tSpeed>
Scrolls the texture coordinates with the given speeds. The values "s" and "t" conform to the "x" and "y" values (respectively) as they are found in the original textureTGA. The scroll speed is measured in "textures" per second. A "texture" is the dimension of the texture being modified and includes any previous shader modifications to the original TGA). A negative s value would scroll the texture to the left. A negative t value would scroll the texture down.
Example: tcMod scroll 0.5 -0.5 moves the texture down and right (relative to the TGA files original coordinates) at the rate of a half texture each second of travel.
This should be the LAST tcMod in a stage. Otherwise there maybe popping or snapping visual effects in some shaders.
-
-[D.S.M.]-Deadeye
- Lance Corporal
- Posts: 17
- Joined: Sun Feb 22, 2004 9:14 pm
- Location: Germany
- Contact:
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm


