Fisheye effect

  • #10, by ke4Friday, 19. June 2015, 14:32 5 years ago
    Yeah.. great grin

    This is really strange, is there a reason why the exact same image has different colors? One is from the scene, the second is in the interface.
    It doesn't make sense to me.

    Key Killer

    810 Posts


  • #11, by afrlmeFriday, 19. June 2015, 14:36 5 years ago
    Strange. Did you set an opacity value or use different settings for the image in your image editor? It should be whatever color it is supposed to be.

    Imperator

    6842 Posts

  • #12, by ke4Friday, 19. June 2015, 14:41 5 years ago
    The picture has some lower opacity for the box, but it's the same rendered picture i didn't do anything with that in visionaire.

    Key Killer

    810 Posts

  • #13, by ke4Friday, 19. June 2015, 15:38 5 years ago
    ..I've rendered the animation with less opacity value and it looks ok now.

    Key Killer

    810 Posts

  • #14, by sebastianSaturday, 12. November 2016, 17:39 4 years ago
    could someone make it more clear on where to add what script to get this shader to work?
    Im totally confused where to put which script and how to start and end a shadereffect...

    Thread Captain

    2337 Posts

  • #15, by afrlmeSaturday, 12. November 2016, 18:08 4 years ago
    1. you need the shader tookit script added to your script section as definition.

    2. copy/paste the script on the first page into an execute a script action when you want to activate it I guess.

    P.S: I think the other little code block Simon provided is so you can adjust the strenght or turn it off, etc.

    Imperator

    6842 Posts

  • #16, by ke4Saturday, 12. November 2016, 20:31 4 years ago
    I've put the the Simon's script as definiton script.

    Then at the beginning of the scene where i want this effect i'm executing a script.

    shaderAddEffect("fisheye")
    1
    shaderEffectParam("fisheye", "amount", .75)
    1

    The second thing is for adjusting the strenght of the effect. And on leaving the scene.

    shaderRemoveEffect("fisheye")
    1


    Key Killer

    810 Posts

  • #17, by sebastianSunday, 13. November 2016, 21:33 4 years ago
    thanks guys. 
    Beside the fisheye I saw a water reflection shader here in the forum which I could also successfully add. But it gets Used on the whole screen. What needs to be done to apply a shader only to one object? 

    Thread Captain

    2337 Posts

  • #18, by ke4Monday, 14. November 2016, 09:56 4 years ago
    I don't really understand how it works with objects.
    If you want to use shader effect to some object, you can use this.

    setObjectEffect("ripple3")
    Objects.OBJ_NAME.ShaderSet = 1
    1
    2

    But i think you can use it only to one object at a time.

    Check out this thread, Unreal made a pretty demo on using shaders to objects.

    http://www.visionaire-studio.net/forum/thread/visionaire-sha...

    Key Killer

    810 Posts

Write post