motikares Posted September 15, 2020 Share Posted September 15, 2020 Hi, Guys. This is mi first post here so Hello Forum. Im trying to make heat effect Like oven heat with Displacement Filter, but I cant achieve the wanted result. I will add some reference to clarify what I need and would appreciate your help Heat Distortion Effect Link Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 15, 2020 Share Posted September 15, 2020 That's not displacement. That's displacement + blur. It can be achieved if you know how to modify existing filters with glsl and chains of filter inputs. This is not newbie material, yet. You have to find someone who will make it for you. I did something like that before, https://codesandbox.io/s/tender-franklin-iycmu , but its doesnt have blur, just lighting +displacement. If you want to learn that stuff, you really have to learn most of pixi usages first. If you have Adobe Flash experience, or Photoshop layers - that'll help. If you dont know what layers are and how the image is combined... well.. im sorry. Quote Link to comment Share on other sites More sharing options...
motikares Posted September 16, 2020 Author Share Posted September 16, 2020 Thanks, Ivan. I dont have that much experience with pixi. The good thing is I have 10 years with Adobe Flash (good times). I think i can handle this. I will post my results as soon as I make one. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 16, 2020 Share Posted September 16, 2020 OK, then you can make it, probably The idea is to combine original image with blurred by a mask, and for that you need to make a combined filter. just a PIXI.Filter that has apply() method that requests extra renderTexture , calls blur filter, and then combines two images somehow. Code will look like https://github.com/pixijs/pixi-filters/blob/master/filters/drop-shadow/src/DropShadowFilter.js#L90 , but with extra input - mask that you want to use to combine those two. Or maybe mask is a function in glsl. The big demo I mentioned has modified DisplacementFilter that accepts masking, maybe it can help. Post here your progress and I'll be able to help. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 16, 2020 Share Posted September 16, 2020 Also you can use SpectorJS browser extension to see how exactly frame is formed in your case. You'll see all the layers and combinations with it. 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.