Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

glareFX Dirt Lens Effect (Battlefield 3 like)

Discussion in 'Assets and Asset Store' started by reddotgames, Nov 26, 2012.

  1. Zozo2099

    Zozo2099

    Joined:
    Jul 15, 2012
    Posts:
    478
    Please can I know if it is compatible with Unity 4?
     
  2. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    YES
     
  3. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
  4. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    It would be very nice if there was a distortion value to add to the lens textures,so everything behind it should be distorted.
    By this feature it would be even better than the one in the BF3 :D
     
  5. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Hmm and where you would use this shader? Under water? ;)
     
  6. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    When it is rainy and there are lots of lights out there,the distortion should be only where the dirt parts of textures are,not everything in the screen.
     
  7. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Yes its indeed nice idea. I will work on it for next update.
     
  8. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
  9. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    We are more than 30 guys working on a game and we bought this effect not only because it's nice but also to save our time.
    In the next 1 or 2 months we will show our game.
    I really recommend this.
     
  10. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Thanks! Good luck with your project. And please write review on Asset Store :)
     
  11. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,045
    Anyone tested this on mobile?
     
  12. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    If someone will and performance will be not enough - let me know here, I will add shader special for mobile use.
     
  13. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Upcoming update :
    - starburst mix effect
    - halo from texture
     
  14. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    Didn't try on real mobile yet but in a mobile project I had about 2100 fps in a scene and after adding the cheap version of the effect my fps drops to 1500-1600 and this means it won't be good on cheap mobile devices.
    I tried lowering the texture resolution and the fps raised a little but not much.

    And I found a very big problem.
    This is working on Unity 4 very well but after enabling dx11 the screens goes pink and it's really bad for my projects as all of them have the option to enable dx11.
    As this is a modern effect it should work with dx11.

    Oh and just now I saw you asked me to write a comment on the assets store,sorry about that and I will send a comment very soon.
     
  15. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Did you try lower blur parameter? Just use 1.

    And I will look into Unity 4 and DX11 problem closer - thanks for tip!
     
  16. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    Even with lower blur parameter it's heavy for older devices.
    I think another shader without some parameters can make it even better for mobiles.
    For example right now it's getting the color of environment and this needs some processing but if you use a solid color for everywhere it can become more optimize for mobiles.

    Waiting for new features.
    Thanks
     
  17. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    OK I will make another more simple shader - and than maybe you can use it better in low mobile devices.
     
  18. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Got it working on DX11 - submitting new 1.3 version right now :)

    Change log :

    1.3
    Unity4 DX11 support
    Added Mobile version of effect
     
    Last edited: Mar 7, 2013
  19. Acenth

    Acenth

    Joined:
    Aug 14, 2012
    Posts:
    42
    It would be awesome if there was a demo webplayer that shows off the shader in daytime. I'm probably going to buy it anyways, but it'd be nice to see how well it works.
     
  20. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    This update is really good,I'll change my comment as soon as I can.
    @Acenth,It is just working very nice in daytime as we are using it,and be sure if our project wasn't a secret I could just show you screenshots and even videos,but it's a real big indie project with more than 100K $ budget(many guys here are working for no money) and a production of 1.5 year and GlareFX is one of the best effects we have.
     
    Last edited: Mar 14, 2013
  21. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    I will post some screenshot of using this effect in daylight. Mean time read Hotsun comment - work good in daylight - all depend on your settings (you can adjust threshold of separating dark from light)

    Thats great! Best recommendation :)
    Will be great when you will find time to update comment
     
  22. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    439
    Can This Effect Work With The Indie Version Of Unity (Free Version) Or Is This A Post Processing Effect? (Unity Pro)?
     
  23. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Yes its post process effect so will work only on Unity Pro
     
  24. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    The mobile version just needed 0.01 Millisecond and is really optimized but after testing on Xperia Z (Adreno 320 GPU)it seems that it's not working properly,one part of my view is kind of tiling to whole screen.
    Am I doing something wrong you think???
    And one question,The mobile version is not using blur technique,so why the script still needs it?
    $Glare_FX_Mobile_Blur.jpg
    If you can't see the image use this link:
    http://s1.picofile.com/file/7721589137/Glare_FX_Mobile_Blur.jpg

    Still waiting for this nice update.

    Oh,and as you answered my comment on Assets store I didn't change it.


    Big THANKS for fast and good support.
     
    Last edited: Apr 10, 2013
  25. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    1) Can you send me screenshot ? Maybe Xperia Z need uv flip different from iOS.
    2) Mobile version use blur one time only so you need this shader there.
    3) Update is on the way ASAP
    4) But you dont give back 1 star that you take for dx11 :)
    5) My pleasure :)
     
  26. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Starburst (rotating when to camera move) in action :

    $2013-04-11 15_27_32-Unity - SampleScene.unity - proj - PC and Mac Standalone_.png
     
    Last edited: Apr 11, 2013
  27. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Version 1.4 submitted to Asset Store

    - Added StarBurst Diffraction effect (also for DX11)
    - Smarter demo scene
     
  28. Soumya

    Soumya

    Joined:
    Jan 14, 2013
    Posts:
    8
    Why dont you add a free version for kids like me who have no money :-(

    Btw epic stuff!
     
  29. Logistic-Win

    Logistic-Win

    Joined:
    Apr 4, 2009
    Posts:
    107
    I just bought this and added to our game... everything looks great in the Unity Editor and Game windows... but when I run on iPhone... the whole screen is a solid pink. I am using the Cheap Mobile version... any idea's anyone?
     
  30. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Hello, What iphone are you using? You dont have disabled opengles20? If you will not find nothing you will have to wait until next week for me to look at it, cause Im out of office now. Hope this will not affect your work so much.
     
  31. Logistic-Win

    Logistic-Win

    Joined:
    Apr 4, 2009
    Posts:
    107
    iPhone 5. OpenGL 2.0 is not disabled. Hope we can get this working.
     
  32. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    Hi,
    Sorry because of very late answering,I was at the studio for one week and even slept there these nights and didn't have even one minute to think about anything else.
    Anyway here is the screenshot:
    $GlareFX_mobile_Bug.jpg
    If you can't see the shot use this link:
    http://s4.picofile.com/file/7732826020/GlareFX_mobile_Bug.jpg
     
  33. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Sorry I was away for one week. Now I'm back and will answer all questions :)
     
  34. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    This won't be a bad tip for users:
    You can use the starburst textures as lens dirt one so you can achieve a different effect and if you can make your own textures suitable for your games it will be the best.

    @reddotgames,
    I also changed my comment and rate to 5 stars.

    Can't wait to see halo from texture in the next update,our artists made some halo textures today and they are waiting for this feature like me.
     
    Last edited: Apr 24, 2013
  35. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Finally I got some time to help you with it. I send you email :)

    I dont know really what to make here. I dont have any Sony device to test it on ... Any ideas? I can change something and send you shader to test but from where to start....
     
    Last edited: Apr 25, 2013
  36. Hotsun

    Hotsun

    Joined:
    Aug 11, 2010
    Posts:
    121
    Your great support is even worth more than the shaders themselves.
    I will search for some instructions about Adreno GPUs and will send you information if I found anything useful.
     
  37. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Version 1.5 submitted to Asset Store

    Whats new?
    - Optimization of effect scripts (get rid of composition shader in all effects)
     
  38. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Hotsun version 1.6 will have fixed Mobile Shader - please check it out when will go out in few days - I think now will work good at Adreno GPU also.
     
  39. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Version 1.6 submitted to Asset Store

    All shaders now work on OpenGL properly
    Mobile Shader optimized (its way faster that it was in 1.5) and finally working proper on iOS (thanks HansBernd :)

    Hotsun be sure to check it out and write your feedback :) Thanks!
     
    Last edited: Jun 8, 2013
  40. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Anyone checked new mobile shader?
     
  41. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Just purchased, started a new empty project and imported the whole package - using the sample scene provided in the package. Getting just a white sphere. No effect at all on desktop/editor or android.
    After importing the package it did complain about "npot-RT are not supported or RT are disabled completely"
    Running Unity 4.1.5f1 basic version.
    Any ideas?
     
    Last edited: Jul 2, 2013
  42. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    It need pro version - its postprocess with RT which Basic Version do not support.
    I dont know why Unity did not put it in description.

    You need to make refund I guess.
     
  43. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Ah no problem, I sent them a mail.
    Yes might be a good idea getting that info into the description, guess "post-process" should have caught my attention earlier... Oh well live and learn. :)
     
  44. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Done :)
     
  45. aidengaming123

    aidengaming123

    Joined:
    Apr 19, 2013
    Posts:
    55
    How exactly do you turn off AA?
    Edit: Nevermind lol
     
    Last edited: Jul 10, 2013
  46. kurylo3d

    kurylo3d

    Joined:
    Nov 7, 2009
    Posts:
    1,121
    can we get some screenshots of what it looks like on mobile?
     
  47. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    Hi! Nope - but some people use it maybe they can post some shots? Anyone? :)
     
  48. kurylo3d

    kurylo3d

    Joined:
    Nov 7, 2009
    Posts:
    1,121
    I might take one if you hook me up for free :) lol
     
  49. kurylo3d

    kurylo3d

    Joined:
    Nov 7, 2009
    Posts:
    1,121
    You would sell a hell of a lot more if you could prove its feasibility on mobile rather then just talk.
     
  50. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    675
    I will build sample scene on Android and will post here screenshot

    Edit : Screenshots (directly from Android tablet) - all look the same like in test scene that comes with package

    $Screenshot_2013-08-27-03-55-39.png

    $Screenshot_2013-08-27-03-56-21.png
     
    Last edited: Aug 26, 2013
unityunity