Hot Particles - particle editor

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Hot Particles - particle editor

Post by ReFreezed »

Jayverb wrote: Tue Feb 16, 2021 7:15 pm That would be great for placing stuff on a background image :)
Yeah, I was thinking that.
Jayverb wrote: Tue Feb 16, 2021 7:15 pm How would I put this in the main.lua ? So I can access a parameter say on particleDatas[2] for example.
Just access parameters with the dot syntax. In the example there are two particle systems, which means these two code snippets do the same thing:

Code: Select all

for _, particleData in ipairs(particleDatas) do
	particleData.system:update(dt)
end

Code: Select all

particleDatas[1].system:update(dt) -- Use the dot to access table fields.
particleDatas[2].system:update(dt)
Look at the Lua manual if you're unsure about syntax rules in Lua.
Jayverb wrote: Tue Feb 16, 2021 7:15 pm Also what part do shaders play ?
You can specify a custom shader in the program if you want to render particles in a different way. If you're not using shaders then just ignore/exclude everything shader-related.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
Jayverb
Prole
Posts: 7
Joined: Sun Feb 14, 2021 11:11 pm

Re: Hot Particles - particle editor

Post by Jayverb »

@ReFreezed
Gotcha ! That's exactly what I needed to know, Thanks !
So am I writing

Code: Select all

particleDatas[1].system:setPosition(x-200,y-200)
and that should do the trick keeping local intact.. because system=ps ?
I have looked into shaders and yes that's a whole other kettle of fish :ultrahappy:
Looking forward to spending some time creating some assets.
I have to say that this feels like the perfect place to start with love2d using your program as a basis, it's a hella lot of fun. :shock:
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Hot Particles - particle editor

Post by ReFreezed »

Update 1.8

Changes since 1.7:
  • Particle systems can now have individual position offsets.
  • Fixed particle path previews not using the specified area distribution.
  • Templates: Values have been moved to the 'exported' namespace (i.e. particleSystems is now exported.particleSystems). (Values are also available in the old place so existing templates still work.)
  • Templates: Added exported.emitterPosition and exported.particleSystems[n].emitterOffset.
  • Templates: Deprecated exported.particleSystems[n].offset. (Use exported.particleSystems[n].textureOffset instead.) ('offset' is an alias for 'textureOffset' so existing templates still work.)
  • Templates: exported.particleSystems[n].texturePreset is now empty if a custom texture is used.
  • The default templates have been updated.
I've also updated the examples repository.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
Jayverb
Prole
Posts: 7
Joined: Sun Feb 14, 2021 11:11 pm

Re: Hot Particles - particle editor

Post by Jayverb »

Re Update 1.8,
Thanks for this ! Happy days :)
Jayverb
Prole
Posts: 7
Joined: Sun Feb 14, 2021 11:11 pm

Re: Hot Particles - particle editor

Post by Jayverb »

@ReFreezed
Does this mean we can overlay on top of a background image to export and emitter positions will be correct ?
Will have to test asap, thanks again !
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Hot Particles - particle editor

Post by ReFreezed »

@Jayverb
Yes. Just look at what the updated default exporter outputs to see where you can get the coordinates.
No problem! :)
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Hot Particles update 1.9

Post by ReFreezed »

Update 1.9

Changes since 1.8:
  • Particle color gradients can be saved and loaded. (Right-click on the preview.)
  • Fixed slider handle position being slightly off while dragging.
  • Exporter: Updated dialog to show all files that will be exported, and if they overwrite anything, at the bottom.
  • Templates: print() now prints to the log.
  • File browser: Click in the file list and type to search.
  • File browser: Enable name filter for the file list by entering a filename with an asterisk (e.g. "*.lua").
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
4xEmpire
Prole
Posts: 26
Joined: Wed Aug 04, 2021 4:49 pm

Re: Hot Particles - particle editor

Post by 4xEmpire »

This is extremely useful, ReFreezed.

Thank you for posting this. I'll let you know if I have any feedback!
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Hot Particles - particle editor

Post by ReFreezed »

@4xEmpire I'm glad you find it useful. :)
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
ChicoGameDev
Citizen
Posts: 71
Joined: Thu Feb 14, 2019 6:02 pm
Location: Switzerland
Contact:

Re: Hot Particles - particle editor

Post by ChicoGameDev »

Hi,

Amazing tool !

I can't start the MacOS 1.9.0 release, it's says I don't have authorizations to open it. I don't get it, it's not even blocked by the security and all the rights are on read/write.

Any idea why?


Thanks
Lionel Leeser

Luven : https://github.com/halsten-dev/Luven

--

Always keep Game Dev as a passion.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 0 guests