Quake3World.com Forums
     Level Editing & Modeling
        Shader speed of movement question.


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Shader speed of movement question.

It starts. I win. The end!
It starts. I win. The end!
Joined: 16 Feb 2005
Posts: 528
PostPosted: 04-21-2005 05:41 PM           Profile Send private message  E-mail  Edit post Reply with quote


I have been looking through obsidian's shader manual and can't find exacly what I am looking for.

I am wondering what variable controls how fast a shader moves across the surface of whatever it is applied to.

Like the shader firegorre.tga moves really fast on gorre and krusade, but the clouds in many of the skys move kinda slow.

I created a bot and applied a shader to it with a texture I created myself, but it moves around in the bot like crazy. I would like to slow it WAY down.

Thanks.



_________________
Uh, well....good luck with that. :shrug:

Image


Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 04-21-2005 06:11 PM           Profile Send private message  E-mail  Edit post Reply with quote


It's the tcMod scroll x y command. x and y control the horizontal and vertical scroll speed.

//Obsidian: Fixed link.




Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 04-21-2005 06:12 PM           Profile Send private message  E-mail  Edit post Reply with quote


Damn, I've been beat :)




Top
                 

I'm the dude!
I'm the dude!
Joined: 04 Feb 2002
Posts: 12498
PostPosted: 04-21-2005 07:42 PM           Profile Send private message  E-mail  Edit post Reply with quote


You've linked to the wrong paragraph, misantropia. I've fixed it for you.

Textures use s and t coordinates which correspond to x and y in 3D space.

If you are using other tcMod functions (rotate, scale), make sure that tcMod scroll is the LAST tcMod operation listed in your shader.



_________________
GtkRadiant | Q3Map2 | Shader Manual


Top
                 

It starts. I win. The end!
It starts. I win. The end!
Joined: 16 Feb 2005
Posts: 528
PostPosted: 04-21-2005 08:14 PM           Profile Send private message  E-mail  Edit post Reply with quote


So if I change the values in red to lets say 0.025 0 0.9 then the shader will move more slow and gentil?

{
map textures/sfx/aeolusclouds.tga
blendFunc GL_ONE GL_ZERO
tcmod scroll 0 1
tcMod turb 0 .25 0 1.6
tcmod scale 4 4
rgbGen identity
}
{
map models/players/aeolus/default.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen lightingDiffuse
}



_________________
Uh, well....good luck with that. :shrug:

Image


Top
                 

It starts. I win. The end!
It starts. I win. The end!
Joined: 16 Feb 2005
Posts: 528
PostPosted: 04-21-2005 08:29 PM           Profile Send private message  E-mail  Edit post Reply with quote


Ok, I tried the above settings and it did slow the shader down, but it seemed to move in a almost linear straight from the floor up direction.
I want to get a kind of effect like clouds moving along, but also gently and slowly swaying back and fourth. If you guys know exactly what values will acheive that effect let me know. Untill I hear back from you I will play with it a bit to see if I can get it on my own.

Thanks to you all for the help!

BTW, obsidian thanks for the help and opinion by e-mail! :icon14:

And misantropia...thanks to you too man! Now go to bed and get some rest you frag monger! Just kidding!

Oh, and don't wamt to leave you out Kaziganthe. Thanks man!



_________________
Uh, well....good luck with that. :shrug:

Image


Top
                 

NOT OK
NOT OK
Joined: 03 Aug 2003
Posts: 1017
PostPosted: 04-21-2005 09:50 PM           Profile Send private message  E-mail  Edit post Reply with quote


...wtf



_________________
Image


Top
                 

It starts. I win. The end!
It starts. I win. The end!
Joined: 16 Feb 2005
Posts: 528
PostPosted: 04-22-2005 12:22 AM           Profile Send private message  E-mail  Edit post Reply with quote


Could you please clarify what you are ...wtf-ing about? :icon25:

Thanks. :dork:



_________________
Uh, well....good luck with that. :shrug:

Image


Top
                 

It starts. I win. The end!
It starts. I win. The end!
Joined: 16 Feb 2005
Posts: 528
PostPosted: 04-22-2005 12:31 AM           Profile Send private message  E-mail  Edit post Reply with quote


BTW, I think I have it. The tcmod scroll determines how fast or if the shader "scrolls" in a linear direction.
The tcmod turb determines the how fast the shader sways back and fourth. The first value controls how fast or if the shader will sway in x direction and the second value controls how fast or if the shader will sway in y direction. Correct?

I think I have it down right now. Please correct me if I have it wrong and explain where I went off the path..lol.

Thanks again guys!



_________________
Uh, well....good luck with that. :shrug:

Image


Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 04-22-2005 04:24 AM           Profile Send private message  E-mail  Edit post Reply with quote


Yep. Regarding the speed of scrolling: tcMod scroll 0.25 0.4 should do the trick.

BTW: thanks, obsidian.




Top
                 
Quake3World.com | Forum Index | Level Editing & Modeling


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.