Announcement

Collapse
No announcement yet.

The 2-sided material - real life study vs the rendered version

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

  • The 2-sided material - real life study vs the rendered version

    Hi. I've been debating this topic for a while and I have yet failed to convice Vlado there's something not right with this material. Or maybe it's just me failing miserably at using it the way it's supposed to be used, in which case I'd be more than happy to learn the proper setup of it.

    So what is the 2sided material?

    Originally posted by spot3d.com
    The VRay2SidedMtl material is a utility material provided with the V-Ray renderer. The material allows seeing the light on the backside of the objects. Use this material to simulate thin translucent surfaces like paper, cloth curtains, tree leaves etc.

    Use back material checkbox - when this is off, V-Ray will consider both sides assigned with the front material. When this is on, you can assign a different material from the front one.

    This material will give best results when assigned to singleside objects (non-shelled) objects like planes, extruded splines etc. Otherwise it can lead to extremely longer rendertimes.
    That being said about the material, we have established a few testing criteria:
    • The material is used for simulating thin translucent materials like paper etc.
    • You can assign different materials to the front and the back side of the material.
    • The material is to be used on single polygon objects - objects without thickness.


    First the real life study.
    I set up a simple studio in my home. One single light (a table lamp with a 75w halogen bulb). A black table minimizing the reflected light from below. A white wall giving some diffuse light to the scene.
    I used three test objects. The first being a single sheet of noteook paper painted green with a marker on one side with the text "FRONT" written at the bottom left. The back of this sheet is left unpainted, and instead marked with the text "BACK" in the bottom left.
    The second test object is a sheet of the same kind of paper. This time a funny face is drawn on it with a ballpoint pen. Same texts "FRONT" and "BACK" are painted in the same place.
    The third test object is a stack of four of the same kind of paper. This is to illustrate the opaque properties of the paper (comparable to a using a standard material in the render).

    Two tests are conducted:
    1. Front towards camera - How does the paper look from the front with no backlight (laying on the black table) and when it is lit from behind with as little front light as possible?
    2. Back towards camera - How does the paper look from the back under the same conditions?

    Click image for larger version

Name:	2sided_photoref.jpg
Views:	1
Size:	482.2 KB
ID:	876724

    In photo #1 you can see how the papers on the table show almost nothing of the backside component - you can just barely make out the text "BACK" in the lower right corner. The green patch and the face is clearly visible, and the whiteness of the paper is almost the same as the opaque bunch of papers on the far right.
    When backlit you can clearly see the text "BACK" shining through, and you can still make out the green and the face. The "opaque" bunch of papers have a slight shine-through of light. (I should've used more papers for this one really.) If you look at the top right corner of these papers, which is almost completely black, meaning hardly any light is hitting them from the front.

    In photo #2 you can see the backside of the papers. Note how the green patch and the face is just barely visible when laying on the table. When backlit, they look almost as they do in photo #1 - only difference being the front side image is slightly dimmed.


    Now for the renders.
    I constructed a scene to mimic the situation in my home studio. I modelled paper objects to mimic the real life papers. Textures looking like they do in the photos were also created.
    I use three different Vray2sidedMtl for the papers. One with the green front, and a white backside. One with the face, and with a white backside. One with a clear paper texture, used as both back and front material. The translucency in these renders is set to 64RGB. (Using numbers over 128 will really make this look weird.)

    Click image for larger version

Name:	2sided_renders.jpg
Views:	1
Size:	323.3 KB
ID:	876723

    In the render, the papers laying on the table look quite ok. However, the papers are a lot less similar to the opaque stack of papers when compared to the situation in the photo - they appear a lot darker in the render. This effect increases as you raise the level of translucency.
    When backlit, you can now ONLY see the back facing material, and NONE of the front facing. In the photo the backlit papers look almost identical no matter the orientation of the paper to the camera.
    I have tried changing translucency, but the that does not change the fact that the front facing texture is completely ignored when the paper is backlit.


    Other attempts
    Turning the problem around, and instead tring to recreate what's in the photo using other techniques, I've tried a few solutions. One, which... almost succeeds, is shelling the object and using different 2sided materials (with the same back and front materials) on the different sides. It kind of works, but the backlit image is blurred and dimmed significantly, and the render takes a bit longer. This really isn't very useful. Image below.

    Click image for larger version

Name:	2sided_shelled.jpg
Views:	1
Size:	204.7 KB
ID:	876726

    Using the 2sided material without the extra back material
    This is easily the best way to use the 2sided material - as long as you keep the translucency fairly low. In the renders below the translucency is first set to 96RGB and in the second image set to 255. The first render looks ok, but in the second one the papers laying on the table go almost completely black. I guess the only conclusion you can make of this is that you will have to keep translucency very low when working with materials like paper, or you will get unnaturalistic renders. This also removes the option of having two different sides of the material, unfortunately. Images below.

    Click image for larger version

Name:	2sided_same.jpg
Views:	1
Size:	365.5 KB
ID:	876725


    So what can we make of all this?
    To me, it looks like the 2sided material fails at rendering thin objects the way they appear in real life. I have tried countless setups to recreate what I captured in camera, and have still not been able to do get it right.
    In the photos, it is quite obvious that the backlit side is "added" to the other side of the paper, with only a slight loss of light due to the paper's light absorbing structure. From the discussion the "V-ray leaves"-thread, this would break the energy conservation principle, but I'm sure there should be some way of describing this correctly in code.
    Using the 2sided material without a special backside material, and at a reasonable translucency works satisfactory right now. The material can be used to make leaves that look kind of right. What I hope for though is that vray will one day have a material that works just like reality, with no need for lots of special tweaks.

    I urge anyone interrested in this to download the scene and check it out - here. Maybe I've made a fatal flaw somewhere, and if anyone can make it work, no one would be happier than I.

    It might be noted there are more aspects concerning real life thin object refraction which isn't discussed here, like that happens when you shine a backlit object with an even brighter light from the front (which works rather well with the 2sided material, yet it behaves oddly). There's also the discussion of how the 2sided material deals with different levels of reflection on different sides.


    Sorry for going on and on about this, but having a 2sided material that acts just like a real thin, translucent object would solve a lot of problems, speed up work and improve render quality a great deal. Looking forward to seeing your attempts, and to reading the replies from ChaosGroup. Cheers!
    www.whiteview.se

  • #2
    Can you post your .max files for your tests? I still hold that the 2sided material can produce the effects that you want.

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

    Comment


    • #3
      Ah, sorry didn't see that you posted it. Downloading now...

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

      Comment


      • #4
        Cool! Good luck.

        That download link was maybe a bit too well hidden. For all you tl;dr people - here's the link again: http://www.mediafire.com/?axelu1c3ao7usbd
        www.whiteview.se

        Comment


        • #5
          Will be watching this thread closely.
          Check out my (rarely updated) blog @ http://macviz.blogspot.co.uk/

          www.robertslimbrick.com

          Cache nothing. Brute force everything.

          Comment


          • #6
            Here is one example - not the same setup but the effect can be achieved with 2SidedMtl
            Click image for larger version

Name:	render.jpg
Views:	1
Size:	357.2 KB
ID:	846076
            My_test.zip
            Svetlozar Draganov | Senior Manager 3D Support | contact us
            Chaos & Enscape & Cylindo are now one!

            Comment


            • #7
              Interesting! Will check it out.
              www.whiteview.se

              Comment


              • #8
                What's the conclusion here? With your initial tests windowlicker, did you not use 100% translucency in the 2sided material?

                Did you get the correct results after Svetlozar's scene?
                Maya 2020/2022
                Win 10x64
                Vray 5

                Comment


                • #9
                  The conclusion is... that I have been absolutely swamped with work this week, and just had time to glance at the file from Svetlozar. I have to compare them closely, because atm I'm not quite sure why he got the results he got, and I got the results I got. There is a slight difference in the setup of the scene, but the materials appear identical.. yet they render very differently. Hopefully, I'll have some time tomorrow or on friday to look at it. Unless any one else here can spot the difference between the scenes. (I just gave it a 5 minute glace today though, so there might be something I just didn't spot.)

                  However, the main issue is not solved. That being the situation in the photos, where the papers on the table "render" almost completely opaque, yet being very translucent when held up to the light. The papers in Svetlozar's scene looked more or less the same when backlit and frontlit. I'll post some renders of that as soon as I find the time.


                  Using 100% translucency (255RGB) will make the material look the last render in my initial post - picking up hardl any front light at all. I'll test that on Svetlozar's scene, but I do not think it will solve the problem. I really do hope it can be solved somehow.
                  www.whiteview.se

                  Comment


                  • #10
                    Would it be possible to get Svetlozar's scene save as max 2012 too?

                    Comment


                    • #11
                      Here you go

                      Unfortunately the textures are missing from Svetlozar's zip file though. So maybe he can post them seperately?
                      Attached Files

                      Comment


                      • #12
                        Click image for larger version

Name:	2sided_testpage.png
Views:	1
Size:	47.1 KB
ID:	846093Click image for larger version

Name:	2sided_testpage_back.png
Views:	1
Size:	60.5 KB
ID:	846094Click image for larger version

Name:	2sided_testpage_front-green.png
Views:	1
Size:	351.2 KB
ID:	846095Click image for larger version

Name:	2sided_testpage_front-guy.png
Views:	1
Size:	109.9 KB
ID:	846096

                        I am sorry about missing textures - I didn't upload them since they are already uploaded in the previous posts.
                        Svetlozar Draganov | Senior Manager 3D Support | contact us
                        Chaos & Enscape & Cylindo are now one!

                        Comment


                        • #13
                          Aaaah! Okay! I didn't realize that. Sorry

                          Comment


                          • #14
                            Much appreciated John and Svetlozar!

                            Comment


                            • #15
                              Well, now I looked at it some more, and in Svetlozar's scene there is an environment light causing trouble. Turn off the environment, and it will look as it did in my initial renders.

                              These renders are without any geometry other than the "papers". They are backlit with a spotlight. In the first render there is an environment light, and in the second one the environment is turned off. (The only thing I changed in the materials was the order in which they were assembled, so that the pages with the "front" textures both had the "back" texture as the back material. The paper on the right has a single "clean" texture applied to it - same back/front material.)

                              Click image for larger version

Name:	My_test skylight.jpg
Views:	1
Size:	218.4 KB
ID:	846098Click image for larger version

Name:	My_test no skylight.jpg
Views:	1
Size:	161.7 KB
ID:	846099

                              Seems like we're back to square one on this one.
                              www.whiteview.se

                              Comment

                              Working...
                              X