Game Development Community

Precipitation/Particle Questions

by Foestar · in Torque Game Engine · 05/22/2008 (8:19 pm) · 2 replies

So I have managed to figure out how to add both in my missions but came across somethign rather odd and was wondering if anyone has had it happen too or knows why it's doing this. I created 6 effects for precipitation and now i'm trying to create a smokey/firey debris kinda storm. Not over the top and all windy like a dust storm would be or rain. But kinda fire particles floating through the air on the wind. Which then made me think, well this should probally be particles instead of precipitation. However, even after I created this effect it doesn't seem to show up in the particles tool options. I made sure that my game.cs is executing my enviroment and effects cs'. It's just for no reason all of a sudden any new ones I create are not reading. Maybe it's something simple i'm over looking, or maybe not. Anyone have any ideas?
(lol, i may end up figureing it out myself. I'v done that with my last 3 posts.)

#1
05/22/2008 (9:19 pm)
Go ahead and use precipitation, set you wind settings to something like this:

windVelocity = "-0.044 -0.051 0.001";
         windEffectPrecipitation = "1";

Set your precipitation to something like this:

new Precipitation() {
      canSaveDynamicFields = "1";
      position = "17.8375 -203.065 24.2597";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "Ash";
      minSpeed = "0.1";
      maxSpeed = "0.2";
      minMass = "0.75";
      maxMass = "0.85";
      maxTurbulence = "0.1";
      turbulenceSpeed = "0.2";
      rotateWithCamVel = "1";
      useTurbulence = "1";
      numDrops = "5000";
      boxWidth = "200";
      boxHeight = "100";
      doCollision = "1";
   };

Obviously you need to reference your own precipitation datablock (mine here was the Ash reference above) this should give you floating, blowing around objects, just create your unique fire particle datablock in your environments.cs script and it should look like what I think you're looking to do.

(I know this wasn't a solution to your missing particles, but it will produce a nice ash/dust/floating particles kind of effect)

.
#2
05/23/2008 (7:52 am)
Yeah, I don't know why it was not showing some of my effects last ngiht. But it seems to be working fine now. (Maybe I just needed sleep and was doing something really simple for an error.)
I made the effect into precipitation and tried how you suggested. Just what I was thinking for a cool burning village effect. Nice touch. =)
I have a nice ash effect going on now. And now i'm attempting something else, but nothing good yet. I want to try to add in some sparks of flame in the wind with the ashes. I made a new datablock with a red colored textures kinda like the ashes, but it didnt quite look as I wanted it. Which then made me think, it would probally look really nice and the way I wanted it if I could give each of the fire debris textures a glow effect. But 2 things came ot mind. Is that possible to give each lighting cababilities or would it need to be done in detailed texture work used for my datablock? And even though I have less fire debris drops then ashes (still around 1500) wouldn't that bog down the system if I were to give each a glowing or illuminating effect?