DE EN FR ES IT CZ
Back Back to top

Shader Effect

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  • #1, by ke4 13 years ago Quote
    Hi,

    Can i use the shader effect only for the character?
    e.g. when is dark outside, change the lightness of the character.

    Thanks
  • New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  • #2, by afrlme 13 years ago Quote
    You can already do that with lightmaps or the CharacterTint data structure table which allows you to tint the character. Or do you mean in a more dynamic way where character lighting is affected based on characters position from a light source?

    The latter would probably be done via normal maps/depth maps which we currently don't support.

    I suppose you could use the shader spotlight effect to place multiple light sources around a room which will render the rest of the scene darker in places that the light does not extend which would also affect your character as he passes through light & darkness.

    I've not tried doing anything like that yet, but I assume it would probably look ok.
  • #3, by ke4 13 years ago Quote
    No, just simple non-dynamic effect, i've done shadows on the scene like PNG images with alpha, which affects the character. Where can i find options for those Tints in visionaire?
  • #4, by afrlme 13 years ago Quote
    http://wiki.visionaire-tracker.net/wiki/Data_Structure under Characters. There's no proper example though.


    “
    From the wiki:

    Color the character will be drawn with. If the most significant byte is not 0 then this color will be ignored (default) and the lightmap (if present) and scene brightness will be used for the tint of the character. Otherwise the three lower bytes are used for the tint the character will be drawn with. The least significant byte specifies red, then green and the third byte specifies blue. E.g. with 0xFF0000 the character would be drawn with a blue light.
    „


    Characters["character_name"].CharacterTint = 0xFF0000 -- blue tint
    

    ...tint & lightmaps affect the whole character.
  • #5, by ke4 13 years ago Quote
    Okay, thank you, i'll try it out.
    EDIT: Works nice :-)
  • #6, by afrlme 13 years ago Quote
    shame you can't apply rgba values (at least I don't think you can) as we would be able to control the opacity of the tint. Here's a link to a list of hex codes: http://www.nthelp.com/colorcodes.htm
  • #7, by ke4 13 years ago Quote
    But actually it looks really good, i used grey 424242 and it looks like the character is in dark. And white FFFFFF to take off the Tint.