import background

Issue #475 resolved
Alessandro Padovani created an issue

daz studio 4.15, blender 2.92, commit 514ecea

In relation to #473, commit 514ecea works great with the “always“ option. But I see we lost the background pictures that were imported fine in #129. Then while we’re at it, it would be nice to implement the rotation and flip settings. So we’d had a pretty complete import of the daz environment and background. Test scene included env-and-back-2.duf.

As for the options, if I understand them correctly, I’d suggest the following names that may make more sense to daz users.

  1. environment and background
  2. environment only
  3. none

Then personally I don’t understand the “environment only” option since the background interacts with the environment in daz studio. For example when we don’t draw the dome and there’s a background visible in render. If the user doesn’t want the background then he can just turn it off in daz studio before exporting. But I understand this is my personal view and others may differ.

Comments (5)

  1. Alessandro Padovani reporter

    It is quite trivial but just in case it can be useful here it is the setup for the background image.

    if rotate left 90 degrees
      rotation z = 90
    if rotate right 90 degrees
      rotation z = -90
    if rotate 180 degrees
      rotation z = 180
    if flip vertical
      scale y = -1
    if flip horizontal
      scale x = -1
    

  2. Thomas Larsson repo owner

    Everything should work now, I think.

    The “Dome” option is changed so it also creates a world if there is a background. So it only differs from the “Always” option if the environment mode is scene only and there is no background. In that case the “Always” option creates a transparent world, whereas “Dome” leaves the old world unchanged.

    The option should have a better name, though.

  3. Alessandro Padovani reporter

    Commit ad8fe22 works great. I still believe we can discard the options and keep only "always", so to have a "environment" checkbox as before.

  4. Log in to comment