How to force sorting on particles (8 posts)

  • Profile picture of bigstink bigstink5p said 6 months, 1 week ago:

    Hey everyone, I am wondering if there is an easy way to force particles to sort themselves so that they render in proper order?

    I understand this would bomb any kind of interactive framerate, but for the time being that’s alright.

  • Profile picture of glaucomardano glaucomardano252p said 6 months, 1 week ago:

    setRandomAngle()

  • Profile picture of normen normen1271p said 6 months, 1 week ago:

    No theres no such option for the reason you state.

  • Profile picture of glaucomardano glaucomardano252p said 6 months, 1 week ago:

    Ah. I read that so fast xD .

  • Profile picture of Empire Phoenix Empire Phoenix156p said 6 months, 1 week ago:

    Do you need them sorted in relation to the world? then just use billboard quads, horrible performance, but sorting should go.

  • Profile picture of Momoko_Fan Momoko_Fan366p said 6 months, 1 week ago:

    Actually there was one or two revisions where I added sorting for particles, realized its too slow, then removed it.
    Perhaps you can find those revisions :D
    I am not sure if it will work with the current version of jME3 though ..

  • Profile picture of normen normen1271p said 6 months, 1 week ago:

    Well the new Influencer interface is for such stuff isn’t it?

  • Profile picture of Momoko_Fan Momoko_Fan366p said 6 months, 1 week ago:

    The influencer interface is just for spawning particles right now. If we add a new updateParticles(Particle[]) method then it could be used for sorting