|10th Nov 2008, 07:06 PM||#1|
UT2004 Emitter stuff
Anyone able to make a snow emitter for me? Only really needed for a small area of the map instead of all around the map. xWeatherEffect doesn't seem to wanna comply in terms of excempting volumes without crashing, or it ignores the excempted volumes. :/
|11th Nov 2008, 06:46 AM||#2|
What's so hard about making a simple emitter that just spawns particles across a large area which just fall down at constant speed?
Try setting up a simple sprite emitter with high particle count. Initial location should be a box with Z=0 and X,Y=+/-(size of area with falling snow). Experiment with the (Initial)ParticlesPerSecond and MaxParticles values (make sure both PPS values are the same) and make sure that ParticlesPerSecond * LifetimeRange.Max is at most equal to MaxParticles. Set the particles to never respawn and disable automatic initial spawning.
Choose a LifetimeRange that, in combination with the initial downward velocity, makes the snow particles barely reach the lowest point on the ground.
I recommend a relative warmup time of 1.0 and warmup ticks around 10. To make your snow collide with your level geometry, enable UseCollision and UseMaxCollisions. The MaxCollisions range should be set to (0,0) so particles are removed when they collide with the level geometry.
An emitter set up this way might be quite a performance hit, you should try to split it up into several emitters with smaller spawn location areas. (And I really mean several emitter actors, not just several particle emitters within the same emitter actor.) Try to make their spawn areas fit to the area of the map they are supposed to cover. The rectangular nature of the spawn location boxes should make it relatively easy to align them properly.
Wormbo's UT/UT2004/UT3 mods | PlanetJailbreak | Unreal Wiki | Liandri Archives
Everything you ever wanted to know about replication (but were afraid to ask) [in German] | UnrealScript security considerations
<elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
<TNSe> its always funny to find code a week later you dont even remember writing
<Pfhoenix> what's worse is when you have a Star Wars moment
<Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
Last edited by Wormbo; 11th Nov 2008 at 07:43 AM.
|11th Nov 2008, 10:20 AM||#3|
Its only in a really small area so only one will do, plus its isolated from the rest of the map. Only reason why I asked is because I couldn't find a clear tutorial about emitters. Ah well, I got snow now where I want, so its all good.