Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Rabagast on April 08, 2014, 01:30:38 AM

Title: Light
Post by: Rabagast on April 08, 2014, 01:30:38 AM
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, 07: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, 11: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, 11: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, 12:48:26 PM
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, 12:54:29 PM
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, 03: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, 03: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, 03: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, 07: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