Terrain and memory size

Started by
-1 comments, last by hardcoded1337 14 years, 6 months ago
I'm working on a flash internet-browser game and I'm not sure yet how to handle my terrain images, because of it's size. Average image size about 2048^2, and that's about 8MB for a PNG and take in account there is a dozen of levels and here we go, a memory usage and a bandwidth hit. The best would be to supply client with tiles and then prerender levels in a game, but currently that's too much for me, from technical standpoint, because it involves a lot of 3D stuff, so I rather make scene in 3DSMax and plus it will look better. Image types flash supports are: BMP, GIF, JPEG, PNG, TIFF and I don't need any transparency for terrain and I can afford some data loss at compression. Somehow obvious choice may be to render each level to a JPEG with high-quality compression and story ends. But what about slicing everything in to n*n - sized chunks and compressing each, maybe some "magic" can be done here? So what you suggest?

This topic is closed to new replies.

Advertisement