Jump to content

Photo

Video to texture/Display a video in game

video texture

  • Please log in to reply
8 replies to this topic

#1
cypher2012

cypher2012

    Enthusiast

  • Supporter
  • PipPip
  • 159 posts

Hey guys, 

 

Just out of curiosity, is there a way to paint a video to texture. To essentially play a video on an object. A bit like the TV object when it is turned on.

 

 



#2
AGreatWeight

AGreatWeight

    It's just an illusion

  • Premium Member
  • 4,234 posts

Not sure exactly what you mean by 'paint a video to texture'. The game engine doesn't possess the ability to actually play video files in-game, what you're seeing (for example, the Pre-War Sanctuary TV announcement about the bombs dropping) is actually a sequential series of still images from a texture file, that switch every 10th of a second to mimic motion video.

 

The various images that comprise the 'video' are laid out in a grid like fashion, 16x16 on a 2048x2048 texture for the TV's. The behavior files of a .nif control what part of the texture is displayed on the mesh (of the object, in this exampe a TV screen), the duration it's displayed for, and other variables, before changing to a different area of the texture to be displayed etc. Also, scripting is used for certain aspects of making this method work.

 

Basically, it's a 'flip-book' method of giving the impression of video, and it's the only way that the Creation Engine allows this. It's the method that the Videos of the Wasteland mod uses to display video from holotape content (or film-reels if using the Starlight Drive-In plug-in)

Over the last year or so i've read numerous posts where others alluded to the potential ability to directly display video or flash files, but no working prototype has ever been disclosed, so I imagine that those attempting alternative ways to display 'video' in-game have come up against impasses, unsurprisingly.



#3
cypher2012

cypher2012

    Enthusiast

  • Supporter
  • PipPip
  • 159 posts

Not sure exactly what you mean by 'paint a video to texture'. The game engine doesn't possess the ability to actually play video files in-game, what you're seeing (for example, the Pre-War Sanctuary TV announcement about the bombs dropping) is actually a sequential series of still images from a texture file, that switch every 10th of a second to mimic motion video.

 

The various images that comprise the 'video' are laid out in a grid like fashion, 16x16 on a 2048x2048 texture for the TV's. The behavior files of a .nif control what part of the texture is displayed on the mesh (of the object, in this exampe a TV screen), the duration it's displayed for, and other variables, before changing to a different area of the texture to be displayed etc. Also, scripting is used for certain aspects of making this method work.

 

Basically, it's a 'flip-book' method of giving the impression of video, and it's the only way that the Creation Engine allows this. It's the method that the Videos of the Wasteland mod uses to display video from holotape content (or film-reels if using the Starlight Drive-In plug-in)

Over the last year or so i've read numerous posts where others alluded to the potential ability to directly display video or flash files, but no working prototype has ever been disclosed, so I imagine that those attempting alternative ways to display 'video' in-game have come up against impasses, unsurprisingly.

 

That's interesting. certainly gives me a lead to go on. I will take some time to study the nif file of the pre war telly! Thanks!



#4
AGreatWeight

AGreatWeight

    It's just an illusion

  • Premium Member
  • 4,234 posts

 

That's interesting. certainly gives me a lead to go on. I will take some time to study the nif file of the pre war telly! Thanks!

No problem, if you've got any other questions regarding this, I may be able to help (but I'm no expert - Myself and Dertspovar06 are currently looking into ways to create a working projector for VotW, along with other developments)



#5
orbital13

orbital13

    Stranger

  • Members
  • Pip
  • 3 posts

hey, gentlemen how i can activate VotW_TVSpecial1Screen from my script without player or projector?



#6
ChuckYufarley

ChuckYufarley

    Fan

  • Members
  • PipPipPip
  • 355 posts

*NM*


Edited by ChuckYufarley, 24 February 2019 - 03:17 AM.


#7
orbital13

orbital13

    Stranger

  • Members
  • Pip
  • 3 posts

This can make my life easy

ps

sorry, my english is so so))


Edited by orbital13, 25 February 2019 - 09:00 PM.


#8
niston

niston

    Old hand

  • Premium Member
  • 695 posts

I suspect that it could be possible through DirectX Render To Texture facility. Likely not without some serious heavy-lifting done by injected code tho, if at all.



#9
thousande

thousande

    Enthusiast

  • Premium Member
  • 141 posts

Check out Videos of the Commonwealth

 

https://www.nexusmod...t4/mods/24435/?

 

You'll find a nice tutorial / "making of" on YouTube

 

https://www.youtube....Q6BUv6bw/videos







Also tagged with one or more of these keywords: video, texture

Page loaded in: 1.056 seconds