x


Lighting not working on iOS device

I have a scene defined as following:

  • Two cubes, assigned a Mobile/Diffuse shader with texture.
  • One directional light

Everything looks fine in unity, or compiled Mac standalone app.

But when I compile and run on my iPhone, there is no light at all. I cannot figure why, any help?

By the way, I'm using XCode 4.3.0, iOS 5.1, Unity3D 3.5.0f5 if it matters.

Scene settings:

alt text

Material settings:

alt text

Scene on iPhone:

alt text

more ▼

asked Mar 17, 2012 at 05:40 PM

doleearts gravatar image

doleearts
1 3 2 3

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

1 answer: sort voted first

Is there a plane in your scene? if not put one just under you boxes and drag any texture onto it, take out any lights you have put in the scene then go to Menu, Edit, Render Settings and set the ambient light up to full white, now put it on your iPhone and see if it's all lit up.

I'm still new to Unity but thats what I'd try first, good luck.

more ▼

answered Jul 04, 2012 at 10:50 AM

Griffo gravatar image

Griffo
2.7k 215 1217 314

This isn't a fix. It's like answering "cut off your arm" when somebody asks how to heal a cut on their hand. It avoids the issue entirely.

Aug 20, 2013 at 05:03 PM aboveyou00
(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:

x2705
x773

asked: Mar 17, 2012 at 05:40 PM

Seen: 1623 times

Last Updated: Aug 20, 2013 at 05:03 PM