Page 1 of 1

Animated Television

Posted: Sat Nov 21, 2009 12:58 am
by Poow
Once I have seen a TV/projector for bf.
How is it possible to make something like this?

Re: Animated Television

Posted: Sat Nov 21, 2009 1:29 am
by Apache Thunder
That would probably be me that did that. :D

Video:

http://www.youtube.com/watch?v=92eC2dO-_lA

It's simple. You just have a mesh path to a BIK File like it was a texture. BUT. You can not put BIK files in a RFA! It will not work.

Example on how to path the RS file for the mesh you want to have an animated texture:

Code: Select all

subshader "tvset_screen_m1_Material0" "StandardMesh/Default"
{
	lighting false;
	lightingSpecular false;
	materialDiffuse 1 1 1;
	texture "Mods/DC_UNAUTHORIZED/Movies/video_for_meshes/tvset_video1";
}
Do NOT use the ../ stuff. It's not needed and plus it would cause a CTD if you tried that in a RS file.

Just change the mod name to that of yours and put your mesh videos in the movies folder of your mod and make sure the path matches up. Do not specify an extension, you do not need to do that.

If you want to be able to change channels like in my mod...Well that is a bit more complicated. It involves making the screen part of the TV destructible and having it respawn immediately with a new mesh. You do this by setting up teh screen PCO to have a random geometry using the random geometry code. ;)

Feel free to look into how the TV is coded in my DC Unauthorized mod which you can download from the maps/mods section of this forum! :D

Re: Animated Television

Posted: Sat Nov 21, 2009 2:29 am
by Poow
Yea this was one of the videos I saw :)
Thanks! I will try it soon. :)