Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Mosaic Shader

Discussion in 'Assets and Asset Store' started by Jobberwocky, Dec 27, 2016.

  1. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    socialmedia_MosaicShader.png

    Available in Asset Store, or try the Demo!

    Mosaic Shader
    is a collection of full screen shaders that helps you to mosaic your scene. Each shader uses a unique shape and offers you many possibilities for customization of your mosaic in real-time!

    Main Features
    • Shapes - Currently there are three different shapes available which you can use to mosaic your scene: squares, circles, and hexagons. In the future, more shapes will be added.
    • Rotation - By providing an angle value, you are able to rotate the mosaic. If you change this value continuously, the mosaic will rotate in front of you.
      rotation_example.png
    • Size - The size of the mosaics can be increased and decreased in the X and Y direction. This value can be changed in real-time too.
    • Shrinking - The shrink value is a way to decrease the size of the mosaics, while keeping the number of mosaics the same. It generates a gap between them. shrinking_example.png
    • Pixelation - This value allows you to set the amount of pixelation for the mosaic. You can go for a fully pixelated effect, keep the color of the original scene, or something in between. pixelation_example.png

    Contact
    Don't hestiate to contact me if you have any questions, suggestions, or just want to show something cool. This can be done in various ways by for example posting a message here or use any of the sources listed below:
     
    Last edited: Sep 26, 2018
  2. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    Mosaic Shader is now live and available on the Asset Store!
     
  3. sssetz

    sssetz

    Joined:
    Apr 22, 2014
    Posts:
    10
    Hello, do you have any sort of free version we can test this out with? $25 is a bit steep to see how it works, but it does look really cool.
     
  4. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    Hey there! At the moment, there is no free version available! However, I will have some time next week to work on a small demo that you could try out. If you have any other questions feel free to ask them.
     
  5. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
  6. Lechuza

    Lechuza

    Joined:
    Oct 3, 2014
    Posts:
    23
    Nice work, can't wait to see Cairo tiling and other effects! However, right now even in the example scene when I run it I see everything upside down... using unity 2017.1

    Figured out how to fix in the shader, just letting you know. Also, is there a simple way to make the mosaic in world space? instead as a camera space effect?
     
    Last edited: Aug 26, 2017
  7. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    Thanks for the heads up!

    A few months ago I did some tests with using the shaders in world space. This can be achieved by adding the following line to the uniforms: "float4 _MainTex_TexelSize;". Next if you have to replace all references of _ScreenParams meaning that "_ScreenParams.x" => "_MainTex_TexelSize.z" and "_ScreenParams.w" => "_MainTex_TexelSize.w". Probably I will make this change in the next update as well since it does not affect the shader when it is running as a camera affect. IF I'm correct you can now add this shader to a material and use it.

    Regarding new effects.. Next one will be some kind of lego mosaic effect. More info later this week ;-)
     
    Lechuza likes this.
  8. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    As promised in my earlier post, some more news about the next update if this asset! Currently, I'm working on adding a new shader that will legolize your scene. See the image below for a preview ;-)

    Lego.PNG
     
  9. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    It has been a while since I posted an update here. The lego shader is now ready for release and it will added to this asset with the next update. It has all the features (e.g. rotation, shrinking, smooth edges...) as all the other shaders.

    Further, I pushed an update some weeks ago which also fixed a bug when using the shaders in the Unity 2017 editor.

    mosaic_lego1.PNG
     
  10. Bartek_Gudowski_Friend_Factory

    Bartek_Gudowski_Friend_Factory

    Joined:
    Feb 18, 2019
    Posts:
    54
    Hi!

    Does the mosaic shader work with Unity Universal Render Pipeline?
    If not, can you update it so it supports?
    Also, can you run a video through the mosaic shader?

    Thanks!
     
  11. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    Hi,

    Mosaic shader was never built with the Unity Universal Render Pipeline in mind, so I guess it won't work. It would be possible to update it to support it, but I don't know yet when I will do that. At the moment, I'm busy with releasing a new asset.

    Regarding the video question, yes that would be possible.
     
  12. Bartek_Gudowski_Friend_Factory

    Bartek_Gudowski_Friend_Factory

    Joined:
    Feb 18, 2019
    Posts:
    54
    That would be great as the Universal RP (old LWRP) is replacing the old built-in. Can you just do quick assessment whether it’s a big or small update for you? Thanks
     
  13. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    Well, the shaders in this asset were built based on the standard rendering pipeline, so they are not even based on the "old" LWRP. Therefore from a first sight, I don't think it will a quick replacement/update.

    After I'm done with the final touches for my new asset, I will put some effort in this. Probably, I can make some time for it in a couple of weeks.
     
  14. Bartek_Gudowski_Friend_Factory

    Bartek_Gudowski_Friend_Factory

    Joined:
    Feb 18, 2019
    Posts:
    54
    Thanks, looking forward. This is a great looking asset that I need to my Universal RP based project. More people will face the same need as Unity will push Universal RP hard with the 2019.3.
     
  15. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    I understand and I will post an update when its ready!
     
  16. Bartek_Gudowski_Friend_Factory

    Bartek_Gudowski_Friend_Factory

    Joined:
    Feb 18, 2019
    Posts:
    54
    Hi! Any progress with the update? Would love to use it soon?, thanks
     
  17. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    Sorry for my late reply, I'm currently away for a few days.

    I did not have time yet to implement anything. Probably, next week I will be able to start on it. So, I will get back to you.
     
  18. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    For the other people that are interested, I managed to get the shaders working for the Universal Rendering Pipeline. Now I'm preparing it for release, so probably it will be available for everyone in one of the coming weeks!

    example_urp_mosaic.PNG
     
  19. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    A new big update is now live at the assetstore. The pixelation shaders are no longer a dedicated full-screen effect, but can be used on everything!

    socialmedia.png
     
    jGate99 likes this.
  20. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,845
    Can i use it in UGUI Raw image?
     
  21. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    I never tested it for a UGUI Raw Image specifically, but I cannot think of a reason that it would not work.
     
    jGate99 likes this.
  22. RustyShield

    RustyShield

    Joined:
    May 15, 2019
    Posts:
    1
    Hello, thank you for making a good asset. I am using it well. By the way, is it possible to change the reference point at which the tiles start to the center of the screen rather than the lower left of the screen?
     
  23. Jobberwocky

    Jobberwocky

    Joined:
    May 6, 2016
    Posts:
    83
    Thanks! At the moment it is not possible to change the reference point.