Planetside Software Forums

General => Terragen Discussion => Topic started by: TheBadger on January 25, 2014, 03:03:54 AM

Title: Projecting video in TG
Post by: TheBadger on January 25, 2014, 03:03:54 AM
Hi,

Some resent threads got me curious if it would be possible to project video inside of TG.

For example, in the way that you can place an image on a plane/card object, could you also project an image sequence (if thats the right term), onto the card/plane?

What I was thinking about, was a card with a video of people walking (walk cycle) projected onto the plain, and the plane moves on one axis (x). THis would be for use on a bridge in a back ground. And possibly in areas like a courtyard (or something), also in the back ground, and perhaps mid-ground. Also, from the air looking downward, people in a park, or road, or anything like this.

Detail of the figures would not have to be all that great, in some cases perhaps only silhouettes of people would do.

?

Thanks

Title: Re: Projecting video in TG
Post by: TheBadger on January 25, 2014, 03:15:21 AM
OK scratch part of that.

Rather than the card moving. the card could be wide and a pano video projected on.

[attachimg=1]
Title: Re: Projecting video in TG
Post by: jo on January 27, 2014, 12:25:27 AM
Hi Michael,

You should be able to do this with an image sequence, so essentially every frame of the video would need to be a separate image in the sequence.

Regards,

Jo
Title: Re: Projecting video in TG
Post by: TheBadger on January 27, 2014, 02:15:43 AM
So for example, I should get a video, Save out every frame (as jpg, bmp, tiff or whatever) Then I have the single images.
What do I do to make an image sequence? I guess that is something I should do outside of TG. Is a gif considered an image sequence?

Now what Im thinking about is moodflows methods for projecting 2d onto 3d geometry. http://forums.planetside.co.uk/index.php?topic=2537.0 , but with image sequence. THe only problem is that I never got the same results that moodflow did when I tried a single image. I got cool stuff, but not like what I set out for, not the believability that he had.
Title: Re: Projecting video in TG
Post by: jo on January 27, 2014, 03:45:27 AM
Hi Michael,

An "image sequence" in TG parlance is a set of individual image files which are numbered sequentially. As an example you might have "image0001.tif", "image0002.tif", "image0003.tif", "image0004.tif" etc. So for a video you would save out every frame and, if they aren't already numbered, add sequential numbers to the file name. I don't know what would be the best way to go from a video to numbered frames.

There is some good info in this thread (see neusapdrin's post) about using image sequences:

http://www.planetside.co.uk/forums/index.php/topic,6277.msg66298.html#msg66298

An important point is that image sequences don't support looping at the moment. If you wanted to loop a sequence you need to duplicate the files and renumber them appropriately.

We must add more info about image sequences to the docs.

Regards,

Jo
Title: Re: Projecting video in TG
Post by: TheBadger on January 27, 2014, 01:41:11 PM
Ah, thanks Jo!

I am sure I can do the rip in after effects and save the frames individually. I know I can do this manually without much trouble. I'll also look for a automated method.

So the image sequence works the same as an object sequence, essentially. Thats good to know. I caused some confusion once before when saying image instead of object. So I wasn't sure if it was completely different, or even if there were such a thing as image sequences.

Thanks for the warning about looping. Ill try to make it it longer than needed. OR even loop the sequence my self.

This will be funny as heck if it works!