Announcement

Collapse
No announcement yet.

VRayCar paint material in separate passes

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

  • VRayCar paint material in separate passes

    Hi,

    Is it possible in 3ds max to render the VRayCar paint material in separate passes for compositing?

    Thanks

    N

  • #2
    It is not possible out of the box but it can be done with separate VrayCarPaintMtl plugged into VrayBlendMtl and then extracted via VrayMtlSelect Render Element.
    Separate VrayCarPaintMtl are needed for each pass - one for Base Layer another one for Flake Layer and one more for Coat Layer.

    I'll prepare sample scene and I'll post it afterwards.
    Svetlozar Draganov | Senior Manager 3D Support | contact us
    Chaos & Enscape & Cylindo are now one!

    Comment


    • #3
      Here is the setup:

      1.First a separate VrayCarPaintMtls should be created for each VrayCarPaintMtl component - Base/Flakes/Coat.
      Click image for larger version

Name:	2015-01-06_14_32_50.jpg
Views:	1
Size:	240.8 KB
ID:	854961
      (Flakes component could be also simulated with VrayFlakesMtl also)

      2.Then plug all those materials into VrayBlendMtl.
      3.Create MaterialSelect Render Elements for each pass - Base/Flakes/Coat.
      Click image for larger version

Name:	2015-01-06_15_22_07.jpg
Views:	1
Size:	262.7 KB
ID:	854962
      4.Then combine the result from those layers in Nuke to reconstruct the final appearance.
      Click image for larger version

Name:	2015-01-06_15_24_17.jpg
Views:	1
Size:	446.7 KB
ID:	854963
      5.Then you can tweak each component separately. In the example bellow I made the Base color from blue to red, Flakes from blue to green and I have increased the strength of the Coat layer.
      Click image for larger version

Name:	2015-01-06_15_36_27.jpg
Views:	1
Size:	446.7 KB
ID:	854964

      Scene+Render Elements+Nuke Comp
      Last edited by svetlozar.draganov; 08-01-2015, 12:28 AM.
      Svetlozar Draganov | Senior Manager 3D Support | contact us
      Chaos & Enscape & Cylindo are now one!

      Comment


      • #4
        Notes:

        1.Base + Flakes components must be blended with Additive(shellac) mode OFF while Coat must be mixed with Additive ON.
        (The Coat component could be also mixed without Additive mode, please check Vlados post bellow)
        Click image for larger version

Name:	ILDhHYp.jpg
Views:	1
Size:	84.8 KB
ID:	854965
        2.Base Layer requires additional setup in order to match perfectly original VrayCarPaintMtl:
        Click image for larger version

Name:	G5TkVvp.jpg
Views:	1
Size:	83.9 KB
ID:	854966
        Click image for larger version

Name:	ucIZSha.jpg
Views:	1
Size:	60.9 KB
ID:	854967
        3.Flakes material cannot be extracted separately with VrayMaterialSelect render element. This is not an issue since it is possible to extract Base+Flakes and Base only - then the Difference between those two passes is exactly the Flakes pass.
        Click image for larger version

Name:	oteLVHf.jpg
Views:	1
Size:	52.1 KB
ID:	854968
        Last edited by svetlozar.draganov; 08-01-2015, 12:33 AM.
        Svetlozar Draganov | Senior Manager 3D Support | contact us
        Chaos & Enscape & Cylindo are now one!

        Comment


        • #5
          Thank you!

          Comment


          • #6
            I would actually use the VRayFlakesMtl material for the flakes layer rather than a full-blown car paint mtl. Then you won't need the additive mode (which in general it is good to avoid).

            Best regards,
            Vlado
            I only act like I know everything, Rogers.

            Comment


            • #7
              This is what I actually used in the attached example - the Base and the Flakes(VrayFlakesMtl) are blended in non-additive mode but there is no way to add the Coat layer properly without additive mode.
              Svetlozar Draganov | Senior Manager 3D Support | contact us
              Chaos & Enscape & Cylindo are now one!

              Comment


              • #8
                Originally posted by svetlozar_draganov View Post
                This is what I actually used in the attached example - the Base and the Flakes(VrayFlakesMtl) are blended in non-additive mode but there is no way to add the Coat layer properly without additive mode.
                Why not? Turn off "coat trace reflections" for the base material, and then use a perfectly reflective VRayMtl with VRayFakeFresnelTex as the amount texture.

                Click image for larger version

Name:	carpaint_components.png
Views:	1
Size:	392.6 KB
ID:	854973

                Best regards,
                Vlado
                I only act like I know everything, Rogers.

                Comment


                • #9
                  I didn't know that it is possible to simulate Shellac effect that way - thanks for letting me know
                  Svetlozar Draganov | Senior Manager 3D Support | contact us
                  Chaos & Enscape & Cylindo are now one!

                  Comment


                  • #10
                    Very informative. Thanks for posting the example and the trick to avoid the additive mode.
                    always curious...

                    Comment


                    • #11
                      You can also just render another pass with the car shader material applied with a black base coat and black diffuse so you get only the flakes in this layer. Then comp it on top of your original render. And you could use RPManager to setup your passes in this case you would use the RPM material to be switched between passes.
                      Last edited by jstrob; 16-01-2015, 01:23 PM.

                      __________________________________________
                      www.strob.net

                      Explosion & smoke I did with PhoenixFD
                      Little Antman
                      See Iron Baby and other of my models on Turbosquid!
                      Some RnD involving PhoenixFD

                      Comment

                      Working...
                      X