Jump to content

Recommended Posts

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.

Link to comment
Share on other sites

@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.:o

cheers, gryff :)

 

Link to comment
Share on other sites

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

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...