Animated Television

Ask questions, discuss ideas, get answers

Animated Television

Postby Poow » Sat Nov 21, 2009 12:58 am

Once I have seen a TV/projector for bf.
How is it possible to make something like this?
You’re entering a world of pain!
User avatar
Poow
 
Posts: 271
Joined: Sun Nov 01, 2009 8:00 pm
Location: Germany

Re: Animated Television

Postby Apache Thunder » Sat Nov 21, 2009 1:29 am

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
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1192
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: Animated Television

Postby Poow » Sat Nov 21, 2009 2:29 am

Yea this was one of the videos I saw :)
Thanks! I will try it soon. :)
You’re entering a world of pain!
User avatar
Poow
 
Posts: 271
Joined: Sun Nov 01, 2009 8:00 pm
Location: Germany


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: No registered users and 19 guests

cron