home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Animated textures?

by thojoh370 on 07/01/2007 14:27, 24 messages, last message: 07/23/2007 22:09, 10434 views, last view: 12/09/2021 02:59

Does Sauerbraten support any filetype that can be animated? I know that GIF can be animated so I tried to source-edit Sauerbraten so that it loads GIF files instead of JPG, but it didn't want to show the GIF images in-game.

Go to first 20 messagesGo to previous 20 messages    Board Index   

#13: Re: crude animation shader

by a baby rabbit on 07/12/2007 17:21, refers to #12

Fussy critters.... Okay, now always animates in the same order - also minus the lightmap stuff, since I figure a 'movie screen' probably emits light.

shader 0 "movie" [
@vpstart
DP3 result.texcoord[0].x, opos, program.env[0];
DP3 result.texcoord[0].y, opos, program.env[1];
TEMP off;
MUL off, program.env[6], 1; // animation rate
FRC off.x, off.x;
MUL off.x, off.x, 4; // thus 4x4 tiled image
FLR result.texcoord[2].xy, off;
@fogcoord
END
] [
@fpstart
OPTION ARB_fog_linear;
TEMP dtc;
FRC dtc, fragment.texcoord[0];
ADD dtc, dtc, fragment.texcoord[2];
MUL dtc, dtc, 0.25; // 1/4 - so correct scaling
TEX result.color, dtc, texture[0], 2D;
END
]

reply to this message

#14: Re: crude animation shader

by Rainforce on 07/12/2007 19:06, refers to #13

hm... I think both versions are important. This one is good if you try to make thinks like a screen were text rushes through.

I hope that there are more posts like this one...

another question: how do you know how to make this?

reply to this message

#15: ..

by Eris on 07/12/2007 23:32

leet man

reply to this message

#16: Re: crude animation shader

by Passa on 07/13/2007 01:36, refers to #13

Wow baby rabbit, thats really impressive stuff :)

reply to this message

#17: ..

by Acord on 07/13/2007 15:13

This is gonna get used. Zer gut.

reply to this message

#18: Re: crude animation shader

by kurtis84 on 07/13/2007 16:03, refers to #14

he knows how to make this, because the shader language is STANDARD OPENGL stuff, it's NOT sauer-specific people.

We can just "live and learn", but a bit of reading helps that along ;)

reply to this message

#19: Re: crude animation shader

by kurtis84 on 07/13/2007 16:04, refers to #18

btw baby-rabbit, it's a nice script :)

reply to this message

#20: heeh

by Eris on 07/15/2007 12:18

thats how you get streetcred n props

reply to this message

#21: Re: crude animation shader

by Rainforce on 07/20/2007 15:34, refers to #18

sorry, I don't know anything about openGL...
and hey, acute illiteratism isn't funny! XD
--
Does anybody know a good source for learnin something about OGL?

reply to this message

#22: getting started with OGL

by MeatROme on 07/20/2007 20:33, refers to #21

Get a copy of the "OpenGL-RedBook" and peruse http://nehe.gamedev.net/

reply to this message

#23: ..

by crudscurdler on 07/22/2007 07:11

there's also the opengl shading language book

reply to this message

#24: ..

by Eris on 07/23/2007 22:09

So much for so little lol

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2021
website by SleepwalkR © 2001-2021
42367143 visitors requested 58073668 pages
page created in 0.007 seconds using 9 queries
hosted by Boost Digital