- Home /
EPIC GIANT TEXTURE - possible?
Hi there..
I´m working on one large 2D Worldmap. The Picture Size is: 165888 * 64512
I don´t want to use it in that size - instead, i want to cut it into small 1024*1024 parts. BUT - i want it to be cutted with Unitys Graphics.blit, and then save them as PNGs with a code i found in the Answers.
Now the question: Is it possible to read the giant texture, and use the blitting function?
Answer by hubbyo9 · Aug 24, 2013 at 05:02 PM
I think you will need to use a different program for that.
Any advise for another program? Cause splitting it into 162 * 63 $$anonymous$$aps á 1024*1024 pixels could take a while in Photoshop ^^"
$$anonymous$$aybe Photoshop's batch processing can be customized to do it for you.
Answer by -hiTo- · Aug 24, 2013 at 05:36 PM
Use something like ImageMagick.
Or write your own program to stream the file, and save it in chunks.
Or do both. Write a program that utilizes ImageMagick's stream-command.
Answer by DaveA · Aug 24, 2013 at 05:47 PM
Sounds like Carmack's MegaTexture. Have you tried? Just try it. Importing from a file and sending to graphics card are two different things. You could write your own PNG parser and image manager, use OpenCV, etc. In short, yes, but you'll probably have to write the splitting code yourself. If Unity can load it, you can use GetPixels32 to access tiles-worth and create your own, and easily save those off as PNGs