Jump to content

Warp Effect


syed samoon
 Share

Recommended Posts

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

Link to comment
Share on other sites

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);
            
        }
 
 

sdfsdfsfs.thumb.jpeg.3be286cd5e9e38218ab2c18de98e9653.jpeg

 

http://www.babylonjs-playground.com/#1TYWYB#175

http://www.babylonjs-playground.com/frame#1TYWYB#177  with some special blur when you have speed

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...