Author Topic: Resizing Particles?  (Read 1832 times)

Offline Enoki

  • Herba Chronographus
  • Elder Grey Pelt
  • ****
  • Posts: 2,698
  • Country: us
  • Floof-O-Meter: 121
  • Who lives in a portabella under a tree?
    • FantasyFungus
    • EnokiTheDryphon
    • Enoki_G
    • View Profile
    • The Realms of Yugure
Resizing Particles?
« on: August 17, 2016, 10:24:27 pm »
So, does anyone know how to tamper with the particle files to change their size? I'd like to make the campfire object into more of a bonfire size, but no matter what I do with the particle file it just causes the game to crash. Anyone know what to change to resize the particle? Much thanks in advance.

Tmw you planned a ten minute nap but instead took a whole year.
☙Icon by dA JRProducts; Sig by PocketMutt❧

Offline magicfairy

  • Immortal Legend
  • *****
  • Posts: 5,649
  • Country: us
  • Floof-O-Meter: 55
    • View Profile
Re: Resizing Particles?
« Reply #1 on: August 17, 2016, 10:32:07 pm »
Try importing it into the OGRE Particle Editor, you can edit the width and length of the particle's image there. There's a download on this video.

How to make an Impressive Title Shard

If ya need more than just that I can give you pictures.
« Last Edit: August 17, 2016, 10:33:50 pm by pokemonXY »
vanitas · he/they/it/fae

Offline Enoki

  • Herba Chronographus
  • Elder Grey Pelt
  • ****
  • Posts: 2,698
  • Country: us
  • Floof-O-Meter: 121
  • Who lives in a portabella under a tree?
    • FantasyFungus
    • EnokiTheDryphon
    • Enoki_G
    • View Profile
    • The Realms of Yugure
Re: Resizing Particles?
« Reply #2 on: August 18, 2016, 05:27:27 am »
Oh! I did not know I needed an outside source to resize particles. :o Thank ye very much, deary! I'll be working on that t'morrow and I'll let ye know how it goes.

Tmw you planned a ten minute nap but instead took a whole year.
☙Icon by dA JRProducts; Sig by PocketMutt❧

Offline magicfairy

  • Immortal Legend
  • *****
  • Posts: 5,649
  • Country: us
  • Floof-O-Meter: 55
    • View Profile
Re: Resizing Particles?
« Reply #3 on: August 18, 2016, 01:17:22 pm »
Oh! I did not know I needed an outside source to resize particles. :o Thank ye very much, deary! I'll be working on that t'morrow and I'll let ye know how it goes.

Hehe, welcome! I'll try to figure out a way to change the size without using the Particle Editor, but working with the program makes it so much easier. When you edit the fire particle in the program you might wanna check if it got rid of the particle_system on the first line of the particle code in the files because FH won't like that. Also remember to change the material in your particle file back to the original if you edit the PE_materials file to import the fire texture in there. x3

Okay so I just edited a particle's width and height in the actual files, went in game, and put it into effects maker. It seemed to have worked.

Original

Modified

I edited the fire particle's files and everything went fine.
How did you edit your files?
« Last Edit: August 18, 2016, 01:36:28 pm by pokemonXY »
vanitas · he/they/it/fae

Offline Enoki

  • Herba Chronographus
  • Elder Grey Pelt
  • ****
  • Posts: 2,698
  • Country: us
  • Floof-O-Meter: 121
  • Who lives in a portabella under a tree?
    • FantasyFungus
    • EnokiTheDryphon
    • Enoki_G
    • View Profile
    • The Realms of Yugure
Re: Resizing Particles?
« Reply #4 on: August 18, 2016, 08:04:16 pm »
I edited the fire particle's files and everything went fine.
How did you edit your files?

How odd! Well, here is the coding and how I edited it. I'm not too keen on working with coding, so I may 'ave totally messed it up when I tried to edit it.

Code: [Select]
particle_system Fire/Campfire
{
       material      Flare/Fire
       particle_width     50 <-- originally 20
       particle_height    50 <-- originally 20
       cull_each          false
       quota              50
       billboard_type     point


       // Area emitter
       emitter Point
       {
      angle                     20
           emission_rate             15
           time_to_live_min              1
           time_to_live_max              1
           direction                 0 1 0
           velocity_min              16
           velocity_max              24
   }   

   
// Area emitter
    emitter Box
    {
        angle           20
        emission_rate   25
        //time_to_live    1
           time_to_live_min              1
           time_to_live_max              1
        direction       0 1 0
        colour_range_start  1 1 0.4
        colour_range_end    1 0.2 0
           velocity_min              16
           velocity_max              24
        width           6
        height          6
        depth           1
    }


   affector Scaler
      {
      rate    -16
      }

}



particle_system Fire/Smoke
{
       material      SmokeMaterial
       particle_width     20
       particle_height    20
       cull_each          false
       quota              40
       billboard_type     point


// Area emitter
    emitter Box
       {
      angle                     28
           emission_rate             4
           time_to_live_min              6
           time_to_live_max              8
           direction                 0 1 0
           velocity_min              20
           velocity_max              24
        width           8
        height          8
        depth           4
   }   



   affector Scaler
      {
      rate    12
      }
    affector ColourFader
    {
        red -0.25
        green -0.25
        blue -0.25
  alpha -0.25
    }

}

And that's all I messed with the first time around, but it didn't work. I started changing other things to see if I was missing a key bit of coding, but nothing worked. Could it be that I tried making a whole different particle? I saved it as fireL.particle instead of just saving over the original because I wanted to keep that one f'er the normal campfire object.

Tmw you planned a ten minute nap but instead took a whole year.
☙Icon by dA JRProducts; Sig by PocketMutt❧

Offline magicfairy

  • Immortal Legend
  • *****
  • Posts: 5,649
  • Country: us
  • Floof-O-Meter: 55
    • View Profile
Re: Resizing Particles?
« Reply #5 on: August 18, 2016, 08:32:09 pm »
I edited the fire particle's files and everything went fine.
How did you edit your files?

How odd! Well, here is the coding and how I edited it. I'm not too keen on working with coding, so I may 'ave totally messed it up when I tried to edit it.

Code: [Select]
particle_system Fire/Campfire
{
       material      Flare/Fire
       particle_width     50 <-- originally 20
       particle_height    50 <-- originally 20
       cull_each          false
       quota              50
       billboard_type     point


       // Area emitter
       emitter Point
       {
      angle                     20
           emission_rate             15
           time_to_live_min              1
           time_to_live_max              1
           direction                 0 1 0
           velocity_min              16
           velocity_max              24
   }   

   
// Area emitter
    emitter Box
    {
        angle           20
        emission_rate   25
        //time_to_live    1
           time_to_live_min              1
           time_to_live_max              1
        direction       0 1 0
        colour_range_start  1 1 0.4
        colour_range_end    1 0.2 0
           velocity_min              16
           velocity_max              24
        width           6
        height          6
        depth           1
    }


   affector Scaler
      {
      rate    -16
      }

}



particle_system Fire/Smoke
{
       material      SmokeMaterial
       particle_width     20
       particle_height    20
       cull_each          false
       quota              40
       billboard_type     point


// Area emitter
    emitter Box
       {
      angle                     28
           emission_rate             4
           time_to_live_min              6
           time_to_live_max              8
           direction                 0 1 0
           velocity_min              20
           velocity_max              24
        width           8
        height          8
        depth           4
   }   



   affector Scaler
      {
      rate    12
      }
    affector ColourFader
    {
        red -0.25
        green -0.25
        blue -0.25
  alpha -0.25
    }

}

And that's all I messed with the first time around, but it didn't work. I started changing other things to see if I was missing a key bit of coding, but nothing worked. Could it be that I tried making a whole different particle? I saved it as fireL.particle instead of just saving over the original because I wanted to keep that one f'er the normal campfire object.

When did the game crash?
Did you still enter Fire/Campfire into the game as a particle template?
If you didn't change the particle template name (What comes right after particle_system on line 1) and put that changed one into the game it won't work, as two files are sharing the same name.
vanitas · he/they/it/fae

Offline Enoki

  • Herba Chronographus
  • Elder Grey Pelt
  • ****
  • Posts: 2,698
  • Country: us
  • Floof-O-Meter: 121
  • Who lives in a portabella under a tree?
    • FantasyFungus
    • EnokiTheDryphon
    • Enoki_G
    • View Profile
    • The Realms of Yugure
Re: Resizing Particles?
« Reply #6 on: August 18, 2016, 08:42:16 pm »
When did the game crash?
Did you still enter Fire/Campfire into the game as a particle template?
If you didn't change the particle template name (What comes right after particle_system on line 1) and put that changed one into the game it won't work, as two files are sharing the same name.
It crashes upon opening the game after I 'ave made the new particle file.

But OH! I never renamed the actual particle templates. After I changed the names on them, the game is now running again! Many thanks f'er that.

And it works! Hallelujah! :D Thank ye very much Green. I guess all I needed to do was rename the templates, lol! The simple things that I overlook can be made into a book.

Tmw you planned a ten minute nap but instead took a whole year.
☙Icon by dA JRProducts; Sig by PocketMutt❧

Offline magicfairy

  • Immortal Legend
  • *****
  • Posts: 5,649
  • Country: us
  • Floof-O-Meter: 55
    • View Profile
Re: Resizing Particles?
« Reply #7 on: August 18, 2016, 09:15:20 pm »
When did the game crash?
Did you still enter Fire/Campfire into the game as a particle template?
If you didn't change the particle template name (What comes right after particle_system on line 1) and put that changed one into the game it won't work, as two files are sharing the same name.
It crashes upon opening the game after I 'ave made the new particle file.

But OH! I never renamed the actual particle templates. After I changed the names on them, the game is now running again! Many thanks f'er that.

And it works! Hallelujah! :D Thank ye very much Green. I guess all I needed to do was rename the templates, lol! The simple things that I overlook can be made into a book.

Haha! You're welcome! xD
vanitas · he/they/it/fae

Offline Warriorstrike

  • . "The truth is often what we make of it; you heard what you wanted to hear, believed what you wanted to believe."
  • Ancient Silver Mane
  • *****
  • Posts: 4,221
  • Country: us
  • Floof-O-Meter: 346
  • . Remember… the Force will be with you. Always.
    • warriorstrike
    • warriorstrike
    • View Profile
    • My Tumblr
Re: Resizing Particles?
« Reply #8 on: August 19, 2016, 12:40:51 am »
I shall lock up your thread since it appears to have worked. Good luck with the bonfire!

If you define yourself by the power to take life, the desire to dominate, to possess… then you have nothing.