Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

  Click here to go to the first Developer post in this thread.  

Thread: Will ARMA 3 support video files / image sequences?

  1.   Click here to go to the next Developer post in this thread.   #11
    Since A2:PMC, it's possible to run videos in game via the OGV format. There were some early teething problems with playback on certain hardware, which were addressed in a subsequent patch or two.

    They're a nice addition/ option to have, but - particularly in full-screen - their quality can suffer when trying to balance resolution and filesize. Dark scenes particularly can suffer. I find that they're best deployed as smaller resources, such as the small "video feeds", etc; although, fairly long full-screen footage can work nicely, if your players are willing to download the extra data. For example, the 'title screens' for each showcase were OGV videos running in fullscreen. I think they're only ~5-10MB each, and are 10s long.

    I believe that the OGV playback doesn't handle alpha (at least in our current implementation), so you will always end up with the black scene, even if you export with an alpha channel, capturing the footage as you describe above.

    You can, actually, play image sequences already though. It's a bit of a hack, but if you were to export your composition as a png-sequence with alpha, a simple script can play this back, calling the numbered images at whatever framerate you've exported it in. We actually used this 'hack' in the E3 presentation in our prototype of the context-hint system, found in the 'Deterrence' mission (such as fire support), which is actually a sequence of 90 images, called by script.

    The problem here again is the data size. In my example, it was only a very small image for 3 seconds, but we're still talking about loading and scrapping a lot of data, and I'd be concerned about performance when trying to do anything more complex/ longer/ fullscreen. It's not engine supported, nor is support for it planned at the moment. As long as Ondra (or anyone else that may explode over a 'hacked' 'designer's' 'implementation'™) doesn't see it, you'll be fine.

    If you carry out any experiment in full-screen, for example, perhaps overlaying some png-sequence of particle effects on a real-time rendered scene, that'd be fascinating to see in action!

    Hope that helps!


    Best,
    RiE
    Last edited by RoyaltyinExile; Jun 11 2012 at 09:08.
    Arma 3 is a unique military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/ sandbox content, based on the principles of authenticity, diversity and opportunity.

    Dans son oeil, ciel livide où germe l'ouragan,
    La douceur qui fascine et le plaisir qui tue.

  2. #12
    Quote Originally Posted by CameronMcDonald View Post
    Funnest example ever.

  3. #13
    Sergeant Major SpecOp9's Avatar
    Join Date
    Nov 21 2002
    Location
    Cary, North Carolina
    Posts
    1,737
    Author of the Thread
    From what I understand the script/image sequence idea could potentially already work in ARMA 2 as well, I'm feeling inclined to try it
    BIS is the only game studio I know that would put a half naked chick covering her rack on their main page, and I applaud them for it.

  4.   Click here to go to the next Developer post in this thread.   #14
    More or less. At its core, it's a for do loop with 90 steps that rapidly calls different silent hints:

    Code:
    for "_i" from 0 to 89 do {
    	private ["_pic", "_string"];
    	
    	// Filenames need to be handled differently if single or double digit
    	if (_i < 10) then {_pic = format ["pic_0000%1.paa", _i]} else {_pic = format ["pic_000%1.paa", _i]};
    	
    	// Don't display the instructions for the first 30 frames
    	if (_i < 30) then {
    		_string = format ["<t size = '2'>EGLM</t><br/><img image = '%1' size = '10' shadow = '0'/><br/><t size = '1.25'> </t>", _pic];
    	} else {
    		_string = format ["<t size = '2'>EGLM</t><br/><img image = '%1' size = '10' shadow = '0'/><br/><t size = '1.25'>PRESS [H] FOR MORE INFO</t>", _pic];
    	};
    	
    	// Use a silent hint to display it
    	hintSilent parseText _string;
    	
    	// Display at 30 FPS
    	sleep 0.03;
    };

  5.   Click here to go to the next Developer post in this thread.   #15
    Warrant Officer Sniperwolf572's Avatar
    Join Date
    Feb 23 2004
    Location
    Bosnia & Herzegovina
    Posts
    2,074
    Quote Originally Posted by RoyaltyinExile View Post
    ...'hacked' 'designer's' 'implementation'™...
    Quote Originally Posted by Zipper5 View Post
    More or less. At its core, it's a for do loop with 90 steps that rapidly calls different silent hints...
    PNG sequence with alpha you say?

  6. #16
    First Lieutenant Tonci87's Avatar
    Join Date
    Jul 7 2009
    Location
    Hagen/Germany
    Posts
    5,951
    Quote Originally Posted by CameronMcDonald View Post

    Brilliant!

  7. #17
    Second Lieutenant Kremator's Avatar
    Join Date
    Jun 8 2007
    Location
    Cambridge, UK
    Posts
    4,966
    Now if we were able to pull in a data feed from an external source .... ahhh to dream, to dream!

  8. #18
    First Lieutenant PuFu's Avatar
    Join Date
    Feb 17 2007
    Location
    unallocated
    Posts
    5,387
    Quote Originally Posted by SpecOp9 View Post
    With 3d camera tracking you could do some very interesting things. Say you wanted a realistic plane crash with thousands of individual particles and physics and explosions. You could render the animation in 3ds max / Cinema 4d. Instead of using film-video as your main plate to composite it together, you use a recording of the cutscene. Once it all looks good, import the video file in-game so when the cutscene plays, you have a plane crash simulation. But you would need that Alpha, or else it would just play the animation with a big black background.
    I am well aware of what alpha is used for, i had my fair share of compositing, both static and animation files.

    But after reading your OP, what i find weird is, that you would like to compose, in the game, a scene between an pre-rendered sequence, and a cutscene (that might end up differently each time). Of course, you could (most likely very hard), capture the camera movement (match moving it via Boujou, Nuke, AE, ADSK Matchmoving or whatever have you) and then redo the whole scene. But then again would be much easier to pre-render the entire thing (especially since, even with alpha, you wouln't be able to do the rotoscoping/masking in A3 editor)...

    I think being able to play a sequence of image files, as well as animation files should be enough for 99% of the community needs, even for the lads doing machinima (who would, in my humble opinion, be happier with some more advanced camera controls)...

    Spoiler:

  9. #19
    Sergeant Major SpecOp9's Avatar
    Join Date
    Nov 21 2002
    Location
    Cary, North Carolina
    Posts
    1,737
    Author of the Thread
    Pre-rendering the entire movie to me shows some problems, the file size, and full screen video can start showing artifacts. If, however, it was a small 5 second CG clip composited in and along with the actual in-game cutscene, you'd be able to not only render the video at a higher resolution, but the file size would also be much smaller. I'm a bigger fan of in-game cutscenes, pre-rendered takes away from the magic to me

    The in-game scenes would need to be very simple and specific. The AI does move in all different directions nearly every mission preview - but one thing is definite and the same every time, the camera movement. This is a benefit, because now you can conduct multiple passes of different objects, solo the individual elements out of each pass, and then composite it together - now it's the same every time. I think this is what you meant.

  10. #20
    Sergeant Major SpecOp9's Avatar
    Join Date
    Nov 21 2002
    Location
    Cary, North Carolina
    Posts
    1,737
    Author of the Thread
    Well I was able to come up with a short example of what exactly I mean.



    What I did was created a simple camera animation in ARMA 2 and recorded it.
    I then did a 3d motion track
    imported the camera data into Cinema 4d
    created the small animation
    overlayed the animation with the alpha

    I hope people are starting to see the potential with this, it worked fairly well, that's not to say I did not notice any potential problems. The frame-rate is extremely important. I set the animation to 23.967 FPS, but ARMA's frame rate can fluctuate depending on the scene and things can become rather wonky.

    As for file size, the animation image sequences are 31.0 MB with 1680 x 1050 dimensions (pretty good considering my render straight from AE is 1 GB)

    It's a quick and silly example video really... but with some more advanced compositing in Cinema 4d, like Ambient occlusion, shadows, reflections, HDR lighting, motion blur and more, you could create some pretty surreal things - and achieve animations in cut scenes that normally would never be possible inside the engine.

    Also notice how the balls interact with the shot, by bouncing off the sidewalk area of the dam.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Intro Sequences
    By FinalSin in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 0
    Last Post: Jul 23 2009, 08:53
  2. Video files turn black after launching Arma
    By SFG in forum ARMA - TROUBLESHOOTING
    Replies: 6
    Last Post: Dec 20 2006, 21:26
  3. Scripting Dialog Sequences
    By Winters in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 10
    Last Post: Oct 1 2004, 22:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •