Page 2 of 2
Posted: Mon Jan 31, 2005 6:08 pm
by wacko
small_sumo wrote:I am going to do it the old fasioned way and run a big animation. Is there a way to make the shader with out doing hours of copy pasteing? I might use 100 frames. I will have no trouble making the jpgs but the shader might be very hard.
the shader is easy, study the Q3 shader manual and u'll get something similar to
Code: Select all
textures/traffic/traffic_1
{
qer_editorimage textures/pic/pic_01.tga
surfaceparm nomarks
surfaceparm glass
surfaceparm nolightmap
q3map_lightimage textures/pic/pic_blend.tga
q3map_surfacelight 500
cull none
{
animmap 0.8 textures/pic/pic_01.tga textures/pic/pic_02.tga textures/pic/pic_03.tga textures/pic/pic_03.tga textures/pic/pic_03.tga textures/pic/pic_04.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
but in that manual is said, that u just can use 8 different images, so this wouldn't be hours and hours of copy/paste

Posted: Tue Feb 01, 2005 4:34 am
by small_sumo
Crumbs 8 hmmmm I would have to do show hide a bunch of script object brushes making it all even more complicated.
Is there a part of the shader to indicate how long to show each frame and can you show one frame longer than the other?
Hmmmmm.
Posted: Tue Feb 01, 2005 8:55 am
by wacko
Code: Select all
AnimMap <frequency> <texture1> ... <texture8>
frequency is the number of times the animation cycle will be shown per second (e.g. 0.5 would mean, the whole cycle will need 2 seconds).
Then, u can just use 8 different images but u can use them more than once each like 'animmap 5 tex1 tex1 tex1 tex2 tex3 tex3 tex4 tex1 tex5 tex6 tex7 tex8 ....' . This way, u can control how long different stages will be shown. But, once again, this is written in the Q3 Shader Manual

Posted: Wed Feb 02, 2005 1:41 am
by Elgan
Wacko wrote:But, once again, this is written in the Q3 Shader Manual

is that a hint?
Posted: Wed Feb 02, 2005 3:07 pm
by small_sumo
Well when I get around to it I will be adding some footage from spr for the spr tfs sequal I am doing and my omaha map.
A little way off I must add ........