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 May 2 at 22:11
  • \$\begingroup\$ The developers mentioned that in their website Pixpil Games. It's a 2D game with 3D lighting system. \$\endgroup\$ – Anshul V. Kumar May 5 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 May 5 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\$ – Anshul V. Kumar May 5 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 May 5 at 14:38
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\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.