tranlong021988 Posted February 13, 2017 Share Posted February 13, 2017 I'm simulating a flash light effect, PG here: http://www.babylonjs-playground.com/#1OTIFL#1 As you can see, the floor using same material with the wall, but always look darker, especially at the edge, I think it is not like realistic. Is it working fine or I miss something ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 13, 2017 Share Posted February 13, 2017 Hello, this is because the light is almost parallel to the ground You can try to lower the direction of the light on y axis: http://www.babylonjs-playground.com/#1OTIFL#2 Quote Link to comment Share on other sites More sharing options...
tranlong021988 Posted February 14, 2017 Author Share Posted February 14, 2017 @Deltakosh even if lowering direction, it still darker than usual, you can check new PG here, drag around to see unrealistic behavior: http://www.babylonjs-playground.com/#1OTIFL#3 And this is a simulation, parallel direction(render with 3ds max with simple diffuse texture): Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 14, 2017 Share Posted February 14, 2017 Woot well done! it was a bug in my shader I fixed it, your PG should work now (clear your cache first) tranlong021988 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted February 14, 2017 Share Posted February 14, 2017 @Deltakosh DK - Thank God you came along, as I spent over an hour yesterday trying to solve this for @tranlong021988. I came back today becuse I reconstructed the scene several times and got the same response. I simply didn't want to look like the village idiot, as there aren't often bugs that pop up of this nature with known lights on standard materials. Next time, I'll post any results I find sooner. DB tranlong021988 and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
tranlong021988 Posted February 14, 2017 Author Share Posted February 14, 2017 @Deltakosh @dbawel : It look better now, thanks you all. For someone need it: http://www.babylonjs-playground.com/#1OTIFL#4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.