Blender: Difference between revisions
m Add to Applications category |
Fix header capitalization to align with Manual of Style |
||
| Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
If you want to install Blender with support for compute APIs, see: [[#Advanced | If you want to install Blender with support for compute APIs, see: [[#Advanced installation]] | ||
== Configuration == | == Configuration == | ||
=== Installing | === Installing with additional Python packages === | ||
To install additional Python modules into Blender, use the <code>withPackages</code> attribute. | To install additional Python modules into Blender, use the <code>withPackages</code> attribute. | ||
| Line 74: | Line 74: | ||
}} | }} | ||
== Tips | == Tips and tricks == | ||
=== Blendfarm === | === Blendfarm === | ||
| Line 91: | Line 91: | ||
}} | }} | ||
== Advanced | == Advanced installation == | ||
* [[#Binary | * [[#Binary packages]] for Blender binary packages with support for all APIs | ||
* [[#CUDA & OptiX]] for support for NVIDIA's CUDA & OptiX | * [[#CUDA & OptiX]] for support for NVIDIA's CUDA & OptiX | ||
* [[#HIP]] for support for AMD's HIP | * [[#HIP]] for support for AMD's HIP | ||
* [[#oneAPI]] for support for Intel's oneAPI | * [[#oneAPI]] for support for Intel's oneAPI | ||
* [[#Last | * [[#Last resorts]] if all other methods don't work for your situation | ||
=== Binary | === Binary packages === | ||
These are alternative distribution methods that package the Blender binaries, meaning they have support for all APIs. | These are alternative distribution methods that package the Blender binaries, meaning they have support for all APIs. | ||
==== Steam ==== | ==== Steam ==== | ||
Installing [https://store.steampowered.com/app/365670/Blender/ Blender through Steam] will run Linux native Blender in the Steam Runtime environment, and it will receive automatic updates through Steam. Note that if you make Steam run the Windows version (through Proton) by selecting "Force the use of a specific Steam Play compatibility tool" under Properties > Compatibility, the APIs will fail as they will not have the relevant Windows drivers. | Installing [https://store.steampowered.com/app/365670/Blender/ Blender through Steam] will run Linux native Blender in the Steam Runtime environment, and it will receive automatic updates through Steam. Note that if you make Steam run the Windows version (through Proton) by selecting "Force the use of a specific Steam Play compatibility tool" under Properties > Compatibility, the APIs will fail as they will not have the relevant Windows drivers. | ||
==== The blender-bin | ==== The blender-bin flake ==== | ||
The unofficial [https://github.com/edolstra/nix-warez/tree/master/blender blender-bin] flake, provided by edolstra, packages the binary release of Blender for NixOS, and hosts it on FlakeHub [https://flakehub.com/flake/edolstra/blender-bin?view=usage here]. The following demonstrates how to add the flake to a [[NixOS_system_configuration#Defining_NixOS_as_a_flake|flake-based configuration]]. | The unofficial [https://github.com/edolstra/nix-warez/tree/master/blender blender-bin] flake, provided by edolstra, packages the binary release of Blender for NixOS, and hosts it on FlakeHub [https://flakehub.com/flake/edolstra/blender-bin?view=usage here]. The following demonstrates how to add the flake to a [[NixOS_system_configuration#Defining_NixOS_as_a_flake|flake-based configuration]]. | ||
| Line 156: | Line 156: | ||
Compiling Blender is very resource-intensive, so if you are unable to use a binary cache, please see the associated warning and information in [[CUDA#Enabling CUDA In Packages]]. | Compiling Blender is very resource-intensive, so if you are unable to use a binary cache, please see the associated warning and information in [[CUDA#Enabling CUDA In Packages]]. | ||
==== Community | ==== Community flakes ==== | ||
In addition to the [[#The blender-bin Flake|#blender-bin flake]], there is also [https://github.com/adithyagenie/blender-cuda-nixos blender-cuda-nixos], which compiles Blender with <code>cudaSupport</code> enabled and caches it on cachix so you don't need to build it yourself. For the most up-to-date instructions on adding it to your configuration, see its [https://github.com/adithyagenie/blender-cuda-nixos/blob/master/README.md README]. | In addition to the [[#The blender-bin Flake|#blender-bin flake]], there is also [https://github.com/adithyagenie/blender-cuda-nixos blender-cuda-nixos], which compiles Blender with <code>cudaSupport</code> enabled and caches it on cachix so you don't need to build it yourself. For the most up-to-date instructions on adding it to your configuration, see its [https://github.com/adithyagenie/blender-cuda-nixos/blob/master/README.md README]. | ||
| Line 182: | Line 182: | ||
Currently, Nixpkgs has extremely limited oneAPI support (see {{issue|367722|<nowiki>the tracking issue</nowiki>}}), which is explicitly blocking {{issue|447245|Blender oneAPI support}}. As such, the current only way to have oneAPI support on NixOS is through one of the [[#Binary Packages|#Binary Packages]]. | Currently, Nixpkgs has extremely limited oneAPI support (see {{issue|367722|<nowiki>the tracking issue</nowiki>}}), which is explicitly blocking {{issue|447245|Blender oneAPI support}}. As such, the current only way to have oneAPI support on NixOS is through one of the [[#Binary Packages|#Binary Packages]]. | ||
=== Last | === Last resorts === | ||
If nothing else works for your situation, you can also download the Blender binary from [https://www.blender.org/download/ blender.org] and run it in NixOS using a program like [[Nix-ld|nix-ld]] or [https://github.com/thiagokokada/nix-alien nix-alien], patch the binary manually (see: [[Packaging/Binaries]]), or try using a container like [[Distrobox]] (see: [https://distrobox.it/useful_tips/#using-the-gpu-inside-the-container Distrobox: Using the GPU Inside the Container]). | If nothing else works for your situation, you can also download the Blender binary from [https://www.blender.org/download/ blender.org] and run it in NixOS using a program like [[Nix-ld|nix-ld]] or [https://github.com/thiagokokada/nix-alien nix-alien], patch the binary manually (see: [[Packaging/Binaries]]), or try using a container like [[Distrobox]] (see: [https://distrobox.it/useful_tips/#using-the-gpu-inside-the-container Distrobox: Using the GPU Inside the Container]). | ||
== Known | == Known issues == | ||
=== UI is dim on Vulkan backend and KDE Plasma === | === UI is dim on Vulkan backend and KDE Plasma === | ||