Jump to content
The Dark Mod Forums

Playing in-game Videos


STRUNK

Recommended Posts

An other example of what can be done with thes transparent video screens. It doesn't like skyboxes though (see end of video).

STRUNK-2020-03-31-02-02-50.jpg

video

A loop of the owl, shoud be downloadable here: Owl Loop

Otherwise here: OwlLoop

Attached the .mtr file I use. Just put it in your materials folder and make a video folder and put a video named video.mp4 in there. Then make a 16:9 patch and give it the video texture.

 

videoscreentransparent.mtr

Edited by STRUNK
  • Like 4
Link to comment
Share on other sites

Wow I love the way you implement these video screens to make detailed animals appear in the game. This could add so much to the environment in future FMs. Great work!

"Einen giftigen Trank aus Kräutern und Wurzeln für die närrischen Städter wollen wir brauen." - Text aus einem verlassenen Heidenlager

Link to comment
Share on other sites

That is a nice trick to do ambient "AI" at the distance but needs to be used cleverly, because the illusion will break easy in anything that the player can get next to.  Also using real world animals or even people will look way out of place, but is very nice to do for example shadowing figures moving in the shadows or behind windows plus like STRUNK demonstrated, special effects, I used it before to do water caustics.   

  • Like 2
Link to comment
Share on other sites

@HMart

You are totally right. I can see that owl sitting somewhere in the distance, where you can't reach it indeed, but that goat, even if it's a 3d goat, I wouldn't put in a mission.

You can ofc record a scene from your map with OBS and use that. About shadows; in the case of this transparent material: black is transparent.

Link to comment
Share on other sites

29 minutes ago, STRUNK said:

@HMart

You are totally right. I can see that owl sitting somewhere in the distance, where you can't reach it indeed, but that goat, even if it's a 3d goat, I wouldn't put in a mission.

You can ofc record a scene from your map with OBS and use that. About shadows; in the case of this transparent material: black is transparent.

That's super-impressive. 

Link to comment
Share on other sites

The audio doesn't play for me, so I'll add a separate speaker with standard owl sound.

Also, when the video patch is placed in front of the sky, the entire patch is transparent, so the sky shows through and the owl becomes a ghost. I'll have to see if there's a way to force the video to change its order and paint over the sky.

  • Like 3
Link to comment
Share on other sites

@grayman

I saw that it doesn't like the skybox, and put that in the edited Owl post also. If you find something to make this work, that would be very nice. Also I found that when no light is hitting the patch you see no image at al. Maybe that could also be fixed in the material file. I only fumbled around with it not really knowing what I was doing : )

As for the sound, I didn't expect it to play and forgot to remove it from the video. In @Geep 's wiki there should be a separate audio channel added also. https://wiki.thedarkmod.com/index.php?title=Full-Screen_Video_Cutscenes

Edited by STRUNK
  • Like 1
Link to comment
Share on other sites

35 minutes ago, grayman said:

I'll have to see if there's a way to force the video to change its order and paint over the sky.

Good thing that 2.08 comes with the new drawSortOffset spawnarg to adjust the drawing priority of post-processed/transparent surfaces, without having to clone & edit the materials involved. The starting sort value for transparent materials is typically 100.

Link to comment
Share on other sites

14 minutes ago, Dragofer said:

Good thing that 2.08 comes with the new drawSortOffset spawnarg to adjust the drawing priority of post-processed/transparent surfaces, without having to clone & edit the materials involved. The starting sort value for transparent materials is typically 100.

Changing the video patch to a func_static and applying the "drawSortOffset/101" spawnarg didn't improve the situation. The video is still transparent, and is reduced to a ghost image when the sky is behind it.

Link to comment
Share on other sites

13 minutes ago, grayman said:

Changing the video patch to a func_static and applying the "drawSortOffset/101" spawnarg didn't improve the situation. The video is still transparent, and is reduced to a ghost image when the sky is behind it.

Alright, how about doing it the old way with 'sort 101' in the material?

Link to comment
Share on other sites

Just now, Dragofer said:

Alright, how about doing it the old way with 'sort 101' in the material?

Already tried that.

No joy.

I have it set up that neither the transparency nor the ghosting is apparent, so I have something that works for me.

Others might have difficulties, though, depending on how they try to use this.

I think these transparent videos are fine for "effects" usage, like electrical charges, which are transparent anyway, but transparency looks bad with video images that are supposed to be solid.

  • Like 1
Link to comment
Share on other sites

Also, with the owl video, when it's fitted 1x1 into the patch, there's a thin bright line along the top, which is solved by shifting the texture image up 2 units. This prolly then paints a thin bright line at the bottom of the patch, but if that can be hidden behind something, it's not a problem.

Link to comment
Share on other sites

16 minutes ago, STRUNK said:

Woman standing in front of a window with a non-transparent video screen.

 

video

Very cool!  I'm looking forward to seeing dinner parties happening behind mansion windows, as well as a distant scene of ships sailing to and fro for dock maps.

 

  • Like 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...