imagination XD

realizing dream

[Tutorial] Fake ‘baked’ shadow in Unity Indie

2 Comments

So, i found this trick while I’m bored and thinking of when i’ll get an Unity Pro. I though it is possible to have a fake shadow in Unity Indie. However, it still not really good, but i think it’s better than ‘baked’ shadow from lightmapper (It save times alot). So, it’ll look like this.

fakeBakedShadow

  1. First, open your favorite 3D modelling apps, import your model, render as 1024×1024 PNG in front side.
  2. 2
  3. Now open photoshop or your favorite photo editing software. Import the rendered 1024×1024 PNG, make it black by double clicking Layer 0 and check the Color Overlay. Set the color to black on Color Overlay settings, then click OK. You also need to blur it a little bit. Click Filter > Blur > Gaussian Blur and set the amount 5 or 10. Flatten the image, and save it as JPG.
  4. 3
  5. Import that edited JPG file to Unity. Read this. After you finished set the blob shadow, set your projector properties like this.
  6. 4
  7. REMEMBER! The Blob Shadow Object should placed in the root of your scene. Now go find a directional light, and copy the directional light’s rotation to blob shadow rotation. After you set it, now place it on the object that you want to add the shadow. Don’t forget to set the object a layer (for example, Me : NoShadow).
  8. 5
  9. After you set the shadow as a child of your object, now set the shadow positions to Vector3.zero. I mean (0,0,0).
  10. 5_2
  11. Set your camera to isometric and object rotation to global, it make much easier to placing the shadow. You just need to rotate the Z axis. If you touched X and Y axis, you are gonna had a bad time.
  12. 6
  13. Now lookie what we have here, a fake ‘baked’ shadow in less than 5 minutes! Still better than ‘baked’ shadow that need 2 hours to finish it and the result was awful. So what do you think ?
  14. 7

Author: IMGVERTEX

Started making games since 13 year old. 3D CGI Weeaboo | VFX Otaku | Anime Researcher | Indie Game Dev | VR Chuunibyou

2 thoughts on “[Tutorial] Fake ‘baked’ shadow in Unity Indie

  1. Pingback: Getting Started with Unity3D here is you 1 stop of shop of great resources - Microsoft UK Faculty Connection - Site Home - MSDN Blogs

  2. Pingback: Mohamed Emam | Windows Game Development With Unity3D

FEED ME