R-T-B / Kopernicus

Kopernicus is a mod for Kerbal Space Program which allows users to replace the planetary system used by the game.
GNU Lesser General Public License v3.0
32 stars 11 forks source link

How does the new particle node work? #30

Open RJVB09 opened 3 years ago

RJVB09 commented 3 years ago

I don't know if its ok to ask here but it seems like the old particle node doesn't work. So i'd like to know what changed or if its even possible to add them. `Particles { Value { target = Sun texture = Fruits/PluginData/Tomato_particle.dds

  minEmission = 1.0
  maxEmission = 4.0
  sizeMin = 20.0
  sizeMax = 45.0
  lifespanMin = 500
  lifespanMax = 1250

  speedScale = -0.0000001
  rate = -0.05
  collide = false
  randVelocity = 0.05, 0.05, 0.05
  force = 0,0 0

  Colors
  {
    color1 = 0.9,0.3,0.4,1
    color2 = 0.8,0.6,0.2,1
    color3 = 1,0.7,0.9,1
    color4 = 0.7,0.7,0.7,1
    color5 = 0.6,0.2,0.8,1
  }
}

}`

R-T-B commented 3 years ago

It should work just like the old one. I'll have to ask the commit provider, as we accepted the particle code from an outside source. Stand by and I'll get back to you.

And yes, it's fine to ask that here. I just am slow to respond some days, lol.

democat3457 commented 3 years ago

mesh is now emitMesh, min and maxEmission are integers, shadowCast and shadowEffect are new and required booleans (whether the particles should cast/affect shadows, respectively).

R-T-B commented 3 years ago

mesh is now emitMesh, min and maxEmission are integers, shadowCast and shadowEffect are new and required booleans (whether the particles should cast/affect shadows, respectively).

Thanks for that. I assume the wiki is woefully out of date on this. Do you have edit rights to it? It confuses me frankly, but I can get you them.

democat3457 commented 3 years ago

I just edited it on the beta branch and I'm awaiting DeltaDizzy's approval before making a PR to the official repo.

RJVB09 commented 3 years ago

Thanks guys

R-T-B commented 3 years ago

You have reopened this issue, do you need something more than what was provided above?

RJVB09 commented 3 years ago

Whoops sorry, forgot to post it cuz i had to go :p

I have tried what was said above but i couldn't get it to work. I could see the Particle "node" in Kittopia however when i clicked on it there was nothing except a + which i couldn't press. image

R-T-B commented 3 years ago

pinging @democat3457 for help.

democat3457 commented 3 years ago

hmm

RJVB09 commented 3 years ago

hmm

found anything?

democat3457 commented 3 years ago

All I can think of is whether the target is a valid body, but beyond that, I can't think of anything.

R-T-B commented 3 years ago

Sorry we can't be of more help, I am wholly unfamiliar with this section of the code but I'll leave this open as a reminder to document and get familiar with it. @democat3457, would the particle changes you committed have any effect on this at all? Because they just got added in the latest bleeding edge. Maybe try that?

democat3457 commented 3 years ago

Possibly, but I'm not sure if there's something else going on here. The particle changes really only affected lifetimeColors, which I doubt has an impact on the particles.