sbh doesn't work, plugin doesn't install.

Issue #286 resolved
Alessandro Padovani created an issue

Tested with daz studio 4.14, blender 2.91, commit b8c1271

It seems I’m not able to import sbh anymore. I have two test scenes sbh1 and sbh2. As for sbh1 it imports fine but can’t generate hair, below the iray rendering and the error in blender when I try to make hair.

Then sbh2 doesn’t even import. This scene uses two sbh for the same object to achieve multiple colors. Then I am not a sbh expert I’m just experimenting and I don’t know if we can do a single sbh with multiple colors in daz studio.

Below the iray rendering and the error in blender when I try to import the scene.

Comments (12)

  1. Alessandro Padovani reporter

    I see there’s a new commit a2ec792 but it seems it doesn’t appear in the blender tabs. I have the addon enabled. The previous commit b8c1271 works fine.

  2. Alessandro Padovani reporter

    And here it is a test for texture mapped sbh, so the hair can have multiple colors to make a tiger or a zebra. It seems textures are not supported by the plugin. That is, the hair color uses a gradient instead of a texture in the color channel. I guess we can use the daz tip color as an approximation to import texture mapped sbh.

    Below the iray rendering, it’s sbh3.duf

  3. Alessandro Padovani reporter

    update

    As for sbh1 I found what it is. I have to check the multi-material option for it to work, even if the hair has one material only. If I don’t check multi-material then I get the error. Then the hair is not converted fine anyway, that is, the particle hair gets an offset over the geometry reference. May be the sphere position is not taken into account when generating the hair.

    What about splitting the hair tool into two tools, one for sheet and one for line and tube. May be this way the interface and material options can be simplified and more consistent.

  4. Thomas Larsson repo owner

    Wow, those last commits were no so good. OK, most of the issue should be fixed now, except for the textures which are ignored for the time being. The last offset is due to the non-zero object location. For now the tool raises an error if there is a non-zero object transform, maybe it will be able to handle this case correctly later.

  5. Alessandro Padovani reporter

    Commit 9517708 works great, apart that hair textures are not supported.

    Please Thomas let me know if you need any help for hair materials. Personally I’d approximate with the tip texture as explained above, at least as a first implementation just to get something. Then we always have time to improve.

  6. Alessandro Padovani reporter

    Commit 541e518 is good as for textures.

    As a side note the “remove old hair” option is enabled but doesn’t work for line and tube, it only works for sheet. Then the “keep mesh hair” option could make sense for line and tube but it’s not enabled. Also may be renaming to “keep particle hair” and “keep mesh hair” would make more clear what they are intended for.

    Please Thomas let me know what you think so I’ll mark as resolved.

  7. Thomas Larsson repo owner

    Alessandro, I would appreciate if you would like to have a look at hair materials. I have matched slots in iray and cycles which sound similar, but I don’t really know how well the renders match.

  8. Alessandro Padovani reporter

    I’m not an expert at all as for hair material it’s new for me as well, but I’ll gladly give it a look and let you know what I find out. I already thought to do it anyway in a separate discussion so to close this one. Unfortunately I also have very little time lately but this is fun and I want to do it.

    Please let me know what you plan to do for the “keep” options so I’ll mark as resolved.

  9. Thomas Larsson repo owner

    The keep option is now available for all hair types, and the remove options has been renamed. The tool now automatically selects the hair type, based on a custom property set when the mesh is imported. It is still displayed though, because it can be useful to change it. In particular, some mesh hairs work better with tube that sheet.

  10. Log in to comment