Jump to content

pixi-lights example doesn't work


ZauChoco
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

 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 by ivan.popelyshev
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...