playMaker

Author Topic: Light  (Read 1791 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Light
« 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.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14400
  • Official Playmaker Support
    • View Profile
Re: Light
« Reply #1 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

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Re: Light
« Reply #2 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.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Light
« Reply #3 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.

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Re: Light
« Reply #4 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.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Light
« Reply #5 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.

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Re: Light
« Reply #6 on: April 08, 2014, 12:37:42 PM »
Thank you! :)
And I also need a black background. Then it's totally dark. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Light
« Reply #7 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.

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Re: Light
« Reply #8 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. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14400
  • Official Playmaker Support
    • View Profile
Re: Light
« Reply #9 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