Moving platform....

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

Moderator: Moderators

Post Reply
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Moving platform....

Post by dooguesgoober4 »

Is it possible to create some sort of assembly line table type thing and have the chain on it moving????

EDIT ~ I have a dense cylinder that i am using for the circulating chain of the assembly line table. Maybe that helps???
~DooGues~

Image
Download Now!!
Random
Moderator
Posts: 401
Joined: Sun Jun 01, 2003 11:00 pm

Post by Random »

Try editing the shader to give the textures a scrolling effect instead of moving the actual brush. I dont recall exactly what command to use and for some reason the shader bible is down. but here is the link.

http://qeradiant.com/manual/Q3AShader_Manual/index.htm

I think rgbGen wave is the one your lookin for i just cant remember if you want to use square sin or something else.

Hope this somehow helps.
Moderator
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

script

Post by tltrude »

You could make the chain a script_object and move it with your map's script. But, you would have to move sections of it under the table/floor to make it continous. So, it may be easier just to make a chain texture and scroll it with a shader, as Random said.

Here is a working link to a Q3 shader manual:
http://www.heppler.com/shader/shader/index.html

And, a link to download it:
http://www.heppler.com/shader/shader/Q3 ... manual.zip
Tom Trude,

Image
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

Now how do I change the shader....LoL
~DooGues~

Image
Download Now!!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Random wrote:I think rgbGen wave is the one your lookin for i just cant remember if you want to use square sin or something else.
rgbGen wave is more for flashing lights... you need tcMod scroll in this case :wink:
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

a texture movingbelt.tga in folder main/textures/machine and a machine.shader in main/scripts with this

Code: Select all

textures/machine/movingbelt
{
	qer_keyword signs
	surfaceparm metal
	{
		map textures/machine/movingbelt.tga
		depthWrite
		tcMod scroll 0 1 //adjust this line for direction and speed
		tcMod scale 1 1
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}
will move!
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

I'm sorry but that doesn't really tell me how I make the texture move....sorry im beign so irritable with this question but i just think it would be really kewl to have it in my map.....I am one of those types of people who learn by doing, so could someone please tell me what to do step by step, im still now sure which texture im gonna use though.... :?
~DooGues~

Image
Download Now!!
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

i have put a moving belt in the mohaa recycling bin (in misc).
u should download it and take a look. :wink:

p.s.: I used general_industrial/ventshaft_conexn without any alterations in this example. So u could as well change the included belt.shader to something like

Code: Select all

textures/belt/movingbelt 
{ 
   qer_keyword signs 
   surfaceparm metal 
   { 
      map textures/general_industrial/ventshaft_conexn.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 
   } 
} 
this way u would not have to include the texture with your pk3 and leave it a bit smaller. just to show u how u would use a custom texture I did it the other way.
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

awesome.....one last question, i think, lol, how exactly do you edit the shader....where do you go????

EDIT ~ Nevermind guys, I figured out how to compile the pk3 files and all that good stuff just by looking at your movingplatform pk3 thing, thanks a lot!!!
~DooGues~

Image
Download Now!!
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

edit it with Notepad. I learned here:

http://users.1st.net/kimberly/Tutorial/cust-text.htm

:wink:
"all the governments in the world are corrupt and in the hands of the Illuminati"
Post Reply