Hyper Trails - customizable trail effect

#1

Hyper_Trails_50

Hyper Trails is easy to use and customizable trail effect for the Defold game engine.

Installation and usage

Using it in your 2D game is simple:

  1. Add .zip as a Defold library dependency.
  2. Copy trail_maker.script and trail_model.model from /hyper_trails/hyper_trail_16.go into your collection in your game object.
  3. Run your game and move the game object. Enjoy!

Sources and documentation

Example App

Play online - https://indiesoftby.github.io/defold-hyper-trails/

Roadmap

  • More examples
  • Support of variable dt
  • Interpolation using splines

Feedback

I’d appreciate any feedback! I want to understand use cases and improve the extension.

27 Likes

Back to Defold after 2 years, "Bouncy Catapult" hypercasual prototype
#2

Wow :smiley: it’s an amazing asset, must dive in, but I’m already astonished :smiley: Do you mind creating an asset page for this? :wink:

4 Likes

#3

@pawel.jarosz21 Thanks! Yeah, I’ll add asset page a bit later.

Also I need help from the community and the Defold team. I tested the extension on a lot of devices, but on two cases, there are hurtful glitches that I don’t know how to fix.

  1. Two PCs with Windows 10 and Geforce GTX 1080 Ti, latest drivers. Trails shake in random occurrence. It looks as if the data texture is not immediately sent to the GPU (using resource.set_texture(path, table, buffer)), but in other frames: video. If you run it in your browser, it works properly. (because of DirectX via ANGLE, probably)

  2. Amazon Fire TV Stick (W87CUN). No uniform attributes sent (only in Hyper Trails demo app!) and so it looks like: photo.

4 Likes

#4

Amazing work!! :smiley:

Would it be possible to publish a playable web example as well?

Regarding point 1 above, the jittery/shaking bug, could it possibly be due to some precision in the shaders?

4 Likes

#5

OK, published web example.
Also added to the Asset Portal.

4 Likes

#6

This is really cool.

3 Likes

#7

Looks like it’s not. I’ve been trying to figure out the reason all week… But so far I’ve been unsuccessful. I’ll make a simple project to try to catch this bug on it.

3 Likes

#8

Maybe added trail on and off feature could be good.

5 Likes

#9

Great Asset!!

3 Likes

#10

As an example, I replaced the trail effect :dizzy: in @britzl’s GB Rausers with Hyper Trails: play online, sources.

9 Likes

#11

Hi, I downloaded from Github
defold-hyper-gbrausers
but when I build it with Defold there are 2 errors:

  1. /assets/font/smallest_pixel-7.font
    The file ‘/assets/font/pixelfont.material’ could not be loaded.

  2. /game/player.collection
    The file ‘/assets/trail/trail.material’ could not be loaded.

Instead, when I build the original GB Rausers, there is no error.

Do you have any idea about the rerason?
Thanks, Marco

1 Like

#12

@mrduneit, сan you please download the project and try to build it again? Because I checked it, set up the CI and the project builds fine.

1 Like

#13

Now it works, thanks!

2 Likes