0
\$\begingroup\$

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?

\$\endgroup\$
2
  • \$\begingroup\$ 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 \$\endgroup\$
    – MephistonX
    Mar 20, 2013 at 21:07
  • \$\begingroup\$ "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. \$\endgroup\$
    – Mario
    Mar 20, 2013 at 21:38

1 Answer 1

1
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ 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. \$\endgroup\$ Mar 21, 2013 at 4:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .