Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Dynamic character's tint

  • #1, by ke4 11 years ago Zitieren
    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
  • #2, by sebastian 11 years ago Zitieren
    use a lightmap for the scene.
    glenfx did some tutorial about that:
    http://www2.visionaire2d.net/glenfx/
  • #3, by ke4 11 years ago Zitieren
    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?
  • #4, by afrlme 11 years ago Zitieren
    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.
  • #5, by sebastian 11 years ago Zitieren
    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.
  • #6, by ke4 11 years ago Zitieren
    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! :-)
  • #7, by afrlme 11 years ago Zitieren
    http://www.visionaire-studio.net/cms/visionaire4-english.html/ - Towards the bottom of the page. There's 2 links for each game.
  • #8, by ke4 11 years ago Zitieren
    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.