x


Best way to repeatedly tile small sprite? Sprite Manager?

Is there a way to tile repeatedly using sprite manager 2 with one gameobject? I would prefer to use sprite manager as it solves depth issues.

Basically, I want my background to be a tiny sprite of grass repeated. The only way to do this with sprite manager that I can work out is by making a zillion clones, I'm presuming that would drain performance? Any other suggestions? Cheers.

more ▼

asked Aug 30 '11 at 10:30 AM

DamonK gravatar image

DamonK
1 2 2 2

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

2 answers: sort voted first

Just use a big plane with a repeating tiled texture.

Creating a large number of tiny meshes is generally bad for performance.

more ▼

answered Aug 30 '11 at 10:35 AM

Waz gravatar image

Waz
6.5k 22 33 71

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

You could just use small planes the size of the texture and duplicate it. Having lots of 2 poly planes is not going to make performance suffer as long as stuff not in view is culled.

more ▼

answered Aug 30 '11 at 11:41 AM

AaronG gravatar image

AaronG
261 16 18 22

(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:

x215
x167
x99
x51

asked: Aug 30 '11 at 10:30 AM

Seen: 1062 times

Last Updated: Aug 30 '11 at 12:20 PM