[REL][CLIENT][EFFECT] Solar Flare

Discussion in 'Released Mods' started by killerkiwijuice, August 4, 2015.

  1. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I wanted to play around with the new effects including the new sun.pfx file, so I made this.

    • Corona rotates
    • 3D Solar flares added, rotate slowly
      • Randomized
      • there is a weird bug where the flares will be blue-green when the camera is zoomed out really far, and it seems to be random.
      • Another bug, the flares seem to disappear when you rotate around the system. I have absolutely no idea why( @bgolus ? Mesh lifetime is 100000) It can be seen in the second video.
    • Added small smoke particles to the edge of the star
    UPDATED:
    [​IMG]
    OLD:

    [​IMG]
    [​IMG]


    It's realeased on PAMM, but nothing is official ofc xD

    Any suggestions and tweaks are welcome as always!
    Last edited: August 4, 2015
  2. pieman90

    pieman90 Active Member

    Messages:
    142
    Likes Received:
    99
    Prudy, but could you make it so the flares can grow and shrink and have some disappear and reappear so it appears to be changing rather than stagnant. Solar prominences would also be cool, like below.[​IMG]
  3. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Those kinds of solar flares are basically impossible. I can make a looping flare like the picture, but... actually I might be able to make that with a few hax. I definitely can't make anything realistic like that though (there's not a super complex particle simulation in PA that you find in 3D rendering programs like Blender and Cinema 4D, for example, which would murder the GPU anyway)
    Last edited: August 4, 2015
  4. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    I changed some code to fix an issue with scaled effects disappearing when partially offscreen (mostly noticeable with planet scaled effects), but I think I introduced another bug with it.
    stuart98 and killerkiwijuice like this.
  5. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    darn bugs :mad:
  6. Engineer1234

    Engineer1234 Well-Known Member

    Messages:
    325
    Likes Received:
    291
    Did I just see a unit cannon in the asteroid belt :eek:
    #unitcannonconfirmed
    stuart98 likes this.
  7. Nicb1

    Nicb1 Post Master General

    Messages:
    1,010
    Likes Received:
    1,286
    Excellent work so far kiwi. Looking forward to seeing what the end result will be like :)
  8. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    Looked into this one. It's because it is random.

    You created a mesh particle emitter (with a custom mesh!), but you have to define textures for mesh particles differently than a normal particle emitter.

    You're setting the baseTexture, which is used for all other particle types, doesn't work on mesh particles. So the texture you're getting is almost literally a random texture from the game. (It's actually the last texture used by the rendering system set to the "Texture" shader parameter.)

    For a mesh particle you need to use a materialProperties block:
    Code:
                    "materialProperties": {
                        "Texture": "/pa/effects/textures/particles/flat.papa"
                    }
    doud, ace63 and killerkiwijuice like this.
  9. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Yup that works!

    Also, i changed the mesh for the looping-magnetic flare things. It's still not super realistic but it's so bright that you can't see the perfections in the effect.
    [​IMG]
  10. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Update:
    • Dynamic, randomized scale and size increase/decrease
      • The flares will increase and decrease in size randomly
    This is probably the final update because there's not much more to do haha
    cdrkf likes this.
  11. Zachattack525

    Zachattack525 New Member

    Messages:
    22
    Likes Received:
    2
    little suggestion i'd like to make: maybe make it so solar flares will disable some units and building on a random planet temporarily (like a solar flare ould in real life) , maybe as a little setting, so people who only want the detail only need the detail
  12. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Well there's a few reasons why I can't do that:
    1. It's impossible
    2. It would be very imbalanced
    3. This mod is a client mod and only affects the user with the mod installed. It sends no data to servers.
    But yeah it's a decent idea. Still would be imbalanced tho :)
    stuart98 likes this.
  13. Zachattack525

    Zachattack525 New Member

    Messages:
    22
    Likes Received:
    2
    eh, just a thought

Share This Page