Monday, September 16, 2013

Environments Being Added

Yesterday, I started implementing the new environments that were created by my artist. I began buy splitting up the textures since importing the entire image into Unity would not allow me to display the 2048x1024 pixel image on any mobile platform (it would automatically be down-scaled to 1024x512).

So by breaking it up into two pieces for the background, two pieces for the foreground and one ground piece, I was able to keep the pieces at full resolution at the cost of rendering an extra 4 planes but I was also able to save on space on the road since that texture is now repeating, it no longer takes up as much space.

I've got the snow and desert levels finished here:



Here's what the level looks like inside of Unity.



Basically, I have 5 planes: 2 planes for the background details, two planes for the foreground details, one plane for the ground texture.

When I change from one environment to another, I simply replace the material of each plane with the corresponding material of another environment.