Moving Textures?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
-[D.S.M.]-Deadeye
Lance Corporal
Posts: 17
Joined: Sun Feb 22, 2004 9:14 pm
Location: Germany
Contact:

Moving Textures?

Post 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
----------------------------------------------------
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post 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.
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Already far ahead

Post by tltrude »

Sorry, but that idea is taken--ha ha! This is Atomic's "Train To Hell" map.

Image
Tom Trude,

Image
-[D.S.M.]-Deadeye
Lance Corporal
Posts: 17
Joined: Sun Feb 22, 2004 9:14 pm
Location: Germany
Contact:

Post 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
----------------------------------------------------
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

hit S and rotate the texture 90 degrees.
-[D.S.M.]-Deadeye
Lance Corporal
Posts: 17
Joined: Sun Feb 22, 2004 9:14 pm
Location: Germany
Contact:

Post by -[D.S.M.]-Deadeye »

I am so god damn stupid...

But thanks however for the help :)
----------------------------------------------------
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

tcMod scroll

Post 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.
Tom Trude,

Image
-[D.S.M.]-Deadeye
Lance Corporal
Posts: 17
Joined: Sun Feb 22, 2004 9:14 pm
Location: Germany
Contact:

Post by -[D.S.M.]-Deadeye »

Thanks, it works ^^
----------------------------------------------------
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

so basically those moving texture ive seen are just the texture being scrolled over and over? sweeet
Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post 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-)
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

Cool, thnx for that little bit of info :)
Image
Post Reply