x


is there a way to make textures bigger then 4096

I am making a 2d game in unity and my background is 6000 by 3000 but unity seems to be limited to 4096. is there a way to get bigger texture images into unity ?

more ▼

asked Apr 15 '10 at 06:23 PM

raggi gravatar image

raggi
128 16 17 21

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Presumably the limit is based on hardware and the graphics API and not specific to Unity -- the truth is most applications will never need such large images. i.e. if the screen resolution is 1600x1200, then having a texture any larger than that is a waste, since the you can't possibly draw more pixels than there are on the screen. If you need to zoom into the image then you will have to split it up into tiles. That would be better for performance anyway (though you'll probably be able to get away with a much, much smaller texture).

more ▼

answered Apr 15 '10 at 06:39 PM

Molix gravatar image

Molix
4.8k 17 27 66

its a side scroller, so the idea is to have one big image. im not using orthographic view so I can get depth in the game. I started out tiling the BG down to 1024 * 1024 and then I started running into trouble with the z axis

Apr 15 '10 at 06:49 PM raggi

You should break up the background into smaller images and draw only the ones that are visible at the given time.

Apr 15 '10 at 06:54 PM Molix
(comments are locked)
10|3000 characters needed characters left

It's a Unity limitation. However, only the more recent graphics cards support more than 4096x4096, and there are still a reasonable number of cards in use that only do 2048x2048 at max anyway. So for best compatibility you should use linked textures where each one is no larger than that.

more ▼

answered Apr 15 '10 at 06:58 PM

Eric5h5 gravatar image

Eric5h5
81.5k 42 133 529

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2279
x1071
x370
x295

asked: Apr 15 '10 at 06:23 PM

Seen: 1974 times

Last Updated: Apr 15 '10 at 06:26 PM