Search Unity

Car Paint Mobile Shader PRO [RELEASED]

Discussion in 'Assets and Asset Store' started by reddotgames, Jan 28, 2013.

  1. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707




    LINK TO ASSET STORE
    Current Version : 3.2


    Car Paint Mobile Shader PRO is a mobile version of popular and most compex car shader for Unity3d Car Paint Shader PRO which gives you efficient and photorealistic shaders for various models on mobile devices. Main shaders are in 4 quality levels so you can use it as LOD or assign it on game start depend on mobile device power.

    Pack includes 35 shaders testes on most iOS devices :
    - Car Paint Low Detail
    - Car Paint High Detail
    - Car Paint Medium Detail
    - Car Paint Ultra Detail
    - Car Paint with Alpha Blending Low Detail
    - Car Paint with Alpha Blending Medium Detail
    - Car Paint with Alpha Blending Ultra Detail
    - Car Paint Duo Color
    - Car Paint Duo Color with Probes
    - Car Paint Medium Detail Scrolled Enviroment
    - Car Glass Shader with Reflection and Fresnel Formula
    - Car Glass with Diffuse Textures
    - Car Glass Advanced
    - Car Glass with Probes
    - Car Glass Double Side Shader
    - Car Glass Advanced Double Side Shader
    - Car Chrome Shader
    - Car Chrome Shader with Probes
    - Car Paint Ultra Detail with Lightmapping Support
    - Car Paint Ultra Detail with Normal Map
    - Car Paint Ultra Detail with Normal Map Reflection Specular Mask
    - Car Paint Low Detail FakeHDR
    - Car Paint High Detail with Probes
    - Car Paint Medium Detail with Probes
    - Car Paint High Detail with Decal
    - Car Paint Medium Detail with Decal
    - Car Paint Low Detail with Reflection Mask
    - Car Paint High Detail with Reflection Mask
    - Car Paint Medium Detail with Reflection Mask
    - Car Paint Low Detail with Reflection Color Mask
    - Car Paint High Detail with Reflection Color Mask
    - Car Paint Medium Detail with Reflection Color Mask
    - Car Paint Low Detail with Reflection Color Specular Mask
    - Car Paint High Detail with Reflection Color Specular Mask
    - Car Paint Medium Detail with Reflection Color Specular Mask

    Features :
    - Up to 4 Lights Sources (2 in Medium Detail Shaders) + Directional Light
    - Diffuse and Ambient Color
    - Normal mapping
    - Specular Color with Gloss
    - Reflection Cubemap
    - Reflection Fresnel
    - Decal with alpha control (for stickers, mud)
    - Flakes with 3 prepared sparkle textures fully adjustable via shader parameters
    - Light Probes support (on few shaders)
    - Self Shadowing
    - FakeHDR

    Shader Description :

    Code (csharp):
    1.  
    2. 1) Car Paint Low Detail / Medium Detail / High Detail / Ultra
    3.  
    4.                           Low          Medium         High       Ultra
    5.    Specular / Gloss        +             +             +           +
    6.    Reflection              +             +             +           +
    7.    Fresnel                 +             +             +           +
    8.    Flakes                                +             +           +
    9.    Up to 2 vertex lights                 +             +           +
    10.    Up to 4 vertex lights                               +           +
    11.    Self Shadowing                                                  +
    12.  
    13. 2) Alpha Blending Shaders
    14.    Like normal but with Diffuse Color Alpha value work as transparency - good for transparent parts (tail lights)
    15.  
    16. 3) Glass Shaders
    17.    Special formula shader for glass - also with texture support
    18.    With Advanced Shader you can set Tint param and Alpha value - this will help you make more tinted windows (almost black for example)
    19.  
    20. 4) Shader with Decals (only Medium and High for now)
    21.    With additional texture work as decals (additional blend)
    22.  
    23. 5) Shader with Reflection Mask
    24. Alpha of main texture is working as reflection mask (you can use one material per all model and just prepare another grayscale texture with reflection mask)
    25.  
    26. 6) Shader with Reflection Mask  Color Mask
    27.    Like 5) but non reflective parts of car are without diffuse color
    28.  
    29. 7) Shader with Reflection Mask  Specular Mask
    30.    Like 6) but also with Specular Masking  
    31.  
    32. 8) Shaders with Probe Support
    33.    No need to explain that
    34.  
    35. 9) FakeHDR Shader
    36.    Test shader - you can adjust dark parts of model to be more lightened
    Version History

    Code (csharp):
    1.  
    2. 1.0 Initial Version
    3. 1.1 Added Car Paint shader with Reflection Mask (High and Medium Detail)
    4.     Added Car Paint shader with Reflection  Color Mask (High and Medium Detail)
    5. 1.2 Added 4 shaders with Light Probes support
    6. 1.3 Added Duo Color to Light Probes shaders
    7.     Added Low Version of Car Paint Shader and Paint Shader Alpha
    8. 1.4 Added Car Glass shader with Diffuse Texture
    9.     Fixed High Quality shaders
    10.     Fixed all shaders for calculation precision at larger world positions
    11.     Better sample car materials
    12. 2.0 Added Car Paint Ultra Detail (with self shadowing)
    13.     Added Car Paint Ultra Detail with Alpha Blending (with self shadowing)
    14.     Added Car Paint Ultra Detail with Lightmapping support
    15.     Added Car Paint Low Detail with Reflection Mask
    16.     Added Car Paint Low Detail with Reflection Mask  Color Mask
    17.     Added Car Paint Low / Medium / High Detail with Reflection, Color, Specular Mask
    18.     Added Car Glass Advanced Shader
    19.     Added Shaders Description in this file
    20. 2.1 Added Car Paint Ultra Detail with Normal Map
    21.     Added Car Paint Ultra Detail with Normal Map Reflection  Specular Mask
    22.     All masked shaders are taking reflection/color/specular mask from main texture ALPHA!
    23. 2.2 Added texture into Car Glass Advanced
    24. 2.3 New Car Glass Advanced Shader
    25.     Added Glass Double Side Shader
    26.     Added Glass Advanced Double Side Shader
    27. 3.0 Optimized bunch of shaders
    28.     Added Glass Advanced Shader sample
    29.     Added Lightmapping Sample Scene
    30.     Added Car Paint Medium Detail Scrolled Enviroment + SetSpeed sample script + Sample Scene
    31. 3.1 Added new Car Model with 3 materials setup for mobile
    32. 3.2 Fixed Medium Shaders due was problems on some Android Devices
    33.     Fixed Chrome Shader due was problems on some Android Devices
    34.     Fixed Duo Color Shaders due was problems on some Android Devices
    35.     Fixed Ultra Shaders to work proper with Real Time Shadows
    36.     Deleted Ultra Alpha Shader - use Medium or High instead
    37.  
    2 Car Models included in asset!

    Working on Unity 3.5 and Unity4. Shaders was tested on mobile devices!

    Images :

    Test on iOS devices


    Test scene with all shaders


    Images taken from iOS device (59.99 FPS)



    NEW IN 3.1 - SCROLLED ENVIROMENT ON CAR !

    If you have any feature requests let me know we will add it in next update.
     
    Last edited: Sep 19, 2013
  2. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    reserved
     
  3. xandeck

    xandeck

    Joined:
    Apr 2, 2009
    Posts:
    563
    Really nice... are there any scenes or cars that come with the package?
     
  4. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Yes scene with balls and scene with car(including car model and rims model) comes with package!
     
    Last edited: Feb 3, 2013
  5. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    I would be nice to see your cars or models with this shaders in game. Post some screens if you have it :)
     
  6. I am da bawss

    I am da bawss

    Joined:
    Jun 2, 2011
    Posts:
    2,574
    Looks amazing. Put it on my shopping list :)
     
  7. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Thanks. What I wanna hear from you guys is what other shader options you wanna me to add? Like LOW version for far objects or something different?
     
  8. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Upcoming update :
    - new shader with reflection mask
     
  9. JamesArndt

    JamesArndt

    Joined:
    Dec 1, 2009
    Posts:
    2,932
    Is the mobile version released yet? If not any time frame for release?
     
  10. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Yes this topic is for Mobile Version (as well as link to asset store and photos). Desktop version of shader have different topic and different asset store link :)
     
  11. JamesArndt

    JamesArndt

    Joined:
    Dec 1, 2009
    Posts:
    2,932
    The link to the Asset Store doesn't go to anything...it appears broken.
     
  12. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Fixed. I used link provided by Unity - but it stop work from some reason - anyway :) now should work - check it out
     
  13. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Version 1.1 on its way to Asset Store.

    4 new shaders

    - Car Paint High Detail with Reflection Mask
    - Car Paint Medium Detail with Reflection Mask
    - Car Paint High Detail with Reflection Color Mask
    - Car Paint Medium Detail with Reflection Color Mask
     
  14. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    Is that a 3000 gt model? If so, is it available in a car pack you created? Btw this looks like a great set of shaders!
     
  15. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Hi Thanks! And yes its 3000gt model and it is only available in this asset. Non of my car pack have this one - but if you will buy our car pack - hit me on priv - I will send you 3000gt also :)
     
  16. Prophet6989

    Prophet6989

    Joined:
    Jul 8, 2012
    Posts:
    37
    We just purchased those shaders. And it seems that those shaders does not work with Light Probes. Since this is mobile shader, light probes support is essential, I think.
     
  17. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Hello, Good point - and no problem at all - I will make light probe support for those shaders.
    Expect on a update in few days :)

    Like I always saying - if you guys have any request - let me know and I will add it.
     
  18. Prophet6989

    Prophet6989

    Joined:
    Jul 8, 2012
    Posts:
    37
    Very quick reply.
    I hope specular lighting will work with light probes too. (In our old car shader it is't.)
     
  19. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    So first approach to light probes and we have success :

    $probes1.png
    $probes2.png

    Sphere over car uses Mobile/Diffuse (to compare results)
    And of course you have your specular working also :)

    Now I need few hours to make all main shaders with light probes support, and I will upload update into Asset Store.
     
    Last edited: Mar 18, 2013
  20. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Update 1.2 on Asset Store

    Added probes support for 4 shaders :
    - Car Paint High
    - Car Paint Medium
    - Car Glass
    - Car Chrome

    Final probes screenshot :
    $probes final.png
     
    Last edited: Mar 19, 2013
  21. trooper

    trooper

    Joined:
    Aug 21, 2009
    Posts:
    748
    Just bought a copy, do you have any simpler versions of the shader?

    I can't have more than 1-2 cars on an iPod 4 without the framerate dropping significantly.
     
  22. Prophet6989

    Prophet6989

    Joined:
    Jul 8, 2012
    Posts:
    37
    In our project we use only baked lightning (lightmaps light probes). In your light probes test scene directional light is tuned on. Without it car is more darkness (increasing lightprobe influence scale make car white, not car color) and without specular. Here is your scene without directional light.
    $2013-03-20_162701.jpg

    And DuoColor shader not have lightprobe support :cry:

    Desired brightness may be done with ambient color, instead if directional light, but no specular.
     
  23. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Can you place one Directional Light and make it only affect car layer? Shader don't use fake specular thats why directional light is important.

    About DuoColor I can add light probes support to that also - just tell me if you need it.

    iPod 4 is like iPhone4 right? Big screen, cpu from 3gs? I can make simpler version (LOW) but it will start look like Mobile/Specular I guess :) I can give a try to make LOW version of shader.
     
    Last edited: Mar 21, 2013
  24. Prophet6989

    Prophet6989

    Joined:
    Jul 8, 2012
    Posts:
    37
    Yes we need it.

    About speculars I understand
     
  25. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    As requested (Prophet6989 trooper) we made new 1.3 version :

    1.3
    Added Duo Color to Light Probes shaders
    Added Low Version of Car Paint Shader and Paint Shader Alpha
     
  26. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Hi, could I please ask if you have a shader which supports transparency (diffuse + normal) + cubemap for reflection in the shader package. Thanks.
     
  27. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Yes, Car Paint Shader with Alpha is the name of this shader.

    But to clear out - you need have holed in "car" or be all transparent (set via Color alpha) ?
     
  28. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    I just need the glass covers of the headlamps which are currently with transparent texture only to have a reflection from a cube map. Same goes for the windows of the car. I basically only need my default transparent material to have a slot for a cubemap. Somehow, it's missing from Unity. Here's an example: http://www.bmw.in/in/en/newvehicles/z4/z4/2009/allfacts/ergonomics/_shared/img/lights.jpg. The thin white line you see on the glass.

    Thanks.
     
  29. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Yes we have shader like this. Glass with Cubemap or Car Paint Shader with Alpha (you get all effect from normal Paint Shader - flakes, fresnel, shading + alpha), so you can choose one from two (Glass shader will look also great on headlamps - have glassy look and special reflection math formula).
     
  30. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Thanks. I'm buying it.
     
  31. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Glass shader with normal would be too expensive for Mobile (there is one in Desktop version of shader - with texture and normal map). I can send you this if you think will not kill your gpu on Mobile. Just send me PM.

    Why Car Paint with Alpha does not suit your needs? What you need in there more?
    If you could answer - we can make custom version of this shader to make it work like you wanna to.
     
  32. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    PM sent. I'd like to thank for the fast support!
     
  33. romeo_ftv

    romeo_ftv

    Joined:
    Oct 20, 2009
    Posts:
    36
    Please, add Car Glass with the diffuse texture.
     
  34. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    OK - in next update you will have that shader in pack.
     
  35. LeLehel

    LeLehel

    Joined:
    Apr 6, 2013
    Posts:
    3
    Hi!

    I just bought your mobile car shaders! I think it's very good indeed! Actually it's the best for Unity mobile! BUT! :)
    I want to make white cars and other bright colors like bright citrus yellow. Sadly the brightest color I can set is some kind of mid-gray. :(

    How can I set something like these:
    http://topcarsport.com/wp-content/u...ers-vehicles-cars-audi-a5-cabriolet-white.jpg
    http://wallpaper.pickywallpapers.com/1920x1080/white-audi-a5-2010.jpg

    I experimented with:
    - Very bright refmaps (not good for dark colors)
    - Directional lights (blows out highlights)
    - Ambient color (blows out other materials)

    The best results I got so far in case of white is to max up everything but it's still not the look I'm searching for. The other problem is that I want to blend between colors runtime but to switch from white to a dark color is problemematic because I should also switch refmaps and set new ambient what I really don't want to do. :)

    What m I doing wrong? Or is it impossible to get bright colors right now with your shaders?

    2nd, a feature request:
    Is it possible to somehow fake HDR reflection highlights in a future update. (Mobile optimized of course :) )
    I know mobile gfx chips can't handle HDR, but sometimes small blownout highlights are required, like spotlight or neon stripe reflections on the car. Maybe a second refmap with grayscale highlight information? I'm no expert just guessing. :) I'm dreaming on an artist frindly solution... :)

    Neon highlights examples:
    4.jpg
    2B.jpg
    3.jpg

    Thank you in advance!

    L.
     
    Last edited: Apr 6, 2013
  36. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Hello,

    Shaders depend on light and ambient in scene - there is no "emmisive" factor - but I can add it if you wanna.
    Those photos with cars all white is in studio (full of lights) + hdr photo.

    Generally in AAA racing games cars are rendered on different camera that have different post process settings from scene camera (more bloom, different levels settings) - you can easly see it in all Need for Speed series. I know - its mobile we speaking about. What you can do? Besides splitting into 2 cameras (one for cars, one for scene), all you can you did already - ambient, refs, directional.

    I make fast setup and its of course possible to have white color (not pure because its not unlit shader :))
    $white.jpg
    As you can see ambient is at normal lebel cause wheel rubber is still black.

    If you need bonus emmisive shader - let me know I will make it in next update (with car glass with diff texture that was requested before)
     
  37. romeo_ftv

    romeo_ftv

    Joined:
    Oct 20, 2009
    Posts:
    36
    I have same problems with the shaders with i have bought there. The farther away is the center of the world, the more clearly you can see the big problems with the precisions of the calculations in the shaders.
     
  38. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    What position we speak about (or distance from 0,0,0)?
    We can make high detail shader have more precise calculation, but low will stay like now.
     
  39. romeo_ftv

    romeo_ftv

    Joined:
    Oct 20, 2009
    Posts:
    36
    $Screenshot 2013.04.05 23.24.21.png

    The car stands at the position (-18, 0, 576) at the screenshot.
     
  40. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    And which shader are you using? Becasue from shot I cant see much :)
    p.s great too see carX using our shaders ;)

    I run some tests and I dont see any difference at my scene.
    First shot is 0,0,0 (around this)
    and second is 0,0,-5000

    $sh.jpg
     
    Last edited: Apr 7, 2013
  41. reddotgames

    reddotgames

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

    Changes :

    1.4 Added Car Glass shader with Diffuse Texture (request)
    Fixed High Quality shaders
    Fixed all shaders for calculation precision at larger world positions
    Better sample car materials
     
  42. LeLehel

    LeLehel

    Joined:
    Apr 6, 2013
    Posts:
    3
    Hi!

    Thanks for the fast reply! I was a bit busy lately sorry, but I'm here... :)

    A bonus emmisive shader would be good! :) I don't know how it would look, but let's give it a try! :) Maybe I can reproduce the white car effect with it... by the way I' using the LowDetail version of your shader.

    What is your oppinion about my other question? The fake HDR for mobile? Yesterday I read about SkyShop Tools for Unity: http://forum.unity3d.com/threads/173412-Skyshop-Image-Based-Lighting-Tools
    This guy uses a method he calls "RGBM textures".
    So he plans mobile compatibility as well!

    What do you think? Is there any possibility from your part to make your shaders compatible with SkyShop Tools, or is it possible for you to implement a similar solution to RGBM (fake) HDR refmap?

    If it is too much work, maybe in a different product...

    Thank you for your hard work! and thank you for your great support in the forums!

    L.
     
  43. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Great! Thanks. I guess, we have to wait a bit until it's approved, since it's still 1.3 in the store?
     
  44. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Tomorrow should be on Asset Store. Car Shader for Desktop was approved today, and Ive submitted it day before Mobile version.

    Yeah I was waiting for your answer before submitting new version but no problem - I can add some kind of "bonus light version" of shader so you should be able to achieve fake HDR with it. I will give it a try today and post some screenshots later ok?

    edit : Ive made hdr version of Low Shader - take a look :
    $fakeHDR.png

    About SkyShop - I saw on screen he have special shaders for materials so I guess if the mobile version will go out - I need write to him to help me make one that support SkyShop. And maybe he will not wanna share this code of his ... So dont count on it now :)

    Thanks for good work about our job. It would be super sweet if you can leave some comment on Asset Store :)
     
    Last edited: Apr 11, 2013
  45. LeLehel

    LeLehel

    Joined:
    Apr 6, 2013
    Posts:
    3
    Thank you very much Sir! I'll give it a big try once it's available in the store...

    Let's hope he's a nice guy... I beleive in sharing knowlage and in collaboration! :)

    I will!

    L.
     
  46. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Let us make like this - send me PM with invoice number and I will send you back this shader. Will be faster like this.
     
  47. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,260
    Bought it, looking forward to using it. :)
     
  48. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    This has lightmap support right?

    Seems like a stupid question and it's obvious that it should, but I didn't see it listed in your initial post so just making sure.
     
  49. reddotgames

    reddotgames

    Joined:
    Apr 5, 2011
    Posts:
    707
    Good question. I made those shaders too maintain maximum speed with good quality. And those shaders are made especialy for cars so we was thinking that car always is in move at games. So no with this shaders you will not have lightmap. We can add it as separate shader but this will slow it down. What for exactly you need lightmaping? Some kind of static showroom ?
     
  50. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    Yah pretty much, showing off static models.

    Also do these have a channel that can take a normal map? Maybe not full normal mapping, but just bend the cubemap around the normal map?