I saw this cool spaceship-engine-contrail effect in a game called "starsector".
The shape of my contrail looks nowhere near the one I'm trying to blatantly copy.
I've also uploaded a version of particleedit ported to 0.9.1, originally from viewtopic.php?f=4&t=2110.
I was trying to recreate it in love2d but am quite far from it:
How would I do something like the first screenshot? How to draw this contrail?
How to draw this contrail?
- Attachments
-
- particleedit.love
- (17.83 KiB) Downloaded 365 times
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: How to draw this contrail?
You are telling me that your name if in orange color and you posted in the wrong section of the forum ?
Re: How to draw this contrail?
Give him/her a break, his/her last post was nearly 3.5 years ago.Ranguna259 wrote:You are telling me that your name if in orange color and you posted in the wrong section of the forum ?
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Re: How to draw this contrail?
What does an orange name signify?
-
- Party member
- Posts: 712
- Joined: Fri Jun 22, 2012 4:54 pm
- Contact:
Re: How to draw this contrail?
I assume you don't want the trail to "turn" with the ship (i.e. when the ship turns then the trail should describe a curve and not spin around with the ship - the latter can also look good if the ship is moving fast enough, but is trivial to program - just attach a static sprite, maybe variate the alpha/color a bit and make it follow the ship).
I think it might look better with streched particles, i.e. particles which are longer than they are wide.
But I've never used particles in Löve...
Another way might be meshes - seting up a static trail should not be hard: create a new mesh, use an image which is 1 pixel wide and about 20 pixels high, with a gradient fading from transparent to bright white and back to transparent. Make sure the image's mode is set to "repeating".
Then create 4 vertecies for each "segment", create multiple segments after each other (going to the side, in the direction where the image is just 1 pixel wide). Make sure to re-use the same texture coordinates (the corners of the image) for each segment, but different screen coordinates.
Make sure to set blend mode to additive.
Moving this thing (using the second method) could however be dificult...
Come to think of it, I think I'll try programming this... I'll let you know if I can get it to work.
I think it might look better with streched particles, i.e. particles which are longer than they are wide.
But I've never used particles in Löve...
Another way might be meshes - seting up a static trail should not be hard: create a new mesh, use an image which is 1 pixel wide and about 20 pixels high, with a gradient fading from transparent to bright white and back to transparent. Make sure the image's mode is set to "repeating".
Then create 4 vertecies for each "segment", create multiple segments after each other (going to the side, in the direction where the image is just 1 pixel wide). Make sure to re-use the same texture coordinates (the corners of the image) for each segment, but different screen coordinates.
Make sure to set blend mode to additive.
Moving this thing (using the second method) could however be dificult...
Come to think of it, I think I'll try programming this... I'll let you know if I can get it to work.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: How to draw this contrail?
Yeah you're right, sorry about that.. and back on topicDavidobot wrote: Give him/her a break, his/her last post was nearly 3.5 years ago.
Germanunkol if you are good with shaders then you could also add a glow effect where the mesh/particles starts, an oval object that fades it's color from the center to the edges maybe ?
Re: How to draw this contrail?
That the person is a moderator.Rockford wrote:What does an orange name signify?
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: How to draw this contrail?
Not quite. It just means they are/were a developer of LÖVE.Davidobot wrote:That the person is a moderator.Rockford wrote:What does an orange name signify?
Re: How to draw this contrail?
Here is my take on that particle effect. I am using two particle systems, one in the background for the smoke like effect, then another on top for the flames. Feel free to do whatever you want with the script or the images.
- Attachments
-
- contrail.love
- (28.06 KiB) Downloaded 382 times
Re: How to draw this contrail?
Ah, yes. Pardon me. That's the green names.slime wrote:Not quite. It just means they are/were a developer of LÖVE.Davidobot wrote:That the person is a moderator.Rockford wrote:What does an orange name signify?
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Who is online
Users browsing this forum: No registered users and 2 guests