x


Optimise adding shadows in scene using Unity iPhone

Currently I have a map as shown below with ~1k triangles and a 1024x512 texture, my question is if it would be better to render shadows on it using:

A: A small section of the already added texture with alpha using Alpha Blending like shown at here and applied to the map via a few extra polygons.

B: A small texture with alpha using Alpha Blending and applied to the map via a few extra polygons.

C: A second texture using a layering shader like here.

D: Some other method I have not come across yet. alt text

more ▼

asked Nov 24 '10 at 10:14 AM

user-6748 (google) gravatar image

user-6748 (google)
1 1 1 3

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

2 answers: sort voted first

I would recommend using the built-in Best lightmapping, because it is very easy to use. If you don't have the texture memory available to make that look great, then I recommend seeing if you can paint some shadows that you like into the vertex colors. (You can always use a vertex lit shader on a model, without a texture, as a reference to paint by.)

Also, do note that you're wasting half of your texture space with a non-square image, unless you plan on using it uncompressed.

more ▼

answered Dec 15 '10 at 11:27 PM

Jessy gravatar image

Jessy
15.7k 72 95 198

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

You may need to bake in a lightmap to use for the level itself, and then use a shadow projector on moving objects.

more ▼

answered Dec 15 '10 at 07:06 PM

user-7447 (google) gravatar image

user-7447 (google)
1

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

x2014
x1745
x492
x443
x222

asked: Nov 24 '10 at 10:14 AM

Seen: 1517 times

Last Updated: Nov 24 '10 at 10:19 AM