Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am new to Unity and I am developing a game using unity its a 2d game i am using tk2d framework. I have a big background image(4096*4096) how can I load this background so only visible part of the background has to be rendered so it wont effect the performance. How can I achive this in unity & tk2d?

share|improve this question
    
there is something called mega textures - i believe games like Rage use them - also 'The other brothers' - www.tobgame.com makes use of painted backgrounds (in unity) for their entire levels instead of tile based systems - so it is possible but may require more research –  MephistonX Mar 20 '13 at 21:07
    
"Megatextures" is just marketing IMO. Behind the scenes there are still classic hardware limits and the bigger your textures get, the higher the costs (memory, handling times, etc.). Most of these "Megatextures" implementations simply handle all the mapping and usage while staying within the hardware's specific capabilities. Overall it's something I'd avoid on mobile platforms at all costs. Even if you've got free ressources you should probably better utilize them for something more important or leave them to save battery power. –  Mario Mar 20 '13 at 21:38
add comment

1 Answer

You're going to have to break up the image into multiple sections. Probably 1024x1024 for maximum compatibility (source). Then you can just place them in the background in order.

share|improve this answer
    
After breaking down into 1024x1024, can i use just 8 sprites or is there any other class already exists for doing this kind of job. –  Chandan Shetty SP Mar 21 '13 at 4:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.