Search Unity

[RELEASED] Marvelous Techniques

Discussion in 'Assets and Asset Store' started by Kirnu-Interactive, Aug 22, 2015.

  1. gfaraj

    gfaraj

    Joined:
    Jul 11, 2016
    Posts:
    35
    Hi there, I'm looking for a way to have a simple 2-color linear gradient for my game's background. Sometimes during the game, one or both colors will change dynamically. I was wondering if this asset would work for this.
     
  2. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    Yes, Marvelous Techniques has a dedicated shader for this.

    -Arto
     
  3. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    42
    Hi all,

    Can anyone point me in the right direction on how to combine the shader with baked ambient occlusion? I've emailed Arto but haven't got a reply so I thought I might be able to get some information on how to do it here.

    Thanks.

    Cheers,
     
  4. kobyle

    kobyle

    Joined:
    Feb 23, 2015
    Posts:
    89
    @Kirnu-Interactive, I am getting some artifacts while using the CustomLightingMaster.
    It doesnt happen if I switch to Standard Shader.

    Any clue?

     
  5. kobyle

    kobyle

    Joined:
    Feb 23, 2015
    Posts:
    89
    Is there a changelog for the package updates, in case I want to take a look?
     
  6. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    105
    @Kirnu-Interactive I am using your plugin for about a year now, and thoroughly enjoying it. Thank you for creating it!

    I have a question about adding a texture in a specific way. My level is a simple arcade level consisting of few meshes (cubes only). Imagine a simple platform, made of 3 cubes for example.
    If I use color only, it will look like 1 solid object. If I add Main texture to it, you will see where 1 cube starts, and another one ends (especially since cube is scaled, so texture is scaled on that cube).
    My question is - would it be possible to add texture as projection onto surface only. I don't need fancy parameters, just for example 40% of texture projected onto all surfaces with certain shader/material. Maybe I can set scale in the material - but it would certainly ignore the scale of objects. And also, ideally, projection would be onto only 1 side (front).

    I hope this makes sense, and you can help me in some way.

    Kind regards,
    Kreso
     
  7. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    Hi,
    You can try to use UVLayoutGenerator to generate texture UVs for all cubes.
    You can see an example how to use it in the building scene.
    Look at the UVGenerator object under the _ROOT_ object.
     
    kreso likes this.
  8. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    105
    This is quite neat! Almost completely what I need. Great!
    Unfortunately it doesn't work with the cubes that are built inside Unity Editor.
    If you have any ideas or clues how to make it work, please let me know.
     
  9. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    You didn't say how it didn't work.
    You can try to combine the meshes first using Tools->Marvelous->Combine Meshes script to combine the cubes
     
  10. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    105
    Hello, I am terribly sorry for not saying more about the problem.
    I have tried combining meshes but had no success. The results are different if I use a mesh created by ProBuilder for example (UV Layout script works), but when I use Unity's cube (Game Objects->3D->Cube), the texture is scaled funny.
    I attached a screenshot here, that might help understand what I see on my end.
    So the 3 triangles (prisms) work exactly as I would expect, but the 4 squares (left, right, top, bottom) show like they are scaled.
    Does this help?

    Kind regards,
    Kreso
     

    Attached Files:

  11. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    The script is meant to be used in situations where the texture is more subtle like seamless rock texture.
    I think the answer to your problem is to model the level with blender or some Unity modeling asset. This way you can make the level look as you like and map the UVs the way they are supposed to be.
     
  12. kreso

    kreso

    Joined:
    Sep 7, 2013
    Posts:
    105
    I hear what you are saying. It would solve my problem if I used models from outside modeling tools or ProBuilder etc - as long as it's not Unity Editor's plain cube.

    The thing is I have hundreds of levels and this method does work. For example, if I swap meshes (in the MeshFilter component, via Inspector); from UnityEditor's cubes to meshes created by modeling tools, this will work. But I have a lot of cubes.

    I was just curious if you know why that UVLayout script handles Unity Editor's cube differently from modeling tool's cubes. And ideally a way around it.
    I really appreciate your time. I understand if my questions are outside the scope of support for this plugin.

    Kind regards,
    Kreso
     
  13. Zionmoose

    Zionmoose

    Joined:
    Oct 17, 2012
    Posts:
    237
    @Kirnu-Interactive Has this been tested on any of the 2018 betas yet? I tried it and I am getting really terrible results. Switched to 2017.4 and it works great.

    Capture.PNG
     
  14. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    I haven't tested it with 2018 versions yet.

    -Arto
     
  15. Zionmoose

    Zionmoose

    Joined:
    Oct 17, 2012
    Posts:
    237
    Turned out this issue was related to the fact that 2018 HQ render profile automatically sets the colorspace to linear. Setting back to gamma fixed it. However, on the lightweight render profile, this does not work at all. Its all black no matter what settings I change.
     
  16. rubble1

    rubble1

    Joined:
    Apr 25, 2010
    Posts:
    75
    Hi,

    I'm trying to use the bloom shader for the windows/details on a model using the custom lighting master shader. The problem is that the lit objects are visible from behind the faces.
    Is there something I can turn off to get it to stop doing this? ShaderProblemRender.jpg

    Thanks
     
  17. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    The bloom shader is meant to be used as image effect not as ordinary material shader. You can take look at example scenes about how the bloom shader is used.

    -Arto
     
  18. AndresSepulveda

    AndresSepulveda

    Joined:
    Mar 12, 2014
    Posts:
    52
    How can i use the Unity fog with this?
     
  19. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    You can't because custom lighting shader doesn't use Unity's fog.
     
  20. muhammad_ali_safdar

    muhammad_ali_safdar

    Joined:
    Jan 7, 2015
    Posts:
    2
    hi, what is new in update, version 1.3.2 ?
     
  21. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    The main change was to fix ocean shader so it works also in Direct X.
    There might have been some minor fixes which I don't remember.

    -Arto
     
    muhammad_ali_safdar likes this.
  22. davitsedrakian

    davitsedrakian

    Joined:
    Jun 23, 2018
    Posts:
    3
    Hey Guys, I have such question, I'm taking color from image, and using RGB, but marvellous is addind tint to any material, so my color is changing with tint effect, how to turn off tint effect ?
     
  23. rubble1

    rubble1

    Joined:
    Apr 25, 2010
    Posts:
    75
    Are these deferred shaders? Will this work with amplify impostors?
     
  24. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    The shaders are forward rendering shaders.
    I don't know how amplify impostors work so I can't say if the shaders work with it
     
    rubble1 likes this.
  25. painkiller2007

    painkiller2007

    Joined:
    May 25, 2013
    Posts:
    43
    Getting this error in 2018.3.2f1 :
    Shader error in 'Kirnu/Marvelous/CustomLightingMasterInstanced': not enough actual parameters for macro 'UNITY_ACCESS_INSTANCED_PROP' undeclared identifier 'UNITY_ACCESS_INSTANCED_PROP' at line 247 (on d3d11)

    Compiling Vertex program with UNITY_PASS_FORWARDBASE DIRECTIONAL LIGHTPROBE_SH USE_FOG
    Platform defines: UNITY_NO_DXT5nm UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_DESKTOP UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING

    @Kirnu-Interactive
     
  26. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    Hi,
    Can you contact me via email upload_2019-1-23_16-53-45.png so I can give you a new version for testing.

    -Arto
     

    Attached Files:

  27. Almakos

    Almakos

    Joined:
    Dec 13, 2013
    Posts:
    179
    Hello, a new user here.
    May I ask if there is a shader which allows making world space gradient similar to screenshot?
    All those cubes are separate meshes.
    I have found a fog shader (CustomLightingSoftFog), but the result is not exactly what I am looking for.
    Thank you.
    Screen Shot 2019-02-08 at 10.21.42 PM.png
     
  28. cryptexslayer

    cryptexslayer

    Joined:
    Dec 21, 2016
    Posts:
    6
    Sent you an email regarding unity 2019
     
  29. Colibri

    Colibri

    Joined:
    Jul 2, 2012
    Posts:
    12
    Hi, I've just bought it, but I have issues with 2018 versions. Have these versions been tested and is this asset 'alive', for me to estimate the effort to continue with ? Regards
     
  30. Almakos

    Almakos

    Joined:
    Dec 13, 2013
    Posts:
    179
    Hi, I've got a patch from the developer over the email. And seems no issues in the latest Unity. Try to write an email to them. I don't know why they didn't post an updated version to the store.


    @Kirnu-Interactive is there any way to change the direction of directional light in your shader?
    Also, localUV for whatever reason is creating not a vertical gradient on my model but based on depth.
     
  31. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    As @Almakos said I have new unreleased version available. You can get it by sending me an email.
     
    rubble1 likes this.
  32. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    153
    There is a directional light test in the Test folder. There's a setup you can use to change the direction.
    There is also gradient test in the test folder where you can see you have to generate Height UVs with the UVHeightGenerator script.

    -Arto
     
    Almakos likes this.
  33. local306

    local306

    Joined:
    Feb 28, 2016
    Posts:
    116
    Hey @Kirnu-Interactive, does this asset support distance shadow masking for light baking? I was trying out a similar asset which claimed it supports light mapping, but I would consider it partial support as distance shadow masking doesn't work i.e.) the model will pop back to full lighting outside the shadow render distance.
     
  34. boongea

    boongea

    Joined:
    Mar 2, 2015
    Posts:
    2
    Hello @Kirnu-Interactive, Is any way to change "Real time shadow color" ?
    If it can be, it would be great!
     
  35. Guliz

    Guliz

    Joined:
    Aug 8, 2012
    Posts:
    27
    Hello @Kirnu-Interactive, made an app with marvelous shaders, it's really great. On Android version the game looks perfect but on iOS on some devices it has black/white parts:





    i checked the mesh but it looks ok, do you have any idea why this happens? Regarding the blinking in the video the bug depends on the angle?