Some help.

  • Millions
    5th Jan 2014 Member 0 Permalink

    What is the original fire glow graphics? like the i,red,green,blue,firea,firer,fireg,fireb colors..?

    Edited once by Millions. Last: 5th Jan 2014
  • Nobody905
    5th Jan 2014 Member 0 Permalink

    @Millions (View Post)

     I think it's actually C++... The Lua glow property isn't the same than LAVA's C++-made glow, as far as I know. So you might have to recreate it with custom graphics.

  • Millions
    5th Jan 2014 Member 0 Permalink

    Hmm, ok.

  • h4zardz1
    5th Jan 2014 Member 0 Permalink

    are phot glow same as lava/fire?

    are plsm glow same as lava/fire?

    are sprk glow same as lava/fire?

  • CeeJayBee
    5th Jan 2014 Member 0 Permalink

    @h4zardz1 (View Post)

    LAVA uses the Fire_Add graphics function (see above comment for fire)

     

    I think

     

    (Source: FeynmanLogomaker's Graphics Function Helper)

    Edited once by CeeJayBee. Last: 5th Jan 2014
  • boxmein
    5th Jan 2014 Former Staff 0 Permalink
    src/simulation/elements/FIRE.cpp://#TPT-Directive ElementHeader Element_FIRE static int graphics(GRAPHICS_FUNC_ARGS)
    int Element_FIRE::graphics(GRAPHICS_FUNC_ARGS)
    {
    int caddress = restrict_flt(restrict_flt((float)cpart->life, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3);
    *colr = (unsigned char)ren->flm_data[caddress];
    *colg = (unsigned char)ren->flm_data[caddress+1];
    *colb = (unsigned char)ren->flm_data[caddress+2];

    *firea = 255;
    *firer = *colr;
    *fireg = *colg;
    *fireb = *colb;

    *pixel_mode = PMODE_NONE; //Clear default, don't draw pixel
    *pixel_mode |= FIRE_ADD;
    //Returning 0 means dynamic, do not cache
    return 0;
    }