Unity test - Casting shadows to an invisible plane (for VR/AR)

  Рет қаралды 3,460

蕭謦

蕭謦

Күн бұрын

UPDATE 2022/09/27:
Now support multiplt lighting
Now support directional, point, spot lights.
Watch this demo video:
• playing with my SHADOW...
• [Multiple light source...
GitHub: github.com/End...

Пікірлер: 31
@jinhuawen7876
@jinhuawen7876 Жыл бұрын
Awesome! That is what I need,now I can make my AR world looking real! Thank you!
@KomodozGaming
@KomodozGaming Жыл бұрын
Nice, exactly what I'm looking for!
@GrvShekhawat
@GrvShekhawat 2 жыл бұрын
I tested on iOS build for AR game and it works great, thanks!
@ACatWithACrown
@ACatWithACrown Жыл бұрын
Legend.
@b3armonk
@b3armonk 2 жыл бұрын
thank you so much!
@monikg9275
@monikg9275 17 күн бұрын
Could you please explain how you create that material for the invisible plane to receive shadows? I am trying to do the same on Unreal Engine but I cannot find the way to. Thank you in advance
@NegInfinity
@NegInfinity 2 жыл бұрын
I've checked the repository. You're using AutoLight shadow attenuation macros to compute transparency of the fake shadow. Very clever. However it will not work with multiple lights.
@Ending2012a
@Ending2012a 2 жыл бұрын
Hello, the new version now can work with multiple lights ---> github.com/Ending2015a/kage
@targashsensei7900
@targashsensei7900 Жыл бұрын
THIS. IS AWESOME. Works perfectly except i can't see tilemap if it's on the other side I've been breaking my head for several hours over this, could you help me out?
@noobvulcan47
@noobvulcan47 2 жыл бұрын
This is super awesome. But how can i make it work in URP?
@Ending2012a
@Ending2012a 2 жыл бұрын
Hi, you can see this issue github.com/Ending2015a/UnityShadow/issues/1
@yogeshks7592
@yogeshks7592 2 жыл бұрын
But the shadow is not visible in game window
@Ending2012a
@Ending2012a 2 жыл бұрын
Really😱? It works fine on my computer. I also use this shader to record the video with transparent background.
@yogeshks7592
@yogeshks7592 2 жыл бұрын
@@Ending2012a Is anything should need to attach to the camera?
@DaltonSessumes
@DaltonSessumes 2 жыл бұрын
@@Ending2012a I had the same problem. No shadow visible in game window. Is this URP?
@s-litvin
@s-litvin 2 жыл бұрын
Same for me (((
@MatthewRiddett
@MatthewRiddett 2 жыл бұрын
Same here.
@francescorettore8940
@francescorettore8940 Жыл бұрын
Thanks for the shader! However, for me it only works in Scene mode: as soon as I enter the Game mode (or even looking at the camera preview) the plane is shown, having the same colour of the background. It's a problem, since I need my 3D object to overlap to a Raw Image set as background and the plane isn't supposed to be visible.
@Ending2012a
@Ending2012a Жыл бұрын
Hello, you have to change the clearflag of the camera to "Solid Color".
@francescorettore8940
@francescorettore8940 Жыл бұрын
@@Ending2012a Thanks for the fast response! Clear flag is already set to 'Solid Color' (and I even tried inputting a completely transparent colour (0,0,0,0)), but what I see is a black plane under my object in camera preview and Game view.
@Ending2012a
@Ending2012a Жыл бұрын
@@francescorettore8940 could you provide your Unity version? Are you using the version newer than 2019?
@francescorettore8940
@francescorettore8940 Жыл бұрын
@@Ending2012a Yes indeed, my Unity version is 2021.3.10f1. Do you think that by downgrading to previous versions could solve the problem? What is your Unity version?
@francescorettore8940
@francescorettore8940 Жыл бұрын
Unfortunately, I still have the same problem even with version 2019.4.29f1, as reported in your Github repository :(
@sarthakmusale9752
@sarthakmusale9752 2 жыл бұрын
I added this to my project and it worked perfectly. but the next day it stopped working, the shadow was not shown in game window. I also removed UR pipeline from project, still not working. any solution??
@Ending2012a
@Ending2012a 2 жыл бұрын
Hello, I just update the shader code. Could you try this new version? ---> github.com/Ending2015a/kage
@Ending2012a
@Ending2012a 2 жыл бұрын
BTW, this shader does not work with Skybox (camera settings), so you have to change your camera setting to Solid color
Perfecting Shadows in Unity: Introductory Guide with Troubleshooting!
12:44
Fist Full of Shrimp
Рет қаралды 7 М.
Mixed Reality Shadow - Unity Tutorial - Quest 3
13:54
Valem Tutorials
Рет қаралды 10 М.
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 109 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 13 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 23 МЛН
The Most Valuable File Format You've Never Heard Of
15:33
Acerola
Рет қаралды 439 М.
Lynx R1 Setup Guide - Using Handtracking & Enabling AR Mode
9:38
Black Whale - XR AI Tutorials
Рет қаралды 1 М.
Getting Started With ARFoundation in Unity (ARKit, ARCore)
31:20
The Unity Workbench
Рет қаралды 459 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 717 М.
Unity 2017 Tutorial - Blob Shadow Projector - Fake Shadow
7:55
Unity Optimization : reducing 3D objects' draw calls
14:53
about game making
Рет қаралды 71 М.
How to TURN ON Lights in Unity
5:17
UGuruz
Рет қаралды 76 М.
POLI - Котик (Official music video)
2:04
POLI
Рет қаралды 806 М.
Alisher Konysbaev & Duman - Мен болуым керек (Official MV)
2:35
Afruza - Baxtlimisan (Official Music Video)
4:42
Afruza
Рет қаралды 7 МЛН
Diana Ismail - Сені кездестіргелі (Mood Video)
2:51
Amre - Сағынышым менің
3:43
Amre Official
Рет қаралды 336 М.
Лилия
3:00
Али Ахмет - Topic
Рет қаралды 1,9 МЛН