Fisheye effect

  • #10, z ke4Friday, 19. June 2015, 14:32 hodinky 10 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.

    Zabiják klíčů

    810 Posts


  • #11, z afrlmeFriday, 19. June 2015, 14:36 hodinky 10 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.

    Imperátor

    7285 Posts

  • #12, z ke4Friday, 19. June 2015, 14:41 hodinky 10 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.

    Zabiják klíčů

    810 Posts

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

    Zabiják klíčů

    810 Posts

  • #14, z sebastianSaturday, 12. November 2016, 17:39 hodinky 8 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...

    Kapitán

    2346 Posts

  • #15, z afrlmeSaturday, 12. November 2016, 18:08 hodinky 8 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.

    Imperátor

    7285 Posts

  • #16, z ke4Saturday, 12. November 2016, 20:31 hodinky 8 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")
    shaderEffectParam("fisheye", "amount", .75)

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

    shaderRemoveEffect("fisheye")


    Zabiják klíčů

    810 Posts

  • #17, z sebastianSunday, 13. November 2016, 21:33 hodinky 8 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? 

    Kapitán

    2346 Posts

  • #18, z ke4Monday, 14. November 2016, 09:56 hodinky 8 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

    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...

    Zabiják klíčů

    810 Posts