Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Rabagast on April 07, 2014, 10:30:38 PM

Title: Light
Post by: Rabagast on April 07, 2014, 10:30:38 PM
Hi!
Is it possible to make the level 100% dark? When I have no light in the scene, I can still see everything, but very dark.
So when I for example use a light, a flashlight for example, then it will light up an area in the scene.
Title: Re: Light
Post by: jeanfabre on April 08, 2014, 04:52:34 AM
Hi,

 yep, it's possible. It's more a unity thing tho, something you can experiment without even playing your scene, and once you get it right, implement some light switching and intensity changes during your game.

bye,

 Jean
Title: Re: Light
Post by: Rabagast on April 08, 2014, 08:33:38 AM
Ok! But how can I do it?
I can't just use directional light.
It will not be totally dark.
Title: Re: Light
Post by: Lane on April 08, 2014, 08:40:35 AM
You can use any light type.

https://docs.unity3d.com/Documentation/Components/class-Light.html

There is Directional, Point, Spot, and Area.
Title: Re: Light
Post by: Rabagast on April 08, 2014, 09:48:26 AM
Ok, but how can I get it totally 100% dark, so I can't even see the platforms or the character? For example if I enter a dark room, and I can't see anything, so I need to turn on the light.
Title: Re: Light
Post by: Lane on April 08, 2014, 09:54:29 AM
just dont put any lights in the room, and make sure your ambient light is completely black.
Title: Re: Light
Post by: Rabagast on April 08, 2014, 12:37:42 PM
Thank you! :)
And I also need a black background. Then it's totally dark. :)
Title: Re: Light
Post by: Lane on April 08, 2014, 12:41:34 PM
Yup, if you're still wanting even more goth turbo-blackness you can use post effects to crank up the contrast levels if you have Pro. Dropping the ambient light and removing lights from the scene should technically be flat black though.
Title: Re: Light
Post by: Rabagast on April 08, 2014, 12:48:17 PM
I don't have pro yet. It's so expensive. But someday I'm going to buy it. :)
Title: Re: Light
Post by: jeanfabre on April 09, 2014, 04:21:34 AM
Hi,

 It's all totally possible with Unity indie.

I can confirm:

-- ambient light to 0
-- no lights in the scene
-- camera background set to black

it's 100% dark, nothing can be seen ( unless you have shaders with self illuminations, so be careful, if you have UI stuff from thirdparty, they may still show up).

Bye,

 Jean