Search Result

  • RE: Visionaire Studio 5 Tutorials - German + English(from EP. 20)

    meinst du eigene shader kreieren oder das was in dem shadertoolkid genutzt wird? 

    by sebastian, 8 years ago

    132
    0
    sebastian 8 years ago
  • Exclude shader effects for specific interface

    i know that i can exclude shader effects for mouse cursors and interfaces. in my game i would like to exclude only a specific interface (the inventory), but not another secondary interface (which is a smartphone). is this somehow possible? thanks in advance :-)constantin

    by constantin, 8 years ago

    2
    0
    constantin 8 years ago
  • RE: [SOLVED] Rotate Animation Script question

    Yes, exactly, and then this value is passed to shader.

    by stroncis, 8 years ago

    27
    0
    stroncis 8 years ago
  • RE: [SOLVED] Rotate Animation Script question

    First, to clarify things up - this is shader based fx. Some options can be set to negative values, that comes very true for offset. Pass mouse coordinates to it, making from -5.0 to +5.0 with 0.0 at the screen center and you will control direction of wind with mouse.Speed - obviousOffset - is more like wind direction strength in this case, object bending angle.Strength - wind strengthDirection - root positionFunc - this is the vibration pattern, which can be programmed. garphics.noise and garphics.noise2 are perlin noises and thus are just noises, you can't make them to behave in some intricate manner. If you want something in particular like wind gusts with specific vibration patterns, then there's math involved and some external input, which controls wind strength and this funcion in cooperation.

    by stroncis, 8 years ago

    27
    0
    stroncis 8 years ago
  • RE: Porting GLSL to HLSL causes error in various occasions [bug]

    First one I'll fix when I have time, but you really shouldn't branch like that. Better keep branching out of the shader.Second is wrong for most shader languages, it's only for convenience.

    by SimonS, 8 years ago

    3
    0
    SimonS 8 years ago
  • JSON(spine) Character Center/scrolling problem.

    Hello Visionaire community, ive have been expirementing with JSON files via spine lately, i've created a nice character animation and its working fine, except 1 little problem.I cant set the characters Center on my character, and its bugging on my scrollable scenes, The character just walks right of the POV and the scrollable camera cant keep up, i really dont know if the 'character center' is the cause of that, but i need a fix for it. (with png animations its working fine)And something else, i wrote a shader script that makes a specific light Follow my characcter, its working great, but when the time comes for the scene to scroll, the character just walks of screen again and the shader is staying behind him.i think that the answer for my first question will automaticly answer the second too.Thank you in advance.

    by Nikos Ewto, 8 years ago

    2
    0
    Nikos Ewto 8 years ago
  • Passing _t_texture to shader doesn't work

    I get flat black instead of texture. I have suspicions, that's something to do with uv, but it's just wild guess. Lua code (i disable shaders by setting *.ShaderSet to "-1" and unregistering event):local shaderHP = shaderCompile(Shaders.high_pass.Compiled) function shaderHPLoop()  graphics.shaderUniform(shaderHP,"_t_mountains", "vispath:mountains.png")end function highPassShader()  Scenes["001-001_scene"].ShaderSet = shaderHP  Objects.kittan.ShaderSet = shaderHP  registerEventHandler("mainLoop", "shaderHPLoop")endAnd fragment shader (i ommited everything, that's irrelevant):varying vec2 uvVarying;uniform sampler2D _t_mountains;void main (){vec4 mountains = texture2D (_t_mountains, uvVarying); gl_FragColor = vec4(mountains.r,.3,.4, 1.0); // f.e. red channel is flat black}VS5.b1188, texture file path is correct (mentioning, because no error like "nil" is generated if path is not correct, so easy to make a mistake here)

    by stroncis, 8 years ago

    2
    0
    stroncis 8 years ago
  • RE: Greyscale Shader

    Is there a shader to show the game in greyscale colors? grinshaderSaturation(0, 1000)

    by joemid, 8 years ago

    2
    0
    joemid 8 years ago
  • Greyscale Shader

    Is there a shader to show the game in greyscale colors? :D

    by marvel, 8 years ago

    2
    0
    marvel 8 years ago
  • RE: Fade to Black function

    As a note, be careful with the fade in fade out function. For some reason if you set it too long, Visionaire does not like it and causes the game to crash if the player left clicks while it happens. Had this problem for Paradigm. For any fades that went longer than 4 seconds, I just used a black image. Honestly doesn't take up much more resources since its not on the screen constantly and a single black image is pretty small in terms of file size. You could also set it as an interface so you don't have to put black images for each scene. Exactly! haha... I thought I'd mentioned using an interface, but I must have forgot to type it up or removed it from one of my replies for some reason. Oh well...Interface would be fine Thomas, just fade interface in/out as needed.Anyway, as you said, Visionaire should be as easy to use as possible & also as flexible as it can possibly be without having to resort to scripting. For me, the shader stuff should all be internally added to the engine source code, rather than being a script we have to add, then Simon would hopefully be able to create various action parts with tweakable parameters for various shader effects that can be applied to scene, scene objects or characters. Check out Construct 2 game engine, as they use a similar action part system to VS, but already have premade action parts for shaders & sound effect modules. If that could be sorted out along with the damn mouse cursor thing I asked for & some reorganizing of some of the current form layouts of the editor then VS would be near perfect. ;)

    by afrlme, 8 years ago

    24
    0
    afrlme 8 years ago