License from €75 Log in
DE EN FR ES IT CZ

Visionaire SHADER ToolKit Demo

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

  1. · 13 years ago
    Thanks to all!!!
  2. · 12 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?
  3. · 12 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.
  4. · 12 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
    
  5. · 12 years ago
    Thanks guys,

    My lake is alive now because of you.
    I wish i was that adventurous grin
  6. · 12 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!
  7. · 12 years ago
    Thanks! It is a great mystery to me why the developers of Visionaire do not publish such demos.
  8. · 12 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

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?