Jump to content

Video to texture/Display a video in game


cypher2012

Recommended 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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

 

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)

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...