2
\$\begingroup\$

Project Eastward Lighting Demo

Lighting example 1 Lighting example 2

Can somebody point me to the right direction as to how this lighting is done to recreate this lighting effect?

The game is 2D but uses a 3D lighting system.

\$\endgroup\$
5
  • \$\begingroup\$ How do you know it's 2d? It could very well be 3d with pixel-art textures. \$\endgroup\$
    – Philipp
    Commented May 2, 2021 at 22:11
  • \$\begingroup\$ The developers mentioned that in their website Pixpil Games. It's a 2D game with 3D lighting system. \$\endgroup\$ Commented May 5, 2021 at 0:52
  • \$\begingroup\$ Do you have a link? When you have any information about this system which could help us with research, please share it. \$\endgroup\$
    – Philipp
    Commented May 5, 2021 at 8:36
  • \$\begingroup\$ Yes I do have. You can see how they setup their game from scratch in this video : youtube.com/watch?v=QW0fajFX3EQ . also you can see the game engine where they have setup the lighting and the world here ibb.co/m4WVrb0 \$\endgroup\$ Commented May 5, 2021 at 14:30
  • \$\begingroup\$ It doesn't seem like we can get any more useful information out of you regarding what you actually want, so I am going to write a more general answer about 2d lighting in Unity. \$\endgroup\$
    – Philipp
    Commented May 5, 2021 at 14:38

2 Answers 2

0
\$\begingroup\$

The Unity Lightweight Render Pipeline recently got a couple neat additions for 2d lighting. Among them are:

  • Normal mapping on 2d sprites, which can give objects a 3d impression with moving light sources
  • HDR bloom
  • 2d realtime shadows
  • Lit areas in arbitrary shapes, either defined by polygons ("Freeform Light") or by textures ("Sprite Light")

Keep in mind that all of these features are only available in a project using the Universal Render Pipeline, not in build-in or HDRP.

A quick walkthrough of all the features is in this video by Unity Technologies. Detailed information on this subject can be found in the documentation.

One thing it can not do (AFAIK) which seems to happen in the video posted in the question is some pseudo-3d displacement of lit areas. But that displacement seems to be pretty inconsistent in that demo video, so that might not be too much of a drawback.

\$\endgroup\$
0
\$\begingroup\$

You can try this asset from Asset Store [Disclamair: I am NOT affinity of it's author]:

https://assetstore.unity.com/packages/tools/particles-effects/smart-lighting-2d-112535

\$\endgroup\$

You must log in to answer this question.

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