Daz Studio and Linux

1484950515254»

Comments

  • ssoplerssopler Posts: 22

    Updated nvidia-libs here: https://github.com/SveSop/nvidia-libs/releases

    Nothing major changed, just some minor updates and fixes. However, an old "bug" appeared for me that i had forgotten about, and i wondered why i suddenly had 2 cuda adapters, tho one of them clearly was not right... And i remembered i had forgotten to install nvml library to my updated wine binaries.

    Made a quick note for that in particular for DAZ Studio here: https://github.com/SveSop/nvidia-libs?tab=readme-ov-file#daz-studio

    So, in case you have 2 CUDA adapters (one with just numbers as a name, and -1 vram or something), you need to select the one with the correct adapter name, and should de-select the other. Still works as normal, but it does look more sane if you use NVML as you will only have one CUDA adapter (WDDM - Display) as you would have in windows.. unless you do run headless or something which i have not tried (or multiple real cuda adapters, which is untested aswell).

  • brainmuffinbrainmuffin Posts: 1,205

    mvrazel_8516000a69 said:

    I'm surpised that "tune2fs" would do that. It only sets a flag in the file system that allows you to mark a directory as case insensitive, but otherwise doesn't alter the file system at all. I'm literally typing this post on Linux Mint, with the "casefold" flag set via "tune2fs" in the way I described. Weird.

    For giggles, I downloaded Edge ISO again from here (https://linuxmint.com/download.php) and the same thing happened when I ran the tune2fs command on /dev/sda2 (that's where / is mounted) and it boots into Grub. Not sure why.

  • DareshiranuDareshiranu Posts: 201

    I just heard that Nvidia is open sourcing its drivers, to Linux if I'm not mistaken. Might that not be the solution to making Daz Studio play nice insofar as IRay, or simply working properly in some less convoluted manner? I haven't tried, but honestly I'd switch over in a heartbeat if I could use Daz in Linux. I've got a lot of games on Steam, but I'm not so obsessed that I can't just play whatever works. I'm just a little disenchanted with Microsoft after decades of use. I'm fairly certain everything else I do could be accomplished on Linux.

  • Robert FreiseRobert Freise Posts: 4,444

    Problem is DAZ isn't interested in making the other parts of Studio work in Linux.

    They fall back on the old "ther's to many distrubutions" line which is ancient and obsolete

  • Richard HaseltineRichard Haseltine Posts: 100,837

    Robert Freise said:

    Problem is DAZ isn't interested in making the other parts of Studio work in Linux.

    They fall back on the old "ther's to many distrubutions" line which is ancient and obsolete

    I don't think Daz does that, they simply say they don't support Linux. They are not obliged to give an explanation (and if they did I suspect it would either be market share or possibly the lack/unhelpful license terms of some third-party libraries that DS needs - but that isn't soemthing daz has said so don't quote it as if it was)

  • edited July 25

    Dareshiranu said:

    I haven't tried, but honestly I'd switch over in a heartbeat if I could use Daz in Linux.

    For what it's worth, I've gone ahead and taken the plunge. I spent the weekend scraping Windows off all but one laptop only because I have some programs that don't really have a Linux variant. My daily driver is now Linux only and DAZ  runs pretty well under Wine. Both dForce and iRay are working  with no issue (so far). And yes, I understand it's not supported by DAZ. I've been working to streamline the setup and have an updated "recipe". If anyone wants it, just ask.

    Post edited by mvrazel_8516000a69 on
  • KitsumoKitsumo Posts: 1,215

    brainmuffin said:

    mvrazel_8516000a69 said:

    I'm surpised that "tune2fs" would do that. It only sets a flag in the file system that allows you to mark a directory as case insensitive, but otherwise doesn't alter the file system at all. I'm literally typing this post on Linux Mint, with the "casefold" flag set via "tune2fs" in the way I described. Weird.

    For giggles, I downloaded Edge ISO again from here (https://linuxmint.com/download.php) and the same thing happened when I ran the tune2fs command on /dev/sda2 (that's where / is mounted) and it boots into Grub. Not sure why.

    Are you sure you need tune2fs? I've been running just fine without it. In fact I've never heard of it until now.

    Just plain Mint. All I did was switch the desktop to KDE.

  • edited July 26

    This is still sort of a work-in-progress. "tune2fs" is (was?) an attempt at addressing the "suddenly going missing" of assets that occaisionally happens when running DAZ under Linux. I traced that down to assets sometimes having two or more different cases for the same directory, resulting in two or more disctinct directories being made in the file system (e.g, "DAZ 3D" and "Daz 3D"). It seems to confuse things in a way that sometimes hides assets. This is particularly problematic if you're trying to use a Linux-native Blender with the bridge. Without it, you have to make dozens more links when wiring it in. My goal has been to make the experience on Linux as close to 1-for-1 as possible as it is under Windows.

    I believe I've found a better way to handle the occaisional casing issues -- install Wine (and DAZ) into an NTFS partition. So far, it seems to have cleared up all the occaisional weird casing problems.

    Post edited by mvrazel_8516000a69 on
  • KitsumoKitsumo Posts: 1,215

    Cool. Sounds interesting.

  • jsonnulljsonnull Posts: 0

    Unfortunately I'm not able to get Daz working with my GPU on NixOS using the 550 driver or the 555 driver. My Daz logfile is showing that the CUDA version is coming back as 0.0, which is less than the required 11 version.

    nvidia-smi shows my CUDA version correctly. I've gotten cuda support working in other apps, this process is generally well-documented here: https://wiki.nixos.org/wiki/CUDA. Notably, one typically sets `LD_LIBRARY_PATH` to the location of the cuda toolkit.

    I am using ssopler's nvlibs, and I've run this with `WINEDEBUG=-all,+nvcuda,+nvml` as well to verify that they're invoked.

    SveSop, if you read this, I'm happy to make a GitHub issue as well to track down what my issue is, even though I'm sure this is well within the realm of Nix-being-Nix and not the libraries, but I'm fairly well out of ideas on how to narrow this down any further.

  • brainmuffinbrainmuffin Posts: 1,205

    I upgraded to Linux Mint 22. Took a bit to get the drivers rigtht and it didn't like the WineHQ repo, but I have WINE staging running and 550 NVidia drivers. GPU support is still there. Haven't tried the simulation engine yet though.

  • ssoplerssopler Posts: 22

    jsonnull said:

    Unfortunately I'm not able to get Daz working with my GPU on NixOS using the 550 driver or the 555 driver. My Daz logfile is showing that the CUDA version is coming back as 0.0, which is less than the required 11 version.

    nvidia-smi shows my CUDA version correctly. I've gotten cuda support working in other apps, this process is generally well-documented here: https://wiki.nixos.org/wiki/CUDA. Notably, one typically sets `LD_LIBRARY_PATH` to the location of the cuda toolkit.

    I am using ssopler's nvlibs, and I've run this with `WINEDEBUG=-all,+nvcuda,+nvml` as well to verify that they're invoked.

    SveSop, if you read this, I'm happy to make a GitHub issue as well to track down what my issue is, even though I'm sure this is well within the realm of Nix-being-Nix and not the libraries, but I'm fairly well out of ideas on how to narrow this down any further.

    You can make a git issue and post the logfile with WINEDEBUG=-all,+nvcuda,+nvml and also perhaps one with WINEDEBUG=+loaddll and ill have a look at them :)

    S

  • edited August 4

    brainmuffin said:

    I upgraded to Linux Mint 22. Took a bit to get the drivers rigtht and it didn't like the WineHQ repo, but I have WINE staging running and 550 NVidia drivers. GPU support is still there. Haven't tried the simulation engine yet though.

    Sweet! I was thinking I might try scraping and reloading this with the new version myself. Interesting bit about the WineHQ repo. I'll see if I can work that out.

    Post edited by mvrazel_8516000a69 on
  • brainmuffinbrainmuffin Posts: 1,205

    I thought I asked this before, but I cannot find it. The fonts for Studio are now so small, I have barely see them. Even doe default Mint 22, I've turned the monitor scale to 150% and most of the system fonts to 13 point. Is there anyway to turn the fonts in Studio for menus, etc to a larger size?

  • KitsumoKitsumo Posts: 1,215
    edited August 14

    @mvrazel_8516000a69 I finally ran into that capitalization problem you were talking about. Not gonna lie, I took the coward's way out ... I ran the Windows version of Blender in the same wine prefix as DS. laugh

    I've dealt with Win/Lin casing issues before and I'm not going through that again.

    daz studio benchmark render

    Screenshot_20240813_232509.jpg
    1920 x 1080 - 310K
    Post edited by Kitsumo on
  • korbkorb Posts: 7

    Imvrazel_8516000a69 said:

    This is still sort of a work-in-progress. "tune2fs" is (was?) an attempt at addressing the "suddenly going missing" of assets that occaisionally happens when running DAZ under Linux. I traced that down to assets sometimes having two or more different cases for the same directory, resulting in two or more disctinct directories being made in the file system (e.g, "DAZ 3D" and "Daz 3D"). It seems to confuse things in a way that sometimes hides assets. This is particularly problematic if you're trying to use a Linux-native Blender with the bridge. Without it, you have to make dozens more links when wiring it in. My goal has been to make the experience on Linux as close to 1-for-1 as possible as it is under Windows.

    I believe I've found a better way to handle the occaisional casing issues -- install Wine (and DAZ) into an NTFS partition. So far, it seems to have cleared up all the occaisional weird casing problems.

     

    Interesting! So you're saying create a partition with a native NTFS filesystem on it and put my WINE drive there? Brilliant in it's simplicity, thanks! Unfortunately, I then lose a bunch of features of ZFS that I am using today, though perhaps NTFS has improved since I used Windoze 10+ years ago and it has analogous features (e.g. native snapshots, etc.).

    Also curious - which version of Daz are you using? I am still on 4.21 because when I tried to switch to 4.22 shortly after it came out it wouldn't work due to new CUDA libs not being supported. That was like 8 months ago, so maybe I just missed it and that issue has been resolved?

  • korbkorb Posts: 7

    brainmuffin said:

    I thought I asked this before, but I cannot find it. The fonts for Studio are now so small, I have barely see them. Even doe default Mint 22, I've turned the monitor scale to 150% and most of the system fonts to 13 point. Is there anyway to turn the fonts in Studio for menus, etc to a larger size?

    I saw a post about this last year (but I didn't save it). Apparently, there is no way to change font size in Daz proper, and it ignores the Windows font sizes, too. Something about the runtime engine that it uses and lack of integration with system fonts. Sorry, I don't remember the specifics, but I would love to get this resolved, too, as my eyes aren't getting any younger and I have to really strain to see some of what is on my screen, even though I have large 32" monitors (2560x1440 native resolution).

  • brainmuffinbrainmuffin Posts: 1,205

    korb said:

    brainmuffin said:

    I thought I asked this before, but I cannot find it. The fonts for Studio are now so small, I have barely see them. Even doe default Mint 22, I've turned the monitor scale to 150% and most of the system fonts to 13 point. Is there anyway to turn the fonts in Studio for menus, etc to a larger size?

    I saw a post about this last year (but I didn't save it). Apparently, there is no way to change font size in Daz proper, and it ignores the Windows font sizes, too. Something about the runtime engine that it uses and lack of integration with system fonts. Sorry, I don't remember the specifics, but I would love to get this resolved, too, as my eyes aren't getting any younger and I have to really strain to see some of what is on my screen, even though I have large 32" monitors (2560x1440 native resolution).

    Thanks. I came across something similar as well. Might be fixed in the next major release.

  • korbkorb Posts: 7

    korb said:

    Imvrazel_8516000a69 said:

    This is still sort of a work-in-progress. "tune2fs" is (was?) an attempt at addressing the "suddenly going missing" of assets that occaisionally happens when running DAZ under Linux. I traced that down to assets sometimes having two or more different cases for the same directory, resulting in two or more disctinct directories being made in the file system (e.g, "DAZ 3D" and "Daz 3D"). It seems to confuse things in a way that sometimes hides assets. This is particularly problematic if you're trying to use a Linux-native Blender with the bridge. Without it, you have to make dozens more links when wiring it in. My goal has been to make the experience on Linux as close to 1-for-1 as possible as it is under Windows.

    I believe I've found a better way to handle the occaisional casing issues -- install Wine (and DAZ) into an NTFS partition. So far, it seems to have cleared up all the occaisional weird casing problems.

     

    Interesting! So you're saying create a partition with a native NTFS filesystem on it and put my WINE drive there? Brilliant in it's simplicity, thanks! Unfortunately, I then lose a bunch of features of ZFS that I am using today, though perhaps NTFS has improved since I used Windoze 10+ years ago and it has analogous features (e.g. native snapshots, etc.).

    Also curious - which version of Daz are you using? I am still on 4.21 because when I tried to switch to 4.22 shortly after it came out it wouldn't work due to new CUDA libs not being supported. That was like 8 months ago, so maybe I just missed it and that issue has been resolved?

    I should really check this thread more often! I see that our savior ssopler got the nvlibs stuff working with the new CUDA libs back in January! Wonderful work, my man! 4.21 has still been working for me, but I definitely want to get to 4.22 and later as I expect I will be missing out on nice new features if I don't. I also scanned through all of the posts since, and two other posts are particularly interesting: the IRay server option and the recipe for installing Daz on Mint (my distro, too) and getting it working. I think I'll create a new WINE directory and try to install 4.22 there from scratch and see if I can get everything working. Since 4.21 is working well, I don't want to tempt fate and try to upgrade that working installation.

  • korbkorb Posts: 7

    ...and I will reply to myself one more time - I can have the best of both worlds, according to this reddit post:

    https://www.reddit.com/r/linux_gaming/comments/uswuv6/how_to_set_folder_as_caseinsenstive_with_btrfs/

    About ten replies in I found this gem:

    Use ZFS. It lets you create case insensitive filesystems from pools by doing zfs create casesensitivity=insensitive $pool/$fs.

    So I'll try my new 4.22 installation on a new WINE C drive and also put the entire installation in a zfs filesystem with case insensitivity enabled. It may take me a few days to find the time to work on this, but if/when I do and can confirm, I will reply to this and let you all know how I fared.

  • brainmuffinbrainmuffin Posts: 1,205
    edited September 12

    After working for months, Studio is now broken for me under WINE-Staging. Not sure which update may have caused it.

    Post edited by brainmuffin on
  • greymouser69greymouser69 Posts: 501
    edited September 18

    Ok I just made the switch to linux this past weekend after getting fed up with problems in windows 11 and I was curious on some folks thoughts about using Lutris vs bottles for installing DS.   Any pros and/or cons for either way?

    Also I saw that mvrazel_8516000a69 had DS working with linux native blender via the daz to blender bridge and I was curious what was needed to set that up as well.  Also looking at diffeomorphic for the daz -> blender stuff.

    Post edited by greymouser69 on
  • ssoplerssopler Posts: 22

    greymouser69 said:

    Ok I just made the switch to linux this past weekend after getting fed up with problems in windows 11 and I was curious on some folks thoughts about using Lutris vs bottles for installing DS.   Any pros and/or cons for either way?

    Also I saw that mvrazel_8516000a69 had DS working with linux native blender via the daz to blender bridge and I was curious what was needed to set that up as well.  Also looking at diffeomorphic for the daz -> blender stuff.

    Not a huge "automation fan" myself tbh, but it CAN be done if jumping through some hoops. Main issue being if you use nvidia-libs "package" and my setup script.. that creates symlinks to the relevant .dll's and when using Bottles atleast, that wont fly very well. (Suppose you can fiddle with Flatseal and give full permissions, but that kinda defeats the purpose).

    Bottles comes with toggle-switches for DXVK and DXVK-NVAPI, so what you really need is 64-bit nvcuda, and nvoptix. Those are located in the nvidia-libs archive in lib64/wine/x86_64-unix, and if you rename nvoptix.dll.so -> nvoptix.dll, and nvcuda.dll.so -> nvcuda.dll and just copy those into the bottle prefix under drive_c/windows/system32 you should be good to go.. (pay attention to "should" tho).

  • doo-wani-bee-ammdoo-wani-bee-amm Posts: 1
    edited October 4

    I have been following this thread for over a year and it has been incredibly informative.  I had DS running in Fedora 40 but without support for an older NVIDA GPU.  I was able to scrounge a newer GPU that ssopler's nvidia-libs supported.  I got setup_nvlibs.sh to run successfully but when I attempt to run nvml_setup.sh I receive this error:

    WINE_BIN is not set! 

    Example:  WINE_BIN='/home/user/winebinaries/wine-staging/'

    OBS.  Installing to system wine install is not recommended.

    Better use custom wine binary.

    I installed wine-staging, but I am unable to find the winebinares directory.  I am confused as to how to proceed.  Any help would be greatly appreciated.

    Post edited by doo-wani-bee-amm on
  • karlkarl Posts: 71

    I used to spend a fortune on Daz stuff, but haven't bought anything for two years, since I moved to Linux. I have a dual boot but only go into Windows for Daz. Result: I hardly use it any more.

    I ran Daz in Bottles and Lutris within Linux, and it works but is slow and clunky. I also tried Blender, but since I can't just load my Daz content, only export finished combinations from Daz, it's kind of useless to me for using what I bought.

    I wish they'd either release a proper Linux version, or make Daz open source so someone else can do it. I regularly consider just wiping the Windows drive and leaving Daz behind.

    Or I wish I'd started with Blender, and onyl bought Blender-compatible content.

  • brainmuffin said:

    After working for months, Studio is now broken for me under WINE-Staging. Not sure which update may have caused it.

    I just came here after an unfortunate update. I was running WINE staging on a Monjaro system (Arch linux based) and updating to 9.12 broke Photoshop CS6 (brushes dropdown menu stopped working). I tried updating to the latest version, 9.20, didn't help. Then I downgraded to 9.0, which solved the Photoshop, but broke DAZ 4.22. Every bottle I had (and I did have like 2 or 3, just in case) started complaining that DAZ can't run under admin rights. Made a new bottle, installed 4.23 (because that's all you can have right now) and my search stopped working in DAZ. Every time I try it, it just crashes DAZ, like clockwork.  

  • ssoplerssopler Posts: 22

    doo-wani-bee-amm said:

    I have been following this thread for over a year and it has been incredibly informative.  I had DS running in Fedora 40 but without support for an older NVIDA GPU.  I was able to scrounge a newer GPU that ssopler's nvidia-libs supported.  I got setup_nvlibs.sh to run successfully but when I attempt to run nvml_setup.sh I receive this error:

    WINE_BIN is not set! 

    Example:  WINE_BIN='/home/user/winebinaries/wine-staging/'

    OBS.  Installing to system wine install is not recommended.

    Better use custom wine binary.

    I installed wine-staging, but I am unable to find the winebinares directory.  I am confused as to how to proceed.  Any help would be greatly appreciated.

    I am not sure where Fedora puts the wine-staging binaries. For Ubuntu for instance, it is located in /opt/wine-staging. You cannot put the nvml libs there without sudo access, and it will be removed whenever system package is updated, so my preferred method is to copy this folder some place to your homefolder.. eg. /home/username/wine/binaries/wine-staging or something similar.

    If you do that, you use it like this: WINE_BIN=/home/username/wine/binaries/wine-staging ./nvml_setup.sh (obviously replacing /home/username with wherever your $HOME folder is)

    It is not needed for CUDA support, but when looking at the render settings in DAZ studio, it will list 2 "adapters", so it will be a bit more confusing. It works just as well with GPU acceleration when selecting the correct adapter, and is more or less cosmetic in that sense.

    Sveinar

  • ssoplerssopler Posts: 22

    Chanteur-de-Vent said:

    brainmuffin said:

    After working for months, Studio is now broken for me under WINE-Staging. Not sure which update may have caused it.

    I just came here after an unfortunate update. I was running WINE staging on a Monjaro system (Arch linux based) and updating to 9.12 broke Photoshop CS6 (brushes dropdown menu stopped working). I tried updating to the latest version, 9.20, didn't help. Then I downgraded to 9.0, which solved the Photoshop, but broke DAZ 4.22. Every bottle I had (and I did have like 2 or 3, just in case) started complaining that DAZ can't run under admin rights. Made a new bottle, installed 4.23 (because that's all you can have right now) and my search stopped working in DAZ. Every time I try it, it just crashes DAZ, like clockwork.  

    Might not be related, but i suddenly experienced all my "bottles" stopped working with CUDA... But that happened after i upgraded the NVIDIA driver to the latest version. The culprit is that you then need to update bottles using some flatpak update command (that i forgot.. maybe flatpak update com.usebottles.bottles ?). This downloads some GL "driver" to support newer nvidia driver. Got me stumped for a while...

    Bottles version of NVIDIA driver must match the installed system version...

    Sveinar

  • loopenoxloopenox Posts: 48

    Chanteur-de-Vent said:

    started complaining that DAZ can't run under admin rights.

    I got that error when I tried running Daz Studio under stable Wine. 9.21 staging runs it fine so far on my machine.

    Btw, HUGE thanks to all here who contribute to all those patches that make Studio run well under Wine, especially with CUDA support. You're true heroes.

Sign In or Register to comment.