How to create light beam line along spline?
Asked Answered
L

6

0

So, I have a niche question, one I can't find a single resource on the internet for. I'd like to know how I can create a cylindrical-looking light beam line that can be manipulated along a spline. Examples of this in games can be seen in the mobile game Smash Hit:

And in Super Mario Galaxy:

As for technical details, I've been looking at Mario Galaxy's launch star trails. It looks like the launch stars are made of textured cross-planes, as we can see from this camera angle:

How could I create something similar in Godot? Ideally, it'd be something that I can do in the editor.

Lozier answered 17/9, 2022 at 2:11 Comment(0)
L
0

And, I've already tried the CSG Polygon node. That's an excellent solution... if it worked. In order to create a cross shape like shown above, I'd have to create many overlapping vertices and the UVs would be non-editable, making that solution invalid. I wish that node allowed using a custom mesh instead of having to input the coords of vertices.

Lozier answered 17/9, 2022 at 2:18 Comment(0)
F
0

Is there any particular reason you're relying on a spline? Why not use a particle trail? Or are you needing this trail shape to be a working mesh with a collider?

Freer answered 17/9, 2022 at 3:6 Comment(0)
L
0

Freer No colliders, it just never occurred to me that particle trails would work. I always thought they were for dynamic purposes and not static objects. The purpose of the spline is being able to create a path that has the glow on it.

Lozier answered 17/9, 2022 at 3:15 Comment(0)
F
0

Well you'd have to kind of fake them being static, but I'm fairly certain it's possible, remove gravity and give them a lifetime of 0 etc. plus you'd have to put in a trail sprite that works, you'd just need to experiment to get the result you want.

Freer answered 17/9, 2022 at 3:20 Comment(0)
L
0

Here's what it would look like in Blender:

I used an array modifier with the fit type set to Curve and I created a Curve modifier to deform the mech along the curve. Is there a way to do the same in Godot?

Lozier answered 17/9, 2022 at 3:44 Comment(0)
S
0

They are called ribbons or trails. Godot does not support them out-of-box. Here is an example of how you could make them yourself.

https://doc.stride3d.net/latest/jp/manual/particles/ribbons-and-trails.html

Sanferd answered 17/9, 2022 at 5:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.