rodrigop Posted August 5, 2015 Share Posted August 5, 2015 Hi there! I have the need to create a "warp speed effect", this will happen at the end of each level and then the scene will restart on the next level, the effect simulates a ship going to the speed of light. At the end of each scene, i will have more than 70 meshes moving independently so i am looking for a performant way of achieving this effect, what do you guys think is the correct way to implement this? i am a bit lost on where to start, not sure if i can use an animated gif, a video, use particles systems or ribbons. Also would be good to know if there is already an example of something similar. BTW, if you search at google images for "warp speed effect" you will get the idea of what i'm looking for. Thanks! Quote Link to comment Share on other sites More sharing options...
adam Posted August 5, 2015 Share Posted August 5, 2015 I wonder how hard it would be to get this working in BJS: https://www.shadertoy.com/view/Xdl3D2 Befive.Info and rodrigop 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 5, 2015 Share Posted August 5, 2015 What do you mean by warp effect? is this like stretching the model or simulating a star field like in star wars? Quote Link to comment Share on other sites More sharing options...
rodrigop Posted August 5, 2015 Author Share Posted August 5, 2015 Its exactly what adam posted, but how to integrate that on a BJS scene? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 6, 2015 Share Posted August 6, 2015 You can do the same babylon.js supports custom shaders http://blogs.msdn.com/b/eternalcoding/archive/2014/04/17/learning-shaders-create-your-own-shaders-with-babylon-js.aspx rodrigop 1 Quote Link to comment Share on other sites More sharing options...
rodrigop Posted August 7, 2015 Author Share Posted August 7, 2015 Yes!, babylon is awesome and i'm just starting to investigate the amazing universe of shaders, but as i'm very new to it i'm going to take my time on that. Also, i found a nice example of porting a shadertoy example to threejs (http://stackoverflow.com/questions/24820004/how-to-implement-a-shadertoy-shader-in-three-js), and looking at your blog post (thank you for that!) i'm starting to work on this. I think that the playground and CYOS are limited for this task, so i created a new plnkr => http://plnkr.co/edit/pXvfpPUcu1GQeCLA29oM?p=preview I'm hoping that anybody that understands very well the shaders languaje and that threejs example can give me some tips while working on this to accelerate the task, THANKS! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
adam Posted August 7, 2015 Share Posted August 7, 2015 http://www.babylonjs-playground.com/#1WBBW0#1 jerome, Phuein, iiceman and 3 others 6 Quote Link to comment Share on other sites More sharing options...
rodrigop Posted August 8, 2015 Author Share Posted August 8, 2015 awesome, thanks Adam! Quote Link to comment Share on other sites More sharing options...
rodrigop Posted August 9, 2015 Author Share Posted August 9, 2015 Im very happy with how this looks at my game... god bless all the noble souls behind this great technologies!!! THANK YOU! http://space-trippers.herokuapp.com/ jerome, iiceman, MarianG and 3 others 6 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 10, 2015 Share Posted August 10, 2015 That's insanely cool rodrigop 1 Quote Link to comment Share on other sites More sharing options...
syed samoon Posted January 30, 2018 Share Posted January 30, 2018 how to add warp effect in babylon game? can you have any idea about that?? did anyone have model script?? Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 30, 2018 Share Posted January 30, 2018 I can do that interstellar shader no problem if y'all really need it. *EDIT* whoops scratch that! Adam already did it. "how to add warp effect in babylon game" -> Check out adams PG it shows how. Quote Link to comment Share on other sites More sharing options...
jerome Posted January 30, 2018 Share Posted January 30, 2018 http://playground.babylonjs.com/#W9LE0U#28 ? (from a rain fall demo ) Pryme8 and NasimiAsl 2 Quote Link to comment Share on other sites More sharing options...
syed samoon Posted January 31, 2018 Share Posted January 31, 2018 On 8/8/2015 at 4:42 AM, adam said: http://www.babylonjs-playground.com/#1WBBW0#1 @adam thanks but i have one doubt how can apply this shader to my games world i don't have any idea about it.. bcoz i'm newbie 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.