SpriteParticle Class

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

SpriteParticle Class

Postby Major Cooke » Wed Jul 22, 2020 12:13 am

I can't remember if something like this was suggested before.

One thing I think we could benefit from is having an official SpriteParticle class, or SpriteEffect, whichever you want to call it. The point of this is to introduce an official means of an optimized special effect entity versus initializing something via an actor inheritance.

  • Never any interaction code, much easier processing, less RAM, etc.
  • Allows for the following properties: Angle, Pitch, Roll, Scale, Velocity, Position, Renderstyle, Alpha, etc.

Something of this caliber could greatly improve gameplay mods that want to spawn a lot of effects.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Re: SpriteParticle Class

Postby Accensus » Wed Jul 22, 2020 9:10 am

If possible to implement in the class, this would also benefit from this feature: viewtopic.php?f=15&t=58831
It'd allow modders to make flashlight effects out of volumetric particles. In fact, Caligari has already done something like that in his Ugly as Sin addon, but when used with square particles the effect is less than satisfying.
User avatar
Accensus
Vector, locked in.
 
Joined: 11 Feb 2016
Location: Somalia
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: SpriteParticle Class

Postby Major Cooke » Wed Jul 22, 2020 3:40 pm

While this will still be a bit more bulkier than particles themselves, it'll have a decently lesser size for certain. I'm willing to bet that mods could greatly improve performance if they can have something of this caliber, visually speaking, especially when lots is going on. With this being a heavily trimmed down class, less things to initialize and more effects can be used.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Re: SpriteParticle Class

Postby Deybar_TECH » Wed Jul 29, 2020 1:26 am

Yes! excellent suggestion.
:idea:
I also need a simple class for the effects
instead of creating a base actor with:
(+ NOINTERACTION +NOGRAVITY +DONTBLAST + + + etc ...)
it would be nice to at least be able to set
its appearance with some custom Sprite
or maybe be able to animate it with ANIMDEFS if it is more a graph than
a sprite.
perhaps it would also be necessary
to increase the maximum limit of (r_maxparticles = 65536)
the railgun use a large amount of particles.
User avatar
Deybar_TECH
Siempre vuelo mas alla de los <Ôłčimites>
 
Joined: 26 Dec 2018
Location: La Paz - BOLIVIA


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests