Page 1 of 1

Moving Textures?

Posted: Mon Aug 23, 2004 6:52 pm
by -[D.S.M.]-Deadeye
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

Posted: Mon Aug 23, 2004 8:47 pm
by Yarik
Ask someone who has the file "shopp,pk3" It was a map made by Wacko a while back, and the laundry room had a spinning textures. Honeslty, I dont even have it.

Already far ahead

Posted: Mon Aug 23, 2004 8:58 pm
by tltrude
Sorry, but that idea is taken--ha ha! This is Atomic's "Train To Hell" map.

Image

Posted: Mon Aug 23, 2004 9:46 pm
by -[D.S.M.]-Deadeye
******! 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:

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 
   } 
} 
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

Posted: Mon Aug 23, 2004 11:05 pm
by lizardkid
hit S and rotate the texture 90 degrees.

Posted: Tue Aug 24, 2004 12:28 am
by -[D.S.M.]-Deadeye
I am so god damn stupid...

But thanks however for the help :)

tcMod scroll

Posted: Tue Aug 24, 2004 5:38 am
by tltrude
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.

Posted: Tue Aug 24, 2004 2:21 pm
by -[D.S.M.]-Deadeye
Thanks, it works ^^

Posted: Sun Sep 12, 2004 8:09 pm
by HDL_CinC_Dragon
so basically those moving texture ive seen are just the texture being scrolled over and over? sweeet

Posted: Sun Sep 12, 2004 8:54 pm
by At0miC
Haha srry m8, I was first, anyway I would really like to see your train when it is done. Good luck with it.

Image


Yes dragon, the texture would be scrolled over and over all the time 8-)

Posted: Wed Sep 15, 2004 12:29 am
by HDL_CinC_Dragon
Cool, thnx for that little bit of info :)