BlendLuxCore Installation: Difference between revisions

From LuxCoreRender Wiki
Jump to navigation Jump to search
Byob (talk | contribs)
No edit summary
Update example files for offline installation.
 
(8 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 ==
* 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].
== Installation ==
== Installation ==


* Visit [https://luxcorerender.org/download/ the download page] and download the zip archive for your platform.
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":
* 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)
* Open up the preferences menu: "Edit" -> "Preferences" (first picture)
* 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.
* 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.


On Windows, you have to install some additional software so LuxCore can run:<br>
[[ File:Install-2.10-1.png | 372px ]]
'''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]


[[ File:Install-2.10-2.png | 733px ]]


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 ==


== Common Problems and Errors ==
To update BlendLuxCore, you need to first uninstall the current version and then install the new version as outlined in section [[#Installation|Installation]].


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].
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".


== How to Update ==
== Testing Experimental Versions ==


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.
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


[[ File:Updater_1.png | 900px ]]
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.


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.


Next, click the "Change Version" button and select the desired version from the list.<br>
== Offline Installation ==
The current version is marked with a green checkmark, while unstable alpha and beta versions are marked with a warning sign.<br>
Click OK to start the update process.


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).


[[ File:Updater_2.png | 900px ]]
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.


Example: For BlendLuxCore v2.10.0-rc.1, these will be:
* pyluxcore-2.10.0
* numpy-2.2.5
* nvidia_cuda_nvrtc_cu12-12.8.93


'''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).
Example part 2: For Windows, you are looking for download links like the following:


'''After the update is complete, restart Blender for the changes to take effect.'''
[https://files.pythonhosted.org/packages/21/5b/76599c040e0873dd14885850f0e35d1d314f8abdf01200ebeb0b75422161/pyluxcore-2.10.0-cp311-cp311-win_amd64.whl pyluxcore]


=== Important for users of v2.0 ===
[https://files.pythonhosted.org/packages/98/89/0c93baaf0094bdaaaa0536fe61a27b1dce8a505fa262a865ec142208cfe9/numpy-2.2.5-cp311-cp311-win_amd64.whl numpy]


Note that there was a bug in the updater which was fixed in v2.1alpha1.<br>
[https://files.pythonhosted.org/packages/45/51/52a3d84baa2136cc8df15500ad731d74d3a1114d4c123e043cb608d4a32b/nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-win_amd64.whl nvidia-cuda-nvrtc]
It prevents you from updating from v2.1alpha0 or earlier to versions after v2.1alpha0.<br>
So you can only use the updater if you have at least v2.1alpha1 installed.


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.
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]]).


== How to Remove ==
Once you have obtained the files, follow these steps:
* 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.
* 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.


To remove the addon:
[[ File:BlendLuxCore_activate.png | 786px ]]
* 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).
== 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].


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

Latest revision as of 11:58, 28 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.

Example: For BlendLuxCore v2.10.0-rc.1, these will be:

  • pyluxcore-2.10.0
  • numpy-2.2.5
  • nvidia_cuda_nvrtc_cu12-12.8.93

Example part 2: For Windows, you are looking for download links like the following:

pyluxcore

numpy

nvidia-cuda-nvrtc

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.