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

Visionaire SHADER ToolKit Demo

  • #10, by andy-rinaldi 12 years ago Zitieren
    Thanks to all!!!
  • #11, by ke4 11 years ago Zitieren
    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?
  • #12, by unreal 11 years ago Zitieren
    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.
  • #13, by afrlme 11 years ago Zitieren
    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
    
  • #14, by ke4 11 years ago Zitieren
    Thanks guys,

    My lake is alive now because of you.
    I wish i was that adventurous grin
  • #15, by Paupasia 11 years ago Zitieren
    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!
  • #16, by Lebostein 11 years ago Zitieren
    Thanks! It is a great mystery to me why the developers of Visionaire do not publish such demos.
  • #17, by marvel 11 years ago Zitieren
    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