BlendLuxCore Installation: Difference between revisions

From LuxCoreRender Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
<b>Note: This version of the guide is valid as of Blender 4.2 LTS and BlendLuxCore v2.10. If you notice any incompatibilities with later versions, please inform the developers thorugh one of the community channels.
The guide to install legacy versions can be found on the page [[BlendLuxCore Installation (legacy)]] </b>
== Downloading ==
== Downloading ==


* Visit [https://luxcorerender.org/download/ the download page] to download a zip archive for one of the latest version.
* Visit [https://luxcorerender.org/download/ the download page] to find the latest release versions.
* download the zip archive for one of the latest versions.
* Older versions of BlendLuxCore can be found on [https://github.com/LuxCoreRender/BlendLuxCore/releases the GitHub releases page].
* Older versions of BlendLuxCore can be found on [https://github.com/LuxCoreRender/BlendLuxCore/releases the GitHub releases page].


== Installation ==
== Installation ==


<b>Note: This verison of the guide is valid as of Blender 4.2 LTS and BlendLuxCore v2.10. If you notice any incompatibilities with later versions, please inform the developers thorugh one of the community channels.
Follow the official Blender instructions for [https://docs.blender.org/manual/en/4.2/editors/preferences/extensions.html#get-extensions installing an extension]. Follow the steps for "Install from Disk":
A guide to install older versions can be found further below </b>
* Open up the preferences menu: "Edit" -> "Preferences" (first picture)
 
* Go to the "Get Extensions" tab (second picture)
Follow the official Blender instructions for [https://docs.blender.org/manual/en/4.2/editors/preferences/extensions.html#get-extensions installing an extension]. Follow the steps for the "Install from Disk".
* Open the menu in the top right corner and select "Install from disk..." (second picture)
* Open up the preferences menu ("Edit" -> "Preferences")
* Select the zip archive.
* Go to the "Get Extensions" tab
* After the installation, BlendLuxCore should automatically be activated. You can verify this in the "Add-ons" tab.
* Open the menu in the top right corner and select "Install from disk..."
* It is recommended to restart Blender before using BlendLuxCore, to ensure all features are loaded correctly.
* Select the zip archive. After installation, BlendLuxCore should automatically be activated. You can verify this in the "Add-ons" tab.


[[ File:Install-2.10-1.png | 372px ]]
[[ File:Install-2.10-1.png | 372px ]]


[[ File:Install-2.10-2.png | 733px ]]
[[ File:Install-2.10-2.png | 733px ]]
== Common Problems and Errors ==
Some fixes for common problems are listed in the [https://wiki.luxcorerender.org/BlendLuxCore_FAQ#I_can_not_enable_the_BlendLuxCore_addon.2C_it_shows_errors FAQ].
== Installation - Legacy Versions ==
If you are trying to install older versions of BlendLuxCore (< v2.10) on older versions of Blender (< v4.0), the following instructions might provide you with some additional insight.
* Follow the [https://docs.blender.org/manual/en/dev/editors/preferences/addons.html#rd-party-add-ons Blender Manual] (open user preferences, choose "install from file", select the downloaded .zip archive, click open, enable the addon in the list)
* If you have old LuxRender addon enabled and have troubles activating new LuxCore addon, it would be a good idea to disable LuxRender addon first, save Blender user settings, restart Blender and then try again.
On Windows, you have to install some additional software so LuxCore can run:<br>
'''For version v2.0:'''
* [https://www.microsoft.com/en-US/download/details.aspx?id=40784 Visual C++ Redistributable Packages for Visual Studio 2013]
'''For version v2.1 and later:'''
* [https://aka.ms/vs/15/release/vc_redist.x64.exe Microsoft Visual C++ Redistributable for Visual Studio 2017]
* [https://software.intel.com/sites/default/files/managed/59/aa/ww_icl_redist_msi_2018.3.210.zip Intel C++ redistributable]
Note: the BlendLuxCore addon is fully self-contained and includes all necessary LuxCore binaries, you do not need to install the standalone version of LuxCore.


== How to Update ==
== How to Update ==


Open the Blender user preferences (Ctrl+Alt+U), then enter "luxcore" into the search field and expand the entry so you see all the info and settings of the addon.
To update BlendLuxCore, you need to first uninstall the current version and then install the new version as outlined in section [[#Installation|Installation]].


To uninstall:
* Open up the preferences menu: "Edit" -> "Preferences".
* Go to the "Get Extensions" tab.
* Click on the arrow to the right of the BlendLuxCore item to open up the actions menu.
* Click on "Uninstall".


[[ File:Updater_1.png | 900px ]]
== Testing Experimental Versions ==


If you want to follow the latest development status, support development by testing new features, or you need an urgent bug-fix, then a few steps are necessary to use the latest versions.


Next, click the "Change Version" button and select the desired version from the list.<br>
What is important to understand in this context is the separation between "BlendLuxCore" and "LuxCore":
The current version is marked with a green checkmark, while unstable alpha and beta versions are marked with a warning sign.<br>
* LuxCore is the core library, written in C++, and distributed as "pyluxcore".
Click OK to start the update process.
* BlendLuxCore is the interface between Blender and pyluxcore, written in python.
* The regular releases of BlendLuxCore will automatically download a specific, fixed version of pyluxcore.
* There is no automatic updating of either BlendLuxCore or pyluxcore, so that stability for production is not compromised.
* When using "latest" builds, both have to be installed separately


For the latest version of BlendLuxCore:
* download the [https://github.com/LuxCoreRender/BlendLuxCore/releases/tag/latest "Latest"] release in GitHub and install it following the instructions in [[#How_to_Update|How to Update]] and [[#Installation|Installation]].
* Note: This version will still install a (pre-configured) official release of pyluxcore, NOT its latest build.


[[ File:Updater_2.png | 900px ]]
To also get the latest version of pyluxcore:
* You will need an account on GitHub and log in.
* Go to the [https://github.com/LuxCoreRender/LuxCore/actions Actions] page of the LuxCore repository.
* Click on the latest workflow run. If you are in doubt which one is suitable, please ask in one of the support or community channels.
* At the bottom of the page, you find the "Artifacts" section.
* Download the correct file for your operating system and the python version used by your Blender version. The python (minor-)version is indicated by the last number of the file name
** Example: "cibw-wheels-windows-latest-11" is for Windows and python 3.11 --> <b>Python 3.11 is the version you need for Blender 4.X</b>
* Unpack the zip-file you downloaded to get a .whl-file
* This file needs to be placed in a subfolder pyluxcore_custom/ inside the BlendLuxCore extension folder
** On Windows:<br>C:\Users\<b>USERNAME</b>\Appdata\Roaming\Blender Foundation\Blender\<b>BLENDER_VERSION</b>\extensions\user_default\BlendLuxCore\pyluxcore_custom\
** On Linux:<br>/home/<b>USERNAME</b>/.config/blender/<b>BLENDER_VERSION</b>/extensions/user_default/BlendLuxCore/pyluxcore_custom/
** on macOS:<br>/Users/<b>USERNAME</b>/Library/Application Support/Blender/<b>BLENDER_VERSION</b>/extensions/user_default/BlendLuxCore/pyluxcore_custom/
* Note: there must only be one .whl file in the pyluxcore_custom/ folder at any time!
* When you empty the pyluxcore_custom/ folder, the pre-defined release version will be installed again.


== Offline Installation ==


'''Blender will appear to hang while downloading and installing the update''', so please be patient. If you opened the console before updating, you can follow the progress there. (Window -> Toggle System Console on Windows, on Linux start Blender from terminal).
It is possible to install BlendLuxCore wihtout internet access, or in an environment where the regular installation method is blocked for network security reasons (i.e. some company networks).


'''After the update is complete, restart Blender for the changes to take effect.'''
In addition to the BlendLuxCore zip-file itself (see [[#Downloading | Downloading]]), you need to have the python-wheel of pyluxcore, and any further python-wheels that are dependencies, in the a appropriate version for your platform.
For BlendLuxCore v2.10.0-alpha.2, these will be:
* pyluxcore-2.10.0a2
* numpy-2.2.4
* nvidia_cuda_nvrtc_cu12-12.8.93


=== Important for users of v2.0 ===
You can search and download these manually from [https://pypi.org PyPi], or copy them from another computer where the installation was successful. In the latter case, you should find the files in the wheels/ subdirectory of the extension installaton path (see [[#Testing_Experimental_Versions | Testing Experimental Versions]]).


Note that there was a bug in the updater which was fixed in v2.1alpha1.<br>
Once you have obtained the files, follow these steps:
It prevents you from updating from v2.1alpha0 or earlier to versions after v2.1alpha0.<br>
* Install the addon as described in [[#Installation | Installation]]. This will fail to import pyluxcore, as expected, but create the extensions directory required for the next steps.<br>In Blender, the BlendLuxCore addon will be shown as installed, but disabled.
So you can only use the updater if you have at least v2.1alpha1 installed.
* Close Blender.
* Create a subdirectoy install_offline/ in the extension folder.
* Place the python-wheels in the install_offline/ subdirectory.
* Open Blender.
* Open the preferences menu, go to the Add-Ons tab.
* Activate BlendLuxCore by clicking the checkbox next to the BlendLuxCore item (see image).
* pyluxcore should now be installed. The install_offline/ directory will be deleted automatically if the installation was successful.
* Close and reopen Blender, and select LuxCoreRender as the rendering engine to verify that everythig works correctly.


If you have v2.0 installed, you will have to follow the remove steps below, then download the v2.1 release zip package, and follow the install steps on the top of this page.
[[ File:BlendLuxCore_activate.png | 786px ]]


== How to Remove ==
== Common Problems and Errors ==
 
To remove the addon:
* Open Blender's user preferences
* Search for LuxCore
* '''Deactivate''' the addon (don't press remove yet)
* Save the user preferences
* Restart Blender
* Open user preferences, navigate to the addon again
* Now press the '''remove''' button
 
It is needed to deactivate the addon before removing it because it contains some libraries (DLLs) which can not be deleted while being loaded on some operating systems (e.g. Windows).


Some fixes for common problems are listed in the [https://wiki.luxcorerender.org/BlendLuxCore_FAQ#I_can_not_enable_the_BlendLuxCore_addon.2C_it_shows_errors FAQ].


[[Category:BlendLuxCore]]
[[Category:BlendLuxCore]]

Latest revision as of 14:01, 13 April 2025

Note: This version of the guide is valid as of Blender 4.2 LTS and BlendLuxCore v2.10. If you notice any incompatibilities with later versions, please inform the developers thorugh one of the community channels.

The guide to install legacy versions can be found on the page BlendLuxCore Installation (legacy)

Downloading

Installation

Follow the official Blender instructions for installing an extension. Follow the steps for "Install from Disk":

  • Open up the preferences menu: "Edit" -> "Preferences" (first picture)
  • Go to the "Get Extensions" tab (second picture)
  • Open the menu in the top right corner and select "Install from disk..." (second picture)
  • Select the zip archive.
  • After the installation, BlendLuxCore should automatically be activated. You can verify this in the "Add-ons" tab.
  • It is recommended to restart Blender before using BlendLuxCore, to ensure all features are loaded correctly.

How to Update

To update BlendLuxCore, you need to first uninstall the current version and then install the new version as outlined in section Installation.

To uninstall:

  • Open up the preferences menu: "Edit" -> "Preferences".
  • Go to the "Get Extensions" tab.
  • Click on the arrow to the right of the BlendLuxCore item to open up the actions menu.
  • Click on "Uninstall".

Testing Experimental Versions

If you want to follow the latest development status, support development by testing new features, or you need an urgent bug-fix, then a few steps are necessary to use the latest versions.

What is important to understand in this context is the separation between "BlendLuxCore" and "LuxCore":

  • LuxCore is the core library, written in C++, and distributed as "pyluxcore".
  • BlendLuxCore is the interface between Blender and pyluxcore, written in python.
  • The regular releases of BlendLuxCore will automatically download a specific, fixed version of pyluxcore.
  • There is no automatic updating of either BlendLuxCore or pyluxcore, so that stability for production is not compromised.
  • When using "latest" builds, both have to be installed separately

For the latest version of BlendLuxCore:

  • download the "Latest" release in GitHub and install it following the instructions in How to Update and Installation.
  • Note: This version will still install a (pre-configured) official release of pyluxcore, NOT its latest build.

To also get the latest version of pyluxcore:

  • You will need an account on GitHub and log in.
  • Go to the Actions page of the LuxCore repository.
  • Click on the latest workflow run. If you are in doubt which one is suitable, please ask in one of the support or community channels.
  • At the bottom of the page, you find the "Artifacts" section.
  • Download the correct file for your operating system and the python version used by your Blender version. The python (minor-)version is indicated by the last number of the file name
    • Example: "cibw-wheels-windows-latest-11" is for Windows and python 3.11 --> Python 3.11 is the version you need for Blender 4.X
  • Unpack the zip-file you downloaded to get a .whl-file
  • This file needs to be placed in a subfolder pyluxcore_custom/ inside the BlendLuxCore extension folder
    • On Windows:
      C:\Users\USERNAME\Appdata\Roaming\Blender Foundation\Blender\BLENDER_VERSION\extensions\user_default\BlendLuxCore\pyluxcore_custom\
    • On Linux:
      /home/USERNAME/.config/blender/BLENDER_VERSION/extensions/user_default/BlendLuxCore/pyluxcore_custom/
    • on macOS:
      /Users/USERNAME/Library/Application Support/Blender/BLENDER_VERSION/extensions/user_default/BlendLuxCore/pyluxcore_custom/
  • Note: there must only be one .whl file in the pyluxcore_custom/ folder at any time!
  • When you empty the pyluxcore_custom/ folder, the pre-defined release version will be installed again.

Offline Installation

It is possible to install BlendLuxCore wihtout internet access, or in an environment where the regular installation method is blocked for network security reasons (i.e. some company networks).

In addition to the BlendLuxCore zip-file itself (see Downloading), you need to have the python-wheel of pyluxcore, and any further python-wheels that are dependencies, in the a appropriate version for your platform. For BlendLuxCore v2.10.0-alpha.2, these will be:

  • pyluxcore-2.10.0a2
  • numpy-2.2.4
  • nvidia_cuda_nvrtc_cu12-12.8.93

You can search and download these manually from PyPi, or copy them from another computer where the installation was successful. In the latter case, you should find the files in the wheels/ subdirectory of the extension installaton path (see Testing Experimental Versions).

Once you have obtained the files, follow these steps:

  • Install the addon as described in Installation. This will fail to import pyluxcore, as expected, but create the extensions directory required for the next steps.
    In Blender, the BlendLuxCore addon will be shown as installed, but disabled.
  • Close Blender.
  • Create a subdirectoy install_offline/ in the extension folder.
  • Place the python-wheels in the install_offline/ subdirectory.
  • Open Blender.
  • Open the preferences menu, go to the Add-Ons tab.
  • Activate BlendLuxCore by clicking the checkbox next to the BlendLuxCore item (see image).
  • pyluxcore should now be installed. The install_offline/ directory will be deleted automatically if the installation was successful.
  • Close and reopen Blender, and select LuxCoreRender as the rendering engine to verify that everythig works correctly.

Common Problems and Errors

Some fixes for common problems are listed in the FAQ.