ZauChoco Posted May 1, 2020 Share Posted May 1, 2020 Hello, For a game i'm working on i try to add lights, since 2 days now i read tutorials to make this works, without success. So I tried to apply the official example by entirely copying its source, and it doesn't work. It gives me a black screen without error message. I created a repository (For you to get images and libraries i used): https://github.com/ZauChoco/pixi-lights-bug How to fix this ? Thank you ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 1, 2020 Share Posted May 1, 2020 (edited) I still didnt port it from v4 to v5, so its just not possible to launch. Do you want it ? ok, wait some more time However the question I ask every person who wants pixi-lights : are you sure you can deal with normal maps and provide all necessary resources? I advice to start from simple stuff, https://pixijs.io/examples/#/plugin-layers/lighting.js , make a demo like that, make different kind of lights on lights layer, swap MULTIPLY for a filter shader like in https://codesandbox.io/s/tender-franklin-iycmu Only after you have experience with basic lighting techniques you can more to normals, maybe port pixi-lights to v4 yourself. If you dont learn those - even if I do port it to v5, you will have a problem with even slight change in demo. Edited May 1, 2020 by ivan.popelyshev 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.