Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#1922 closed enhancement (fixed)

[PATCH] Allow relative velocity for particles, allow growth in size over time.

Reported by: wraitii Owned by: wraitii
Priority: Nice to Have Milestone: Alpha 15
Component: Core engine Keywords: patch
Cc: Patch:


Some new possibilities for particles: you can now choose to have relative velocity (ie particles are created with their velocity relative to the rotation of the prop-point on the actor. This means things like jet thrusts are possible for mods, but there might be a few other uses (flamethrowers of sort, perhaps later for greek fire [assuming we don't switch to Ogre], or really whatever). It could probably be made the default mode since it changes nothing else, and most models currently use particles at their root points, which is unrotated (still need to check it's actually the case). Size growth could help a few effects, such as smoke: patch includes a change to the smoke used by the campfire: you can see how with a reduced emission rate, you still get a really good effect as the particles grow in size.

Attachments (1)

ParticleUpdates.patch (6.8 KB ) - added by wraitii 10 years ago.

Download all attachments as: .zip

Change History (7)

by wraitii, 10 years ago

Attachment: ParticleUpdates.patch added

comment:1 by historic_bruno, 10 years ago

Is it possible to have particles that shrink over time, with a negative size.growth? I think it should be, but then can the size go negative with this patch? What is the maximum and minimum size? (I have seen particle systems in the past that had start and end size, rather than start and growth, maybe for this reason.)

Probably growthRate is a more accurate term, given how it's being used.

Last edited 10 years ago by historic_bruno (previous) (diff)

comment:2 by wraitii, 10 years ago

It is possible, however currently once the particles reach size "0" they will start growing again. Not sure if this is a good or a bad thing, since with proper tweaking this could probably be used as an effect to some extent. The name can be changed, obviously.

I do not think we support a start and end size right now. Afaik there is no maximal or minimal size, the size is a float, so that would be limited by float range.

comment:3 by Kieran P, 9 years ago

Milestone: Alpha 14Alpha 15

comment:4 by wraitii, 9 years ago

(my darn SVN tool commits automatically when I type Enter…) Committed as of [14286]

comment:5 by wraitii, 9 years ago

Resolution: fixed
Status: newclosed

comment:6 by leper, 9 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.