Skip to content

Projected video texture#518

Open
Nbc66 wants to merge 6 commits intomapbase-source:developfrom
Nbc66:projected_video_texture
Open

Projected video texture#518
Nbc66 wants to merge 6 commits intomapbase-source:developfrom
Nbc66:projected_video_texture

Conversation

@Nbc66
Copy link

@Nbc66 Nbc66 commented Mar 11, 2026

This PR adds the ability to have Bink video be able to be used with projected textures

This adds a new entity called env_projectedvideo

Here is a quick video of it in action

Half.Life.Source.2026.03.11.-.23.05.14.01.mp4

Example FGD entry:

@PointClass base(env_projectedtexture) studio("models/editor/cone_projected_helper.mdl") frustum(lightfov,nearz,farz,lightcolor,-1) = env_projectedvideo :
    "Projected light that uses a video as the projection cookie"
[
    VideoFile(string) : "Video File" : "" : "Path to the video file (ex: media/projector.bik)"
]

also this pr adds a small edit to the flashlight shader to just clip off the sides of the shader projection that isnt used otherwise you would get artifacting like this

image

Note:

There is an issue with video materials where its imposible to actualy set the time of the curent video material making saving and restoring at the same time point impossible i would love to get that fixed but its sadly not possible for now people can use it as decoration or just dissalow saving while the video is playing for any in game reason if they dont want people to auto reload the video when they reload a save


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant