More questions about shaders

  • #1, by Simon_ASATuesday, 03. November 2015, 16:26 5 years ago
    Hi, I know there has been already a lot of questions about Shaders, but they are great to use and I would like to know more. I hope it wasn't asked already, I didn't find anything about these:

    1 - is it possible to change the strengh of an effect such as tv3 or tv4? I tried using several scripts, but changing the strengh parameter didn't work. Default is 1, and if I set a lower value it doesn't change anything.

    2 - I was wondering if it would be possible to use a shader inside a self-made limited area (an object area or anything else)? For example with a water effect, is it possible to delimitate water in a background picture, and apply the shader only in this area? ... without using a picture of the water with transparency (png or webp)

    Thank you

    Great Poster

    321 Posts


  • #2, by afrlmeTuesday, 03. November 2015, 17:24 5 years ago
    It is possible to apply a shader effect to a scene object, however most of the effects don't look very good at the minute. The ripple effects work quite well on scene objects though.

    Check out this template provided by Unreal. It shows the various shader effects applied to scene objects & possibly some to the screen as well (can't remember exactly what it showed off the top of my head).

    As for the effects in general... no currently you can't modify them. Simon plans on creating parameters for them in a future version of the shader toolkit script so that people will be able to tweak various settings for them. The only current method would involve you having to edit the shader toolkit script itself, which requires an understanding of both Lua script & GLSL (shader language).

    Hmm in regards to 2: are you talking about specifying a specific area in the scene that applies an effect to anything that enters it? I assume it would be possible, but what I wrote in the paragraph above still applies.

    Imperator

    6842 Posts

  • #3, by Simon_ASATuesday, 03. November 2015, 18:55 5 years ago
    Thanks a lot Lee,

    The only current method would involve you having to edit the shader toolkit script itself

    Hmm yes, I had a look and it's not for me! ^^

    Hmm in regards to 2: are you talking about specifying a specific area in the scene that applies an effect to anything that enters it?

    I just want to add waves on water, without separating the water itself in another picture. Until now I am preparing a PNG with transparency of the water, on which I apply the effect. It takes time and memory and creating a kind of "mask" manually in Visionaire would be much better.

    By the way, do the shaders apply to videos too? I have not been able to tell exactly, but it would be great.

    Great Poster

    321 Posts

  • #4, by afrlmeTuesday, 03. November 2015, 19:56 5 years ago
    Not currently & I'm not sure that would even be possible? then again I'm not all that savvy on the shader, so who am I to say that it can't be done! wink

    Ok so let me get this straight. You have a static image of water that you don't want to manipulate & you want to layer some waves on top? I guess simplest thing is what you are currently doing... create some white / noise lines on a canvas with a transparent background. Add to VS as an object above the water & then apply one of the ripple shader effects to the object in question. There are currently 4 ripple effects available & you could even switch between them randomly using a looped action block if you liked.

    Imperator

    6842 Posts

  • #5, by SimonSTuesday, 03. November 2015, 23:42 5 years ago
    I will add more params to the script in the future, but that requires some simple access methods, they will take time. Shaders are on a per image basis, so no masks and such yet. Videos are affected, but you will see that the effects do not update.

    Thread Captain

    1369 Posts

  • #6, by Simon_ASAWednesday, 04. November 2015, 10:45 5 years ago
    Ah, indeed it seemed that videos were somehow affected.
    Even if the effects do not update, it is a good thing that they don't simply disapear during videos (useful in my case).

    No problem for the masks, that's what I thought. If it is possible in the future, it would be very useful. That's one of the rare features that are missing for a Myst-like (and moreover 360 panoramic views).

    Thanks a lot Simon and Lee!

    Great Poster

    321 Posts

Write post