TPT Effects

  • jalfor
    18th Jul 2011 Member 0 Permalink
    Firstly, I'm not sure if this belongs in Development or Development Assistance.

    I am just wondering, what does TPT use to make effects such as fire/plasma/lava and all that stuff. Is it OpenGL shaders, is it something SDL has, use some other spazzed out way of making it, or is it done through just giving each square a "brightness" or something value which is increased each time there are more things are near.

    Yes, I could search around the TPT source but I find it hard to work out what is going on where and it would be a bit of an effort.

    EDIT: I did actually just have a look at the source and it seems to blend the pixels...so my question is now, does TPT use ANY shaders at all?
    Edited by jalfor, 2011-07-16 11:45:41
  • me4502
    18th Jul 2011 Member 0 Permalink
    @jalfor (View Post)
    No(I don't think)

    All it does is add extra pixels around the other ones to make a glow
    Edited by me4502, 2011-07-16 13:12:16
  • The-Fall
    18th Jul 2011 Member 0 Permalink
    We need to use shaders. the Game is capable.
  • vanquish349
    18th Jul 2011 Member 0 Permalink
    i think it uses opengl blend pixel
  • me4502
    18th Jul 2011 Member 0 Permalink
    @The-Fall (View Post)
    i agree with that, shaders would make it so much nicer
  • boxmein
    18th Jul 2011 Former Staff 0 Permalink
    It uses a blendpixel function that is coded into the source.