Dynamic character's tint

  • #1, by ke4Tuesday, 30. June 2015, 10:12 9 years ago
    Hi,

    I have one dark scene and i need to set the character darker. The perfect way to do this is to set some grey tint for the character. But there is more light in the foreground then in the background in the scene. Is there a simple way to change the tint dynamically depending on how far the character is? The only way i can think of is to get the character destination and set "1080" elseif to set different grey tint in a loop. grin
    I'm using some shadows alpha images, but the effect isn't strong enough.

    Thanks for help

    Key Killer

    810 Posts


  • #2, by sebastianTuesday, 30. June 2015, 12:49 9 years ago
    use a lightmap for the scene.
    glenfx did some tutorial about that:
    http://www2.visionaire2d.net/glenfx/

    Thread Captain

    2346 Posts

  • #3, by ke4Tuesday, 30. June 2015, 13:26 9 years ago
    Thanks.. cool it seems to be much simpler solution razz

    However i understand that as some alpha image which affects only the character, but no matter what image i use ( even a blank image ) for the lightmap the character is just completely black siluet. What am i missing?

    Key Killer

    810 Posts

  • #4, by afrlmeTuesday, 30. June 2015, 13:58 9 years ago
    I'm not too savvy on how light maps actually work, but I think you have to fill the entire image with a single tint (this will be the default tint you want to use for your character - I think) & then you apply other tints above the background layer. You need to take into consideration that the tint of the character is based on the position of the character which as you know is based on the character animation center you set for each animation.

    Check out some of the games from the last VS competition, as some of them used light maps.

    P.S: you can scale down the light map image to 25% of the actual scene background resolution as the engine will auto-scale it back up to the same size as the scene.

    Imperator

    7278 Posts

  • #5, by sebastianTuesday, 30. June 2015, 18:13 9 years ago
    i think the color of the lightmap gets multiplied on the character (?)
    A white lightmap will have no effect.
    Just play a bit with colors and have a look how they change the tint ingame.

    Thread Captain

    2346 Posts

  • #6, by ke4Tuesday, 30. June 2015, 19:13 9 years ago
    Where can i download the .ved files of those games?

    Btw thanks for bringing this up i somehow missed the competition... i've just played the Locked Out game and it was really funny! :-)

    Key Killer

    810 Posts

  • #7, by afrlmeTuesday, 30. June 2015, 19:34 9 years ago
    http://www.visionaire-studio.net/cms/visionaire4-english.html/ - Towards the bottom of the page. There's 2 links for each game.

    Imperator

    7278 Posts

  • #8, by ke4Tuesday, 30. June 2015, 20:12 9 years ago
    Thanks.
    So i figured it out with examples from the .ved files. There are probably actually issues with transparent images. It just needs one solid color for the primary tint and then darker or lighter areas.

    Key Killer

    810 Posts