Conversation
|
This is pretty cool, but I suspect it would look better with a picture that has more depth. Here is the Pixi.js example for contrast. |
|
@looeee Thanks and I totally agree I think having a depth-map with more planes (background/mid-ground/foreground) would work better (as the |
|
BTW you can make live versions using rawgit.com This looks better, although I think the depth map still needs to be cleaned up. There's lots of artefacts as you move to the extreme left or right. Or is that a limitation of this technique? |
|
Thanks for the live versions 🙌 I'll make sure to update them in future commits It is a result of the technique, however, the |
….set() to update uniforms instead of creating new Vector4()
…placement, setDirection and updateMousePosition
|
@mrdoob Are you interested in such an effect? The demo from the mentioned article implements depth displacement with Pixi.js. Do you want a similar effect in Also note @WestLangley view (see #14479 (comment)). The code would fit well in the forum's I don't feel strong about both option. In any event, the PR would require some subsequent works (creating TS files, module migration) if it is going to be merged. I can support here if @juniorxsound has no time. |
|
@Mugen87 Happy to put in the work if it is going to be merged 🙌🏽 |
In the meanwhile, it's better to share this code as a showcase in the forum. Or at Shadertoy like suggested in #14479 (comment). In any event, PixiJS is probably a better choice than |
Added a depth displacement effect example inspired by
Pixi.jsdisplacement filtereffects/displacementexamplejs/effects/DepthDisplacement.jstextures/depth_effect_color.png) and depth map (textures/depth_effect_depthmap.png)