5
\$\begingroup\$

I want to make my ball glow and cast light on other objects in the scene. The scene is generated at run time so I believe baking is out of the question. Emission materials work only when the object casting the glow/light is static.

\$\endgroup\$
3
  • \$\begingroup\$ The ball is controlled by the player \$\endgroup\$ Jan 5, 2016 at 9:50
  • \$\begingroup\$ I'm trying to build for android. I switched my platform to PC and checked but it's not any different. \$\endgroup\$ Jan 5, 2016 at 10:37
  • \$\begingroup\$ Sorry. I thought this was dedicated to Unity \$\endgroup\$ Jan 5, 2016 at 12:16

1 Answer 1

6
\$\begingroup\$

You can't use the emmisive property alone, that will simply cause the object to appear. If this is something you are positive you want (And realize that it may affect your FPS, especially if you have a large number of these objects), I would use a combination of two techniques:

  1. Use the emissive property. This will make the object appear lit even in a dark scene.
  2. Attach a light source to the object. Make sure to use the same color as the emissive property.
  3. You might need to turn down the albedo of the object as well.

Here's an example of me doing just this. Note the wall behind is black, I turned off the skybox illumination, and it is the only light source enabled.

enter image description here

\$\endgroup\$
4
  • \$\begingroup\$ I'm only going to use two of these balls. Also the rest of the map doesn't have any light sources. If that doesn't work well. I'll use an additive blend on the ball. \$\endgroup\$ Jan 5, 2016 at 13:11
  • \$\begingroup\$ In that case, you should be more than fine to take the approach that I outlined. \$\endgroup\$ Jan 5, 2016 at 13:23
  • 1
    \$\begingroup\$ Thanks. I tried it out on my phone(Moto G 1st Gen) and it seems to work fine. \$\endgroup\$ Jan 5, 2016 at 13:39
  • \$\begingroup\$ nice answer. :) \$\endgroup\$
    – Millard
    Feb 2, 2020 at 18:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .