JackFalcon Posted May 18, 2017 Author Share Posted May 18, 2017 Thank you @NasimiAsl inLine(Like that). Great solutions. Electric-plasma material on orb is cool too: http://www.babylonjs-playground.com/#22FWI5#6 ... Was combining it to the spheres of the example above, just to see..... @Dad72 your method was helpful already.... Cheers, Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted May 18, 2017 Author Share Posted May 18, 2017 Here is a combination of suggestions. plasma orbs with spark line: http://www.babylonjs-playground.com/#22FWI5#11 Quote Link to comment Share on other sites More sharing options...
Gijs Posted May 18, 2017 Share Posted May 18, 2017 I made one using DynamicTexture, it's just a proof of concept: http://www.babylonjs-playground.com/#XLDBB2#4 At the bottom there are many variables you can play with. Here is the spark in your combination playground: http://www.babylonjs-playground.com/#22FWI5#14 It's still a very siny spark, but the getSparkPoints function can easily be edited. Edit: Here they are with a blue glow: http://www.babylonjs-playground.com/#XLDBB2#5 http://www.babylonjs-playground.com/#22FWI5#16 Apparently lighting has to be disabled on the material, it's just that you don't notice when the color is white. brianzinn, JackFalcon and Dad72 3 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 19, 2017 Share Posted May 19, 2017 I find the idea to be able to reproduce the lightning storm of cool with this technique. JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted May 19, 2017 Author Share Posted May 19, 2017 Very cool @Gijs, that drawSpark() is realistic. Looking how...? Ah, DynamicTexture.context onto material. Then 6 frame governor (like)! ctx.drawImage(glow), ctx.lineTo(), ctx.stroke(), ctx.clearRect()! Cool methodology... Quote Link to comment Share on other sites More sharing options...
gryff Posted May 24, 2017 Share Posted May 24, 2017 @enwolveren I don't know where you, and others, have gone with this topic, but here are a couple of more examples that I found in my BJS bookmark list of PGs that I was cleaning out yesterday. First a Sprite Effect. Electricity 1. This has electricity and sparks And for @NasimiAsl as well, A Shader Effect Electricity 2. This has 9 different shaders doing all sorts of things - one of which is electricity (cube in back right corner). I have not figured out which part of the code drives this effect. I would one day like to create the "gateway" effect I posted an image of - but that will likely not be soon. cheers, gryff NasimiAsl, Dad72 and JackFalcon 3 Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted May 24, 2017 Author Share Posted May 24, 2017 Wow, these are excellent! Had no idea... will study a dig in that direction. Thanks! That electric box is as amazing, with all the other shaders... The "gateway" effect? Ah... portal? ok.. - transparent plane, circular frame (w/collision)? Good to see you @gryff 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.