All Projects → dbp8890 → motion-trails

dbp8890 / motion-trails

Licence: MIT license
A simple motion trail renderer written in GDScript.

Programming Languages

GDScript
375 projects

Labels

Projects that are alternatives of or similar to motion-trails

godot-openvr-asset
Godot asset for the openvr module
Stars: ✭ 52 (+0%)
Mutual labels:  godot
Halma
Halma Game Built With The Awesome libGDX framework
Stars: ✭ 20 (-61.54%)
Mutual labels:  godot
godot-video-rendering-demo
Demo project for high-quality offline video rendering with Godot
Stars: ✭ 69 (+32.69%)
Mutual labels:  godot
docker-godot-export
Docker image to automatically export your Godot games.
Stars: ✭ 42 (-19.23%)
Mutual labels:  godot
Godot FPC Base
A first person camera base project for Godot 3.x to help anyone get a jumpstart.
Stars: ✭ 39 (-25%)
Mutual labels:  godot
Game-Examples
Godot game examples for gotm.io - the Godot Platform!
Stars: ✭ 27 (-48.08%)
Mutual labels:  godot
novemberdev soulslike darksouls godot
Dark Souls clone in 3D with Godot
Stars: ✭ 51 (-1.92%)
Mutual labels:  godot
gamemaker-godot-dictionary
A dictionary for people moving from GM:S to Godot
Stars: ✭ 172 (+230.77%)
Mutual labels:  godot
godot-epic-anchors
Improvement of the anchor panel UI for Godot
Stars: ✭ 26 (-50%)
Mutual labels:  godot
Godot-Top-down-Shooter-Tutorial
This repository contains the source code for the Godot Top-down Shooter Tutorial series.
Stars: ✭ 41 (-21.15%)
Mutual labels:  godot
godot-gdgifexporter
Gif exporter for Godot made entirely in GDScript
Stars: ✭ 85 (+63.46%)
Mutual labels:  godot
godot-cmvalley
Port of the Sauerbraten clanmap cm|Valley to Godot 4.0
Stars: ✭ 28 (-46.15%)
Mutual labels:  godot
godot-ios-plugins
No description or website provided.
Stars: ✭ 53 (+1.92%)
Mutual labels:  godot
godot
Haxe/C# externs for Godot 3.4.0
Stars: ✭ 88 (+69.23%)
Mutual labels:  godot
godot-shader-to-image
A simple tool to render Image from Shader with Godot (Tested on 3.2)
Stars: ✭ 30 (-42.31%)
Mutual labels:  godot
godot-filesystem-view
A Godot tool similar to FileSystem dock, allows you to customize filters(views) to work with project resources.
Stars: ✭ 75 (+44.23%)
Mutual labels:  godot
luban
你的最佳游戏配置解决方案 {excel, csv, xls, xlsx, json, bson, xml, yaml, lua, unity scriptableobject} => {json, bson, xml, lua, yaml, protobuf(pb), msgpack, flatbuffers, erlang, custom template} data + {c++, java, c#, go(golang), lua, javascript(js), typescript(ts), erlang, rust, gdscript, protobuf schema, flatbuffers schema, custom template} code。
Stars: ✭ 1,660 (+3092.31%)
Mutual labels:  godot
toziuha-night-oota
Opensource Metroidvania inspired on Castlevania Order of Ecclesia
Stars: ✭ 78 (+50%)
Mutual labels:  godot
godot-sugar
Experimental post-processing toolkit for Godot
Stars: ✭ 37 (-28.85%)
Mutual labels:  godot
fishgame-godot
"Fish Game" for Godot is a 2-4 player online multiplayer game created as a demo of Nakama; an open-source scalable game server, using the Godot game engine.
Stars: ✭ 153 (+194.23%)
Mutual labels:  godot

Motion Trails

A simple implementation of a motion trail renderer (also known as ribbon trails), for Godot 3.1. Supports texturing and start/end colors for fading in/out.

Instructions

  1. Unzip the contents into a new folder. This folder contains a demo project, and if it is not needed, the MotionTrail subfolder can be copied directly into an existing/new project.
  2. Simply drag and drop the MotionTrail.tscn scene onto a parent scene (such as an object in motion), and you should be all set!

Demonstration

Parameters

  • Trail Enabled: If checked, the script will calculate points for the trail. You would only want to disable it by script, to let the trail end smoothly and avoid the usage of 'visible' Spatial's parameter.
  • From Width: The width of the FIRST point of the trail relative to its X-axis. The trail can be rotated as necessary if, for example, the trail's width needs to be vertically aligned with the parent.
  • To Width: The width of the LAST point of the trail relative to its X-axis. The trail can be rotated as necessary if, for example, the trail's width needs to be vertically aligned with the parent.
  • Scale Acceleration: How fast width should scale. Smaller values means faster scaling at the beginning of the trail. 1.0 for no acceleration in scaling.
  • Motion Delta: How far the parent object needs to move in order for a new point to be created in the trail. Generally, lower values are smoother, but at a cost of higher vertices needed.
  • Lifespan: The lifespan of each point in the trail, which determines how long each point lasts before it is removed.
  • Scale Texture: If enabled, tiles the texture along the length of the trail. Otherwise, the texture is stretched along the trail.
  • Start Color/End Color: The colors for the start/end of the trail, which are interpolated along each point; useful for fading in/out. Note that in order for this to work, the material must use vertex colors for albedo (a default material is already attached that does this).

Additional Notes

Hope you liked this! I hope that this helped in some way, and I had fun implementing it. The trails can effectively be thought of as a particle system, and it would be interesting if ribbon trails could perhaps be integrated with the engine's particle system at some point.

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].