Joined: May 11, 2005 Posts: 842 Location: The Hague, Holland
Status: Offline Title: Coffee Criminal
Game: JKA
Posted: Mon Feb 08, 2010 8:55 pm Post subject: rotating textures
I wonder if there is an easier way for this (like in a shader) to make a texture spin... I have this target shader i made, now i have it just simply applied to a brush with no draw and origin, made it into a func rotate, but is it possable also to do this with a shader, i searched through the shaderED but i couldn't find any of this.
The thought of Rosh Penin doing the Macarena makes me want to saber myself.
~ChernyVolk
note the mining laser in the begin, but still work in progress.
And actually i dont use shadered, but i know it has preview function, which i do like, so i dont have to launch the game in order to see if it works
edit:: should be testing this but
Quote:
tcMod rotate degrees/sec
This keyword causes the texture coordinates to rotate. The value is expressed in degrees rotated each second. A positive value means clockwise rotation. A negative value means counterclockwise rotation. For example "tcMod rotate 5" would rotate texture coordinates 5 degrees each second in a clockwise direction. The texture rotates around the center point of the texture map, so you are rotating a texture with a single repetition, be careful to center it on the brush (unless off-center rotation is desired).
does this mean if i enter a negative ammount (so tcMod rotate -5) that it would go counter clock wise (cause that was my original intention; a few clockwise and 1 or 2 go counter)
The thought of Rosh Penin doing the Macarena makes me want to saber myself.
~ChernyVolk
tcMod rotate doesn't seem to work on my texture (it makes the texture appear as not present) this is purely out of thought, but is it actually possable to make an animmap rotate, or can it only be done with just a single texture?
Cause as soon as i remove the commando tcMod, it will operate just fine.
The thought of Rosh Penin doing the Macarena makes me want to saber myself.
~ChernyVolk
Joined: Aug 01, 2006 Posts: 1221 Location: Sitting Here.
Status: Offline Game: JKA
Posted: Tue Feb 09, 2010 3:27 pm Post subject: Re: rotating textures
The problem is that you put it in the shader properties area instead of the shader stage itself. I don't see any reason you can't rotate an animmap. Try this shader instead (note the location of the rotate command):
But keep in mind that the tcMod rotate value is degrees per second. So the value you have right now might make it rotate fairly fast, but that's your call.
P.S. Why would you ever want to "remove the commando?" They're cool. (Most epic typo ever!)
Prolong your life! A day of routine lasts a minute; a day of variety lasts a year. ~Me
[/rant] I'm done now... ~NAB622
I don't think in my mind, I think inside forum posts. :D ~Pande
Posted: Thu Feb 18, 2010 5:33 pm Post subject: Re: rotating textures
About that rotating thingy...I'd suggest separating the three rings into separate brushes that are just slightly separated (one in front of the other). That way you can look at it from the side and still see it.
I use ShaderED as well - it has a few JA specific functions in it that the q3 shader manual doesn't cover.
I have no idea how the Raven mappers didn't end up strangling the programmers. They must work in separate buildings with incompatible keycards... -lassev
Ya but that was where NAB was going like 'hey thats nice'. Here I'm like 'brain just made a connection'. :D -Pande
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum