Announcement

Collapse
No announcement yet.

Glass shadow colour

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Glass shadow colour

    Hi all,

    I'm creating an interesting material for a building. It's called dichroic glass. It seems in the reference image i have of a manufactured window, the material has some very interesting properties.

    1. It changes colour depending on the viewing angle, a bit like pearlescent paint. This is simple to do in VRay.
    2. the shadows it produces are purple.

    So my question is this. It is possible to make the shadow colour that a translucent object casts, a specific colour? By diffuse it changes colour to any on the spectrum but always casts a purple shadow.

    I can fake it by having two objects. One for diffuse that doesn't cast shadows, and a second that isn't visible, but casts shadows and change their materials respectively.

    but i consider myself a purist, and would like to achieve the results without too much "blagging"

    thanks in advance.

  • #2
    Originally posted by andy_butler_7 View Post
    Hi all,

    I'm creating an interesting material for a building. It's called dichroic glass. It seems in the reference image i have of a manufactured window, the material has some very interesting properties.

    1. It changes colour depending on the viewing angle, a bit like pearlescent paint. This is simple to do in VRay.
    2. the shadows it produces are purple.

    So my question is this. It is possible to make the shadow colour that a translucent object casts, a specific colour? By diffuse it changes colour to any on the spectrum but always casts a purple shadow.

    I can fake it by having two objects. One for diffuse that doesn't cast shadows, and a second that isn't visible, but casts shadows and change their materials respectively.

    but i consider myself a purist, and would like to achieve the results without too much "blagging"

    thanks in advance.
    Have you tried using the OverrideMtl? https://docs.chaosgroup.com/display/...RayOverrideMtl
    A.

    ---------------------
    www.digitaltwins.be

    Comment


    • #3
      Hi Vizioen,

      Thanks for the reply. I have tried the VRayOverrideMtl. Unless I am doing something wrong it doesn't work. Attached is a crude setup that i have. The reflect and refraction slots work (Red and Green mtls accordingly) but the shadow mtl, which is purple, doesn't produce a purple shadow.

      This render has my overridemtl on the big sphere. The floor just has a standard white material and the small sphere a glass. So you can see that the reflection and refraction are working but the shadows not.

      Click image for larger version

Name:	Override Material.JPG
Views:	1
Size:	195.0 KB
ID:	863509

      Comment


      • #4
        Originally posted by andy_butler_7 View Post
        Hi Vizioen,

        Thanks for the reply. I have tried the VRayOverrideMtl. Unless I am doing something wrong it doesn't work. Attached is a crude setup that i have. The reflect and refraction slots work (Red and Green mtls accordingly) but the shadow mtl, which is purple, doesn't produce a purple shadow.

        This render has my overridemtl on the big sphere. The floor just has a standard white material and the small sphere a glass. So you can see that the reflection and refraction are working but the shadows not.

        [ATTACH=CONFIG]32813[/ATTACH]
        I've just tested this and it works fine here. I used the fog color to create the colored shadows as it is easier to get the color you want.

        Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	207.7 KB
ID:	863510

        edit: You said you put the override material on the big sphere, but in your first post you said the glass needs to cast the colored shadows? Then the overridematerial needs to be on the glass sphere, no?
        edit2: I've attached the scene for you (2014)
        Glass_Shadow.zip
        Last edited by Vizioen; 15-09-2016, 02:41 AM.
        A.

        ---------------------
        www.digitaltwins.be

        Comment


        • #5
          Click image for larger version

Name:	Dichroic_glass.jpg
Views:	1
Size:	59.3 KB
ID:	863512

          Two materials. I'm using fog colour in both cases to drive the tint of the glass. You have one material where you have a gradient with all your various glass colours as swatches. You set it to mapped mode and put a falloff into the map slot - this picks a different colour from your gradient depending on the angle. Put this into your fog map slot. You put this glass material into the base material of a vray override material. Next in your shadow material slow, make another vray material, make it fully refractive and put a purple colour into the fog colour swatch. Play with your fog multiplier to determine the density of the shadow.

          Comment


          • #6
            Fog colour it is then!

            Thanks to you both, very helpful.

            Comment


            • #7
              edit: You said you put the override material on the big sphere, but in your first post you said the glass needs to cast the colored shadows? Then the overridematerial needs to be on the glass sphere, no?

              Yes that is correct. I was just making the big sphere solid to test the shadows, which is probably why i didn't try the fog colour!

              Comment


              • #8
                Originally posted by Vizioen View Post

                edit: You said you put the override material on the big sphere, but in your first post you said the glass needs to cast the colored shadows? Then the overridematerial needs to be on the glass sphere, no?


                Yes that is correct. I was just making the big sphere solid to test the shadows, which is probably why i didn't try the fog colour!

                Comment

                Working...
                X