Transparent background with Scripted 3Delight?

Hi.

I can make a transparent background rendering an image with 3Delight and choosing "OFF" in the "Visible in Render" option in the "environment" window.

However, the shaders I'm using are not working right with 3Delight. To get an image, I need to use the "Scripted 3Delight" method with the "Point-Based Occlusion" script. In this case, I can't get an alpha channel in the background, even with the "hide in render" option of the backdrop to OFF. 

Is there anything I can do to use Scripted 3Delight (Point-Based Occlusion) and keep the backdrop transparent?

Below a pictures illustrating my problem:

 

LEFT IMAGE: generated using 3Delight, the bluish color in the background represents the alpha channel, which worked properly, however the model was all white where I applied the shader I wanted.

RIGHT IMAGE: generated using Scripted 3Delight (Point-Based Occlusion), the shaders worked as they should, however with this script I can not get the alpha channel in the background (the background is always the same gray color).

 

Thank you.

Comments

  • Sven DullahSven Dullah Posts: 7,621
    edited February 2018
    tcassat said:

    Hi.

    I can make a transparent background rendering an image with 3Delight and choosing "OFF" in the "Visible in Render" option in the "environment" window.

    However, the shaders I'm using are not working right with 3Delight. To get an image, I need to use the "Scripted 3Delight" method with the "Point-Based Occlusion" script. In this case, I can't get an alpha channel in the background, even with the "hide in render" option of the backdrop to OFF. 

    Is there anything I can do to use Scripted 3Delight (Point-Based Occlusion) and keep the backdrop transparent?

    Below a pictures illustrating my problem:

     

    LEFT IMAGE: generated using 3Delight, the bluish color in the background represents the alpha channel, which worked properly, however the model was all white where I applied the shader I wanted.

    RIGHT IMAGE: generated using Scripted 3Delight (Point-Based Occlusion), the shaders worked as they should, however with this script I can not get the alpha channel in the background (the background is always the same gray color).

    Thank you.

    It seems like the point based occlusion doesn't render with a transparent background unfortunately. So you must obviously use standard 3DL renderer to get that, question is why your shaders don't work, it should work in standard mode if it works with the scripted 3DL. What shader is that? Did you try to reboot DS? Or go to the temp folder and empty it to force DS to recreate the temp files?

    Another option would be to render with scripted 3DL and use a background with a color that is easy to select in an image editor (PS, Gimp) and erase, and merge it with a transparent layer.

    Post edited by Sven Dullah on
  • I realized that almost anything I try to render using 3Delight results in this white image (but the same does not happen with Scripted 3Delight). I deleted the temporary files and the problem persists.

    As for the solution of using a layer in GIMP, that's what I'm using right now, but I'd rather be rendering with the background, so the outlines are perfect.

  • Sven DullahSven Dullah Posts: 7,621
    tcassat said:

    I realized that almost anything I try to render using 3Delight results in this white image (but the same does not happen with Scripted 3Delight). I deleted the temporary files and the problem persists.

    As for the solution of using a layer in GIMP, that's what I'm using right now, but I'd rather be rendering with the background, so the outlines are perfect.

    Maybe if you tell us more about what shaders are causing this problem and what lightning/render settings you use somebody can help you out;) You said almost anything renders white, what if you create a primitive sphere with the DS default shader and color it red, will it render ok?

  • CGI3DMCGI3DM Posts: 279

    It is an bug of version 4.x, in version 3.x Scripted 3Delight works correctly. I guess you should report the problem.

  • tcassattcassat Posts: 75
    edited February 2018

    Thanks, Armando. I'll make a report.

    Sven Dullah, I did some experiments and I think I found the problem:

    1. Red sphere with default shaders, a point light and 3Delight Render: OKAY!

    2. Genesis 8 Female Model with default materials/shaders, a point light and 3Delight Render: OKAY!

    3. Genesis 8 Female Model with default shaders, 3Delight Materials apllyed and 3Delight Render: FAILS!

    Rendering fails when I apply materials to 3Delight on surfaces. I tried a fourth experiment:

    4. Genesis 8 Female Model with default materials, "Visual Style Shaders" on chest surface, 3Delitgh Render: FAILS (where Visual Style Shaders was applied)

    Then the Render fails whenever I apply a material or shader to a surface. Even if they are the right materials (for example, those found inside folders called "3Delight")

     

     

     

     

    EDIT: 

    I tried doing the same rendering on another Windows user and it worked.

    The problem should be one of these:
    1. I installed some content in the wrong way on my current user
    2. my Windows username has ASCII characters and this may be causing some problem in the scripts

     

     

     

    FINAL EDIT: Definitely the problem is with my Windows username. I will install DAZ Studio on a new user (without ASCII characters), download everything again, and hope not to have any more problems. Thanks for the help.

    Post edited by tcassat on
  • Sven DullahSven Dullah Posts: 7,621
    tcassat said:

    Thanks, Armando. I'll make a report.

    Sven Dullah, I did some experiments and I think I found the problem:

    1. Red sphere with default shaders, a point light and 3Delight Render: OKAY!

    2. Genesis 8 Female Model with default materials/shaders, a point light and 3Delight Render: OKAY!

    3. Genesis 8 Female Model with default shaders, 3Delight Materials apllyed and 3Delight Render: FAILS!

    Rendering fails when I apply materials to 3Delight on surfaces. I tried a fourth experiment:

    4. Genesis 8 Female Model with default materials, "Visual Style Shaders" on chest surface, 3Delitgh Render: FAILS (where Visual Style Shaders was applied)

    Then the Render fails whenever I apply a material or shader to a surface. Even if they are the right materials (for example, those found inside folders called "3Delight")

     

     

     

     

    EDIT: 

    I tried doing the same rendering on another Windows user and it worked.

    The problem should be one of these:
    1. I installed some content in the wrong way on my current user
    2. my Windows username has ASCII characters and this may be causing some problem in the scripts

     

     

     

    FINAL EDIT: Definitely the problem is with my Windows username. I will install DAZ Studio on a new user (without ASCII characters), download everything again, and hope not to have any more problems. Thanks for the help.

    Good to hear you're about to solve it! Pretty weird stuff:)

  • CGI3DMCGI3DM Posts: 279

    It's weird, it just gives me the transparency, when I put any image in Background (Enviroment) and "visible in Render" in Off. 
    The change of user did not work for me.

  • It's weird, it just gives me the transparency, when I put any image in Background (Enviroment) and "visible in Render" in Off. 
    The change of user did not work for me.

    I did not quite understand what you meant. Can you achieve the transparency effect even using Scripted 3Delight?

    I've been able to solve the problem. As seen above, I was able to get the transparent background using 3Delight, but the image was not rendered correctly. I solved this by changing Windows user. As my user has special characters ("ã"), the program was not able to access my folders correctly when rendering with 3Delight. I sent a bug report.

    When I switched to the username that does not have any special characters, the program was able to find the shaders / materials / etc and render the image correctly.

    I've had similar problems using other software, such as georeferencing programs and some others that need to access my personal folders, but they can not do this correctly because my name has the character "ã".

    Bye.

Sign In or Register to comment.