Can we play an avi?

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post 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 :wink: :cry:
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post 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 :wink:
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

Wacko wrote:But, once again, this is written in the Q3 Shader Manual :wink:
is that a hint?
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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 ........
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply