Page 1 of 1
Changing Textures
Posted: March 22nd, 2006, 11:02 pm
by Nightmare
I know it might not be possible, but I'll ask anyway.
Is it possible (with some scripting magic if needed) to make it so textures can change after a given time.
Like say, after 15 mins some of the textures in one room change to another.
I know it might not be possible but I'm just asking anyway.
Posted: March 23rd, 2006, 1:05 am
by Soviet
i highly doubt that would be possible, though perhaps with proper scripting you could make one brush move up and the other back, or perhaps make the brushes rotate after a certain amount of time.
Posted: March 23rd, 2006, 1:07 am
by Nightmare
I was thinking doing that, I'm just wondering if there is a different way.
Posted: March 23rd, 2006, 1:28 am
by Drofder2004
Nightmare wrote:I was thinking doing that, I'm just wondering if there is a different way.
When I read the first post my exact reply was going to be to use 2 brushes and just move them 1 unit, but Soviet already got there
There are no other ways.
Posted: March 23rd, 2006, 3:02 am
by Nightmare
ok, I was just wondering, it would be cool to make the skybox turn from day to night in the middle of the game or something like that.
Posted: March 23rd, 2006, 3:18 am
by Soviet
Nightmare wrote:ok, I was just wondering, it would be cool to make the skybox turn from day to night in the middle of the game or something like that.
yea, you're right...it would, oh well
Posted: March 23rd, 2006, 8:09 pm
by Drofder2004
Nightmare wrote:ok, I was just wondering, it would be cool to make the skybox turn from day to night in the middle of the game or something like that.
You are not allowed 2 sky textures in 1 map.
Posted: March 23rd, 2006, 10:19 pm
by Nightmare
I was guessing that, but it would be cool, wouldn't it?
Posted: March 24th, 2006, 8:42 pm
by Drofder2004
KillerSam wrote:i asked drofder this question, the solution was to have 2 brushes, have one in a well lighted area under the map...then when the map starts have it very quickly move inside a wall...then when u want it to change texture make the 2 brushes swap VERY quickly

Indeed. But he wanted 2 skies. Which IS impossible as..
1. Worldspawn settings are used in compile and cannot be changed without recompiling
2. Compiler only allows 1 sky (unless you use custom sky, which will look lame

)
Posted: March 24th, 2006, 10:23 pm
by Soviet
i got an idea though it would probably be too hard to do, but here it is anyway. Ok, you create your skybox, then inside that you create two brushes that can swap out right inside of the skybox. Then you create two custom textures like skies, apply them, then do scripting for interchangableness. Then of course you build your map within those brushes.
Posted: March 24th, 2006, 10:44 pm
by Luke
I know you can only have 1 sky shader file, not sure if u can incorporate 2 sky textures in 1 shader...i'd guess not but might be worth trying
Posted: March 24th, 2006, 11:43 pm
by Soviet
well you woudln't necessarily have to create an actual sky texture, you could just create a texture that looks like the sky