question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Displacement Filter issue with Pixi.js V 4.0

See original GitHub issue

I’d like to have the same result than this jsfiddle. It use pixi.js - v1.6.0

http://jsfiddle.net/glafarge/6h84bpnk/

Unfortunately, I don’t succeed having the same result with de new pixi.js v4.1.0 It seems that this line inside the requestAnimationFrame function doesn’t work on the new pixi.js

displacementFilter.offset.x += offset; Indeed, offset doesn’t exist anymore but I don’t know how to replace it ? Does anyone have an idea ?

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
michaelgrccommented, Nov 7, 2016

Perfect I’ll do it on your way ! Thank you that was very helpful and interesting.

0reactions
lock[bot]commented, Mar 9, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Displacement Filter issue with Pixi.js V 4.0 #3253 - GitHub
I understand the incrementation of my x & y inside my requestAnimationFrame function but on the jsfiddle (with Pixi v.1.6) the filter stays...
Read more >
Guide to pixi-V4 filters - Pixi.js - HTML5 Game Devs Forum
V4 filters are differ from V3. You can't just put there shader and assume that texture coords are in [0,1] range.
Read more >
PIXI.Filter - PixiJS API Documentation
Filters can be applied to any DisplayObject or Container. PixiJS' FilterSystem renders the container into temporary Framebuffer, then filter ...
Read more >
@pixi/filter-displacement - npm
Filter that allows offsetting of pixel values to create warping effects. Latest version: 6.5.5, last published: 11 days ago.
Read more >
Newest 'pixi.js' Questions - Stack Overflow
Hi I'm using pixi's built in displacement filter (PIXI.filters.DisplacementFilter). It works perfectly in desktop mode. The problem is, when I load the page ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found