Visionaire SHADER ToolKit Demo

  • #10, z andy-rinaldiFriday, 14. November 2014, 14:19 hodinky 10 years ago
    Thanks to all!!!

    Fanoušek fóra

    160 Posts


  • #11, z ke4Sunday, 24. May 2015, 15:58 hodinky 10 years ago
    Hi, I tried to use the shader effect just for object according to the Unreal's demo, but it's not working in my project. I don't understand to those scripts in the demo.

    Please, what is the most basic way/syntax to apply the effect on object?

    Zabiják klíčů

    810 Posts

  • #12, z unrealSunday, 24. May 2015, 16:25 hodinky 10 years ago
    First of all you need to be in Visionaire 4.1 or above.

    Copy the scripts "ShaderToolKit" and "ShaderExclude" (to exclude fx on the interface) scripts to your project and the effects that you wish to use (also make sure that the 'definition script' is turned ON in the properties of the scripts).

    Then change the last line of the script you want to use to the name of the object you want the effect on, for exemple in the 'Ripple2 FX' :
    'Objects.Heart.ShaderSet = 1'
    

    to something like this :
    'Objects.SOMETHINGLIKETHIS.ShaderSet = 1
    


    If you're adventurous, you can tweak the values of each FX in the ShaderToolKit script.

    Bažant

    66 Posts

  • #13, z afrlmeSunday, 24. May 2015, 16:28 hodinky 10 years ago
    It could be that the shader toolkit script included in his project file is no longer valid. Try replacing it with the one on the wiki.

    I created this little function. It only allows you to specify one shader object effect at a time though.

    function setObjectEffect(eff)
     shaderAddEffect(eff)
     shaderRemoveEffect(eff)
     shader_effects[eff].num.strength=1
     bind(eff, "time", field("shader_iTime"))
     shaderSetOptions({{shader = shader_effects[eff].num(), comp_dst=5, comp_src=4 }}, 1)
    end
    

    example of setting effect...
    setObjectEffect("ripple3")
    

    example of applying effect to an object...
    game.CurrentScene.SceneObjects["object_name"].ShaderSet = 1
    

    example of removing effect from object...
    game.CurrentScene.SceneObjects["object_name"].ShaderSet = 0
    

    Imperátor

    7285 Posts

  • #14, z ke4Sunday, 24. May 2015, 16:51 hodinky 10 years ago
    Thanks guys,

    My lake is alive now because of you.
    I wish i was that adventurous grin

    Zabiják klíčů

    810 Posts

  • #15, z PaupasiaTuesday, 06. October 2015, 13:39 hodinky 9 years ago
    Thank you so much for this very useful demo that allowed me to understand and see how the shader toolkit works! Now, changing some setting, I finally got my little lovely waves!

    Fanoušek fóra

    165 Posts

  • #16, z LebosteinTuesday, 06. October 2015, 19:25 hodinky 9 years ago
    Thanks! It is a great mystery to me why the developers of Visionaire do not publish such demos.

    Zabiják klíčů

    621 Posts

  • #17, z marvelTuesday, 06. October 2015, 21:52 hodinky 9 years ago
    It's just a matter of time and manpower. That's why we are more than happy to have the help of ambitious users like AFRLme. smile

    Zabiják klíčů

    599 Posts