How does GEL work? [Beta]

  • LiquidCaesium
    17th Apr 2012 Member 0 Permalink
    I'm just confused about the GEL. When it comes in contact with water, it becomes darker and it's tmp value increases, but I see no other difference. Also, what can it be used to?
  • EqualsThree
    17th Apr 2012 Member 0 Permalink
    GEL sticks to....stuff. Uhhh that's the only think i currently know about gel.

    EDIT: It also acts like liquid Sponge, it seems to absorb WATR. It seems that it absorbs WATR but doesn't release WTRV when heated up.
  • savask
    17th Apr 2012 Developer 0 Permalink
    Gel changes it's viscosity and heat capacity depending on concentration. For example, without water gel is a heat insulator, but if you add some water it will conduct heat.
  • LiquidCaesium
    17th Apr 2012 Member 0 Permalink
    Oh, I guess that's useful in some heat switches. How do I remove water from it?
  • savask
    17th Apr 2012 Developer 0 Permalink
    Sponge removes water from it but because there is a bug (sponge can move) you will get weird flying sponge. Gel doesn't dry out when being heated because it will be useless as an insulator then, so there is no really working way now. Maybe it will be changed, I'll think about that.
  • LiquidCaesium
    17th Apr 2012 Member 0 Permalink
    By the way, I think I COULD fix the bug with the sponges... just make an update_SPNG function that sets repeatedly it's vx and vy into 0.
  • savask
    17th Apr 2012 Developer 0 Permalink
    :/ Do you think I don't know how to fix it?
    The problem is that there are quite a lot of saves with sponge animation.
  • R3APER
    17th Apr 2012 Member 0 Permalink
    Hey savask thanks for coding GEL, but one last little request, could the color be changed to something more easy on the eye, perhaps a light green or blue of some sort? Thanks alot, it works almost exactly how I imagined it to. It's falling pattern is amazing, and it's heat properties are very interesting. The only reason I suggested a better starting color is because it would look a little more natural, and less of an eye sore after looking at it for a while. I made a beta page with some of the minor reactions for now, I'll post the link soon. Thanks again savask, it looks great!
  • LiquidCaesium
    17th Apr 2012 Member 0 Permalink
    Oh sure. I didn't take that into factor. The GEL sets the r>>8 vx and r>>8 vy at the end of update_GEL, so possibly set there that it doesn't do it to SPNG?

    This is how it's like now:

    parts[i].vx += dx; parts[r>>8].vx -= dx;
    parts[i].vx += dy; parts[r>>8].vy -= dy;


    Instead, we could change it to look like this:

    parts[i].vx += dx;
    if (parts[r>>8].type!=PT_SPNG) parts[r>>8].vx -= dx;
    parts[i].vy += dy;
    if (parts[r>>8].type!=PT_SPNG) parts[r>>8].vy -= dy;

  • savask
    17th Apr 2012 Developer 0 Permalink
    @R3APER (View Post)
    Heh, sorry to grieve you, but I even haven't read that your topic about aerogel :-P I saw one's topic about gelatin and then thought that it would be great to make a viscous liquid. As for color, I like orange, why it's bad? It makes gel somewhat related to sponge. Color isn't really important now, cause TPT has decorative layer.

    @LiquidCaesium
    It's sponge bug and it must be fixed.