Menu
Login
Language
DE EN FR ES IT CZ

Search Result

  • RE: Torch effect like in Lone Survivor?

    You can do it with a Shader, I failed dismally but Simon put me right:local name = "vignette"shader_effects[name] = { shader = Shaders.vignette.Compiled }shaderAddEffect(name)shader_effects[name].num.u_resolution = {1920,1080}shader_effects[name].num.vPos = {1920/2,1080/2}varying vec2 uv;uniform sampler2D texel;uniform vec2 u_resolution;uniform vec2 vPos;void main (){  vec4 color = texture2D(texel, uv);  vec2 position = uv - vec2(0.5);             float dist = length(position * vec2(u_resolution.x/u_resolution.y, 1.0));  float radius = 0.5;  float softness = 0.09;  float vignette = smoothstep(radius, radius - softness, dist);  color.rgb = color.rgb - (1.0 - vignette);  gl_FragColor = color;}

    by Nigec, 7 years ago

    4
    0
    Nigec 7 years ago
  • RE: Torch effect like in Lone Survivor?

    The professional way would be a shader, but I have no idea how to do that, maybe look into vignetting?The age old  way is and image with a transparent dot in the center twice the size of the stage as a cursor or following overlay

    by Nigec, 7 years ago

    4
    0
    Nigec 7 years ago
  • RE: [Solved] Shaders (again) in VS5

    Oh great, yes it works, thanks so much!!!So to summarize for future people who would be interested:1 - Use the latest script availableGet it here: https://www.visionaire-studio.com/luadocs/#shadertoolkit(download shaderscript.lua, open it and paste the content in a new Definition script)2 - Make sure you use the correct syntax (check the examples in the script, the syntax might differ from previous versions)Examples:-- shaderBlur(radius, delay)-- shaderSaturation(factor, delay)-- shaderLightness(offset, delay)-- shaderContrast(contrast, delay)3 - Use this script to activate a premade fullscreen shader:local name = "ShaderName"shaderAddEffect(name)shader_effects[ name].num.speed = 0.2bind(name, "time", field("shader_iTime"))(where you have to replace ShaderName by one of these:warp1tv1ripple1*ripple2*asciiedgeglowchromaripple3warp2ripple4pearlshighlightfourbittv2tv3tv4)* Might be brokenAnd enjoy the result!

    by Simon_ASA, 7 years ago

    8
    0
    Simon_ASA 7 years ago
  • RE: [Solved] Shaders (again) in VS5

    And also how does it work now to use the premade shaders (tv1, tv2, etc)?I was just trying to use the new script provided by Simon:-- using as fullscreen effectlocal name = "ShaderName"shader_effects[name] = { shader = Shaders.ShaderName.Compiled }shaderAddEffect(name)shader_effects[ name].num.speed = 0.2 bind(name, "time", field("shader_iTime"))I tried by replacing "ShaderName" with "tv1" for example.However it doesn't seem to do anything.  I saw others threads about this, but they don't seem to have come with a solution. Any ideas?delete the shader_effects[name] = { shader = Shaders.ShaderName.Compiled } line. & replace "ShaderName" in the local name = "ShaderName" line with the name of the shader effect. tv1, tv2, etc.Quick note: I think ripple1 & ripple2 are broken. I was trying to get them to work the other day & ripple1 was doing nothing - but returned an error when I tried including it as a custom shader script (something to do with uniforms) & ripple2 was masking out most of the image/animation it was applied to.

    by afrlme, 7 years ago

    8
    0
    afrlme 7 years ago
  • RE: [Solved] Shaders (again) in VS5

    And also how does it work now to use the premade shaders (tv1, tv2, etc)?I was just trying to use the new script provided by Simon:-- using as fullscreen effectlocal name = "ShaderName"shader_effects[name] = { shader = Shaders.ShaderName.Compiled }shaderAddEffect(name)shader_effects[ name].num.speed = 0.2 bind(name, "time", field("shader_iTime"))I tried by replacing "ShaderName" with "tv1" for example.However it doesn't seem to do anything.  I saw others threads about this, but they don't seem to have come with a solution. Any ideas?

    by Simon_ASA, 7 years ago

    8
    0
    Simon_ASA 7 years ago
  • RE: [Solved] Shaders (again) in VS5

    Mmmh the log is empty, strange. I've checked the examples of Simon and either I don't understand, either it's as usual like I did before. Here 2 screenshots of my shaders settings:The main script (latest version)https://zupimages.net/up/19/05/lrmg.jpgAnd the shaders that I try to activatehttps://zupimages.net/up/19/05/7zht.jpgAnd in the game nothing changes, there are no shader effects whatever the values I try in the shaders.Usually it used to work fine, I have been using the shaders for a while (since Catyph) and experimented many different things.I must be missing something....I'll probably need to read furthermore the new examples and changes explained by Simon, but even though if the old version doesn't work anymore it should be said in the log, no?

    by Simon_ASA, 7 years ago

    8
    0
    Simon_ASA 7 years ago
  • RE: [Solved] Shaders (again) in VS5

    it's possible that Simon changed how it worked somehow? check the examples in the commented section near the top of the shader toolkit script.also, any errors mentioned in the log?

    by afrlme, 7 years ago

    8
    0
    afrlme 7 years ago
  • RE: [Solved] Shaders (again) in VS5

    Thanks for the quick reply! But that is the version I already tried. As written above:I have updated the script with what is (I think) the latest shader toolkit(script version 0.96 update 28/9/18 lua 5.3)So I was up to date.Mmh strange, I wonder what's wrong in my project.Any other idea why an old project would have the shaders to stop working?(when I say "old" it is Visionaire 5, but one of the very first versions)

    by Simon_ASA, 7 years ago

    8
    0
    Simon_ASA 7 years ago
  • RE: [Solved] Shaders (again) in VS5

    A'llo mate,This is the latest version of the shader toolkit: [url=http://www.visionaire-studio.com/luadocs/downloads/shaderscript11.lua]here[/url].The new shaders section is for people to write their own custom shaders, if they want/know how to.

    by afrlme, 7 years ago

    8
    0
    afrlme 7 years ago
  • [Solved] Shaders (again) in VS5

    Hello,Congrats for all the great updates in VS5!I had lost track of the changes during the last years and when I open my older projects it would seem that the shaders are not working anymore. I have updated the script with what is (I think) the latest shader toolkit (script version 0.96 update 28/9/18 lua 5.3)And I use some very simple shaders such asshaderNoise(0.05, 1, 0)However it doesn't work, nothing changes in the game. Also I see a new Shaders menu but I don't understand anything lolCould anyone help me? Thanks in advance

    by Simon_ASA, 7 years ago

    8
    0
    Simon_ASA 7 years ago