Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - createmap

Pages: [1]
1
Mapping Tips/Guides / Re: CreateMap tool
« on: June 21, 2010, 10:15:40 am »
I only read about your Autostitcher after making my posts; I couldn't try it yet, but according to the comments I could read it looks like your tool is more useful than mine for this kind of maps. It's faster and it can work with higher quality images for that reason.

Quote
- How does it handle video at non-native resolution? The image matches might be on non-pixel boundaries.
- How does it decide what to do with artifacted video? Does it average them out?

I match the full image, not only the map boundaries... so video quality doesn't matter much, as I don't need pixel perfect matches (I do a image difference of the displaced images; then I compute the total error).

Quote
- What happens to sprites, animated backgrounds, etc?

Animated backgrounds are a problem. Sprites, not so much. It depends on the order I use to compose the final image: if I start from the first frame, you'll only see the player character in the last frame, since the only information that you can see for each frame that is not the last one is just a tiny border. For other characters, it depends. But their images are most of the times lost. It's hard to explain why, the point is that every pixel gets overwritten many times, and the last time it's written is the last time such pixel is seen in the video. Most of the times, an enemy character is not there then, there is at least some extra exposure for that pixel. Only if there is not the enemy character gets recorded in the image. If the order that's used for composing the image was reversed, though, the results would change.

Quote
It's also worth noting that as a rule, screenshot maps should always be produced in a lossless fashion. Having multiple lossy compression stages (video -> JPG -> JPG) must make things somewhat worse.

True. I thought this would be useful as a first draft for some games, maybe.

Quote
Like, say, you had a character that was nothing more than a hyphen (-), wouldn't the result turn out like this:

Not if the character was in the center of the screen, for example. It would be erased when all the frames were put together, as explained above.

Quote
Also, is this for Mac or something? I have no idea what GIT files are or PY or whatever.

Sorry, this is the Python source code only. No .exe provided still (but if you install python it should be easy to run it out of the box). I tested it on Linux but it should work in all platforms: Windows, Mac, Linux.


2
Mapping Tips/Guides / Re: CreateMap tool
« on: June 19, 2010, 10:47:15 pm »
To better understand what the tool does and what it doesn't do, this is the typical workflow using the tool:

1) you capture a video yourself or you download a video (eg. a youtube flv, quality doesn't matter much... if you download it the end result won't be yours though, but it's good for testing)

2) you use ffmpeg to convert all the video frames to independent images; after that, perhaps you remove some of those images to ensure only a specific level from the video is processed (eg. you remove the game intro scene)

3) some program configuration (what to process)

4) you process the images with this program

5) when the processing is finished, you get a jpg file with a map that's generated from that specific scene you've chosen

There could be artifacts (depending on how the game works, in the configuration, etc.) and if the images are too big or if the video moves too fast it could take a lot of time, but the results are always interesting to see.

Hope it's useful, let me know if you are interested in any of this.

Thanks!

3
Mapping Tips/Guides / CreateMap tool
« on: June 19, 2010, 10:43:14 pm »
Hi,

I created a small free software tool that can be helpful for automatically creating maps for some kinds of games, using videos. It's stored here: http://github.com/hmoraldo/createmap

The concept it's based on is not new, it's called image mosaicing. But perhaps this tool can be useful to you when working on game maps, or even for creating maps for other things too: it can be used to extract backgrounds from cartoons too, and also for some kinds of real-life videos too (eg. a film scene of a city as seen from a plane).

I had a lot of fun using this myself, but I think it would be cool if I could see what other people generate using this tool. I don't have too much time to keep coding for it myself but patches are welcome.

If there is interest, I can explain how this can be used and show some examples. The tool is not perfect; it works best for sidescrollers (in whatever axis) but it can also be used for games that move in any direction.

I hope you are interested on this.

Thanks!

Pages: [1]