Retri Posted July 9, 2015 Share Posted July 9, 2015 Does anyone have a working example for v3 that I can check out? Edit: the source documentation seems to be copy/pasted from displacement filter Quote Link to comment Share on other sites More sharing options...
xerver Posted July 9, 2015 Share Posted July 9, 2015 The NormalMapFilter was an experiment and never should have been put into the library because it doesn't really work. If you are trying to do lighting you can look at my lighting plugin which adds deferred rendering and lighting to pixi: https://github.com/pixijs/pixi-lights semk 1 Quote Link to comment Share on other sites More sharing options...
Retri Posted July 9, 2015 Author Share Posted July 9, 2015 I see. Does that mean Normal maps are not planned to be added?And are displacement map also not usable? Edit: I'm getting an error with the lighting regarding drawMode. l:323 in pixi-lights.jsIs there a working example online I can peek at? Quote Link to comment Share on other sites More sharing options...
xerver Posted July 10, 2015 Share Posted July 10, 2015 I see. Does that mean Normal maps are not planned to be added? And are displacement map also not usable? Edit: I'm getting an error with the lighting regarding drawMode. l:323 in pixi-lights.js Is there a working example online I can peek at? I don't plan to fix that filter any time soon, but anyone can do it if they want to. Displacement filter should work fine. There is an example of using the pixi-lights plugin in the repo: https://github.com/pixijs/pixi-lights/blob/master/index.html Make sure you are using 3.0.7 or higher of pixi.js, it is required. Also keep in mind that the plugin is experimental, and basically only supports sprites. semk 1 Quote Link to comment Share on other sites More sharing options...
Retri Posted July 10, 2015 Author Share Posted July 10, 2015 I got it working now. I was using 3.0.6 - thanks for all the help and sorry for being such a dumb dumb Quote Link to comment Share on other sites More sharing options...
xerver Posted July 11, 2015 Share Posted July 11, 2015 I got it working now. I was using 3.0.6 - thanks for all the help and sorry for being such a dumb dumb Not at all, the forums are here to ask questions. If you have any problems, feel free to post here or on GitHub. Quote Link to comment Share on other sites More sharing options...
Seb Posted July 3, 2017 Share Posted July 3, 2017 Heu @xserver, Trying to use the example on git here : https://github.com/pixijs/pixi-lights/blob/master/index.html But i have this error poping... AmbientLightShader.js:24 Uncaught TypeError: Cannot read property 'registerPlugin' of undefined at Object.5.../light/LightShader (AmbientLightShader.js:24) at s (_prelude.js:1) at _prelude.js:1 at Object.1../lightSpriteMixin (index:9) at s (_prelude.js:1) at e (_prelude.js:1) at _prelude.js:1 Any clue ? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 3, 2017 Share Posted July 3, 2017 Oh, right, it was made for v3 and I think @finscn made his version for v4. 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.