Half-Life: Alyx

Half-Life: Alyx

Expand the world of Half-Life: Alyx
Browse the Half-Life: Alyx Workshop to find the best new addons created by the community, or install the free tools yourself and start making your own Half-Life: Alyx content.
Learn More
GammaGoose 25 Jul, 2020 @ 7:01pm
Playing custom movies on monitors?
I'm trying to find a tutorial that shows how to create this much like the intro movie in the beginning of the game. There is a tutorial on monitors and cameras but cannot find anything about simply adding a video file playback on a monitor. Anyone familiar with this?
< >
Showing 1-3 of 3 comments
Rectus 1 26 Jul, 2020 @ 12:41am 
I'd suggest looking at the map sources to see how it's set up. There is a ton of stuff set up around it for effects, but the actual movie playing part is actually really simple. Basically, it uses a info_offscreen_movie_texture entity to feed the movie to the material on the monitor prop.

Setting the entity up the same way as in the map should allow you to play any movie on the same monitor prop if it has the moviePlaying skin set. If you want to play it on a custom prop or material, you have to add a dynamic material expression to the color texture to make it use the movie instead.

T5D_123 1 26 Oct, 2024 @ 3:00am 
Originally posted by Rectus:
I'd suggest looking at the map sources to see how it's set up. There is a ton of stuff set up around it for effects, but the actual movie playing part is actually really simple. Basically, it uses a info_offscreen_movie_texture entity to feed the movie to the material on the monitor prop.

Setting the entity up the same way as in the map should allow you to play any movie on the same monitor prop if it has the moviePlaying skin set. If you want to play it on a custom prop or material, you have to add a dynamic material expression to the color texture to make it use the movie instead.

what do you put in the box for dynamic expression?
Last edited by T5D_123; 26 Oct, 2024 @ 3:10am
Rectus 1 26 Oct, 2024 @ 3:23am 
See this article:
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Materials/Dynamic_Material_Expressions

In this case the entire material expression is just the same string name you set as the Target Render Attribute in the info_offscreen_movie_texture, and you apply it directly to the color texture property instead of any of the parameters below it.
< >
Showing 1-3 of 3 comments
Per page: 1530 50