syed samoon Posted January 31, 2018 Share Posted January 31, 2018 Hi friends, how to add the warp effect in my world. i need warp effect without using the shader like this; http://www.babylonjs-playground.com/#1WBBW0#1 how to get warp effect using the jquery-warpdrive in my world ref: https://www.jqueryscript.net/animation/Warp-Drive-Starfield-Effect-jQuery.html can you have any idea about this?????????....... Thanks Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted January 31, 2018 Share Posted January 31, 2018 make pg sample of your scene? (i try make it but i can't tell yet) Quote Link to comment Share on other sites More sharing options...
syed samoon Posted February 1, 2018 Author Share Posted February 1, 2018 22 hours ago, NasimiAsl said: make pg sample of your scene? (i try make it but i can't tell yet) http://www.babylonjs-playground.com/#1WBBW0%231 (ADAMs PG) in this PG the shader scipt is used for warp texture to ground. but what i need warp effect to world. that means Like this picture Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 1, 2018 Share Posted February 1, 2018 good i think i can make it by PostProcess ( in progress) Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 1, 2018 Share Posted February 1, 2018 http://www.babylonjs-playground.com/frame#1TYWYB#1734 Quote Link to comment Share on other sites More sharing options...
syed samoon Posted February 2, 2018 Author Share Posted February 2, 2018 Thank you very much Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 2, 2018 Share Posted February 2, 2018 just more description : spSpeedParam = { x: warp effect scale , y: betweeen 0 , 1 that center of warp effect , z: betweeen 0 , 1 that center of warp effect }; you just need calculate speed and screen point and set that in spSpeedParam if you don't wanna make some mesh in that effect use this parameter helper(mesh, scene,1); and use this for attach Effect helper(mesh, scene); function helper(mesh, scene,f ) { mesh.helperMaterial = new BABYLONX.ShaderBuilder() .Solid() .IdColor(!f?13000200:0, 1.) /// this number just for a uniq number used in post process you can detect you mesh by any id you set in this .Back() .BuildMaterial(scene); mesh.helperMaterial.flagUp(1); } http://www.babylonjs-playground.com/#1TYWYB#175 http://www.babylonjs-playground.com/frame#1TYWYB#177 with some special blur when you have speed 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.