Animated textures on brushes?
Moderator: Moderators
-
Soul Extractor
- Lance Corporal
- Posts: 15
- Joined: Wed Jan 14, 2004 2:00 am
Animated textures on brushes?
Ok I've looked around and I can't find a good tutorial for making a animated clip for a texture.
I have studied the animations on maps that have clips in them but they are too different from one another that I'm confused.
Does anyone have a link to a good tutorial or can anyone explain what makes a clip move in the game.
say I have two files named :
Movie1.jpg and Movie2.jgp
I want it to switch back and forth, what script do I use and where would I put my .jpg files?
Can they be .jpg's or should they be .tga's
(what does the number in this next line mean?)
animap .15 textures/blah/blah.jpg
I have studied the animations on maps that have clips in them but they are too different from one another that I'm confused.
Does anyone have a link to a good tutorial or can anyone explain what makes a clip move in the game.
say I have two files named :
Movie1.jpg and Movie2.jgp
I want it to switch back and forth, what script do I use and where would I put my .jpg files?
Can they be .jpg's or should they be .tga's
(what does the number in this next line mean?)
animap .15 textures/blah/blah.jpg

-
Soul Extractor
- Lance Corporal
- Posts: 15
- Joined: Wed Jan 14, 2004 2:00 am
i learn so much from looking at cheats and stuff.Yarik wrote:I know one a script, but then again the script was made for wall hacks so I wont post it. (I dont use cheats, just study them).
anywho i dont know a tut but i bet someone probably would.
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
here's the shader to the movie in shopp
it is using 4 jpgs (yes, they are called tga in the shader, but nevertheless) and this seems to be what u need. q3map_lightimage and q3map_surfacelight are for making it shine, u probably won'T need these two lines.
u might want to read the QuakeIII shader manualdescribing this and other topics regarding shaders.
Code: Select all
textures/movie/king01
{
qer_editorimage textures/movie/king01.tga
surfaceparm nomarks
surfaceparm wood
q3map_lightimage textures/shopp/movie/king01.tga
q3map_surfacelight 100
cull none
{
animmap 5 textures/movie/king01.tga textures/movie/king02.tga textures/movie/king03.tga textures/movie/king04.tga textures/movie/king03.tga textures/movie/king02.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
} u might want to read the QuakeIII shader manualdescribing this and other topics regarding shaders.
-
Soul Extractor
- Lance Corporal
- Posts: 15
- Joined: Wed Jan 14, 2004 2:00 am
I have studied the Shopp .shader (wow your right I didn't notice the .tga .jpg difference in the shader and the textures...weird) I can't get mine to work right. Maybe someone could describe what should be done within the shader and within the textures by using the examples I asked for above in the first post. I will look at the Qmanual and see if I get any pointers for other things.
The shader seems so easy to follow you know but for some reason when I try to replicate the process I can't get it to work.
Please dont forget my other question (anyone) what does that number mean? or/and what is it for?
The shader seems so easy to follow you know but for some reason when I try to replicate the process I can't get it to work.
Please dont forget my other question (anyone) what does that number mean? or/and what is it for?

-
Soul Extractor
- Lance Corporal
- Posts: 15
- Joined: Wed Jan 14, 2004 2:00 am
Thanks Wacko will try that ...could be a typo. Only thing is I copied the shader from another working map e.i Shopp. and only made the necessary changes.
I haven't tried using .tga format so I will try that aswell instead of .jpg's
===========================================
looking at the Shopps shader why do these differ?
textures/movie/king01
{
qer_editorimage textures/movie/king01.tga
surfaceparm nomarks
surfaceparm wood
q3map_lightimage textures/shopp/movie/king01.tga
q3map_surfacelight 100
cull none
{
animmap 5 textures/movie/king01.tga textures/movie/king02.tga textures/movie/king03.tga textures/movie/king04.tga textures/movie/king03.tga textures/movie/king02.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
==========================================
I guess this would be mine
I haven't tried using .tga format so I will try that aswell instead of .jpg's
===========================================
looking at the Shopps shader why do these differ?
textures/movie/king01
{
qer_editorimage textures/movie/king01.tga
surfaceparm nomarks
surfaceparm wood
q3map_lightimage textures/shopp/movie/king01.tga
q3map_surfacelight 100
cull none
{
animmap 5 textures/movie/king01.tga textures/movie/king02.tga textures/movie/king03.tga textures/movie/king04.tga textures/movie/king03.tga textures/movie/king02.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
==========================================
I guess this would be mine
Code: Select all
textures/movie/Coldbeer
{
qer_editorimage textures/movie/Coldbeer.jpg
surfaceparm nomarks
surfaceparm wood
q3map_lightimage textures/movie/Coldbeer.jpg
q3map_surfacelight 100
cull none
{
animmap 5 textures/movie/Coldbeer.jpg textures/movie/Coldbeer1.jpg
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
because I did a typoSoul Extractor wrote:looking at the Shopps shader why do these differ?
then: leave your coldbeer pictures jpegs! But call them coldbeer(1).tga in the shader. This way it ought to work:
Code: Select all
textures/movie/Coldbeer
{
qer_editorimage textures/movie/Coldbeer.tga
surfaceparm nomarks
surfaceparm wood
q3map_lightimage textures/movie/Coldbeer.tga
q3map_surfacelight 100
cull none
{
animmap 5 textures/movie/Coldbeer.tga textures/movie/Coldbeer1.jpg
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}-
Soul Extractor
- Lance Corporal
- Posts: 15
- Joined: Wed Jan 14, 2004 2:00 am
-
Soul Extractor
- Lance Corporal
- Posts: 15
- Joined: Wed Jan 14, 2004 2:00 am
Thx wacko ...worked like a charm this is the shader that worked for me...
Notice: that the shader indicates .tga ...my pictures are actually .jpg's (dont ask ...it worked)
My files are in my pak file as follows:
Textures
>>>Windows
>>>>>Coldbeer.jgp
>>>>>Coldbeer1.jpg
>>>>>Coldbeer2.jpg
-- --------------------------------------------------------------------------
Thx again Wacko
Code: Select all
textures/windows/Coldbeer
{
qer_editorimage textures/windows/Coldbeer.tga
surfaceparm nomarks
surfaceparm glass
q3map_lightimage textures/windows/Coldbeer.tga
q3map_surfacelight 100
cull none
{
animmap 1 textures/windows/Coldbeer.tga textures/windows/Coldbeer1.tga textures/windows/Coldbeer2.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
} My files are in my pak file as follows:
Textures
>>>Windows
>>>>>Coldbeer.jgp
>>>>>Coldbeer1.jpg
>>>>>Coldbeer2.jpg
-- --------------------------------------------------------------------------
Thx again Wacko

