SciBlend Advanced Core v.2.3.0 is a powerful add-on for Blender 4.2+ that represents a significant evolution from its predecessor, SciBlend-Core. This advanced version is characterized by its requirement for a more complex setup process, primarily due to the need to install VTK (Visualization Toolkit), netCDF4, and additional geospatial libraries within Blender's Python environment.
SciBlend bridges the gap between scientific data processing and high-quality 3D visualization. By integrating VTK, VTU, PVTU, NetCDF, and Shapefile capabilities directly into Blender, SciBlend allows researchers and scientists to create stunning, photorealistic visualizations of complex scientific and geospatial data.
Unlike SciBlend-Core, which primarily focused on importing data from Paraview, this advanced version offers deeper integration with scientific data formats through VTK, VTU, PVTU, NetCDF, and Shapefiles, allowing for more sophisticated data manipulations and visualizations directly within Blender. The addition of advanced geospatial features like Delaunay triangulation and terrain modeling makes it particularly powerful for working with geographic and topographic data.
-
Comprehensive Format Support:
- Import VTK (.vtk) files with legacy format support
- Full support for XML UnstructuredGrid Format (.vtu)
- Support for Parallel XML UnstructuredGrid Format (.pvtu)
- Support for NetCDF (.nc) and NetCDF4 (.nc4) files
- Support for Shapefiles (.shp) with advanced processing capabilities
- Preserves complex scientific data structures and attributes
-
Advanced Cell Type Support:
- Basic Elements: Vertex, Line, Pixel, Triangle Strip, Quad, Polygon
- 3D Elements: Tetrahedron, Hexahedron, Wedge, Pyramid, Voxel
- Advanced Elements: Hexagonal Prism, Pentagonal Prism, Polyhedron
- Linear Elements: Polyline, Poly-Vertex
- Shapefile Elements: Points, Lines, Polygons with Delaunay triangulation
-
Data Attribute Processing:
- Automatic conversion of cell data to point data
- Vector component separation (Magnitude, X, Y, Z)
- Independent visualization of each data component
- Automatic material generation for each attribute
- Delaunay triangulation for terrain point clouds
-
Advanced Animation Support: Create smooth animations from time-series data with automatic keyframing.
-
Dynamic Material Management: Automatically generate and apply materials based on data attributes.
-
Geometry Organization: Efficiently organize imported geometry into collections for better scene management.
-
Boolean Operations: Perform advanced boolean operations for data analysis and visualization.
-
Customizable Import Settings: Fine-tune import parameters such as scale, axis orientation, and frame range.
-
Advanced Visualization Options:
- Spherical Projection for global/planetary data when importing NetCDF files.
- Adjustable sphere radius and height scaling
- Support for both planar and spherical data representation
- Automatic handling of latitude/longitude coordinates
-
Blender 4.2 or higher
-
Python 3.11 (bundled with Blender 4.2+)
-
VTK 9.3.0 (installation instructions provided)
-
netCDF4 (installation instructions provided)
Installing VTK and netCDF4 within Blender's Python environment is a crucial step. Follow these instructions carefully:
First, ensure that Blender is using Python 3.11. Open Blender's Python Console and type:
import sys
print(sys.version)
You should see an output like Python 3.11.x
.
Blender includes its own Python environment, so we need to install VTK within that specific environment.
In your system’s terminal (not Blender's console), navigate to where Blender is installed.
cd /path_to_blender/blender-4.2.1-linux-x64/4.2/python/bin
cd C:\path_to_blender\blender-4.2.1-windows64\4.2\python\bin
Once in the correct directory, you can install VTK using pip
. Ensure that you’re installing a compatible version of VTK for Python 3.11.
./python3.11 -m pip install vtk==9.3.0
For Windows, the command will be:
python3.11 -m pip install vtk==9.3.0
4. Optional: Modify VTK Files to Fix Compatibility (In case of issues related to VTK Installation, very common if you have installed matplotlib in the Blender Python environment before):
After installing VTK, there may be some compatibility issues with certain imports that need to be addressed. We will modify some VTK Python files.
-
Open the
vtk.py
file located in Blender's Python environment:-
On Linux/macOS:
nano /path_to_blender/blender-4.2.1-linux-x64/4.2/python/lib/python3.11/site-packages/vtk.py
-
On Windows: Open the file at
C:\path_to_blender\blender-4.2.1-windows64\4.2\python\lib\python3.11\site-packages\vtk.py
using a text editor like Notepad.
-
-
Find the line that says:
from vtkmodules.vtkRenderingMatplotlib import *
-
Comment out this line by adding a
#
at the beginning:# from vtkmodules.vtkRenderingMatplotlib import *
-
Save and close the file.
-
Similarly, open the
all.py
file located in the same directory:-
On Linux/macOS:
nano /path_to_blender/blender-4.2.1-linux-x64/4.2/python/lib/python3.11/site-packages/vtkmodules/all.py
-
On Windows: Open the file at
C:\path_to_blender\blender-4.2.1-windows64\4.2\python\lib\python3.11\site-packages\vtkmodules\all.py
.
-
-
Comment out the same line as before:
# from vtkmodules.vtkRenderingMatplotlib import *
-
Save and close the file.
After installing VTK, install netCDF4 using pip in the Blender Python environment:
./python3.11 -m pip install netCDF4
python3.11 -m pip install netCDF4
After installing VTK and netCDF4, install the following packages using pip in the Blender Python environment:
./python3.11 -m pip install geopandas
./python3.11 -m pip install pytz
./python3.11 -m pip install shapely
./python3.11 -m pip install fiona
python3.11 -m pip install geopandas
python3.11 -m pip install pytz
python3.11 -m pip install shapely
python3.11 -m pip install fiona
- Download the SciBlend zip file from the releases page.
- In Blender, go to Edit > Preferences > Add-ons.
- Click "Install" and select the downloaded zip file.
- Enable the SciBlend addon by checking the box next to it.
When working with VTK files:
- Use the "Import VTK Animation" option in the SciBlend panel
- Select your file(s):
- For .vtk files: Select your legacy VTK files
- For .vtu files: Select all XML UnstructuredGrid files
- For .pvtu files: Select all Parallel XML UnstructuredGrid files
- Configure import settings:
- Set frame range for animations
- Adjust scale factor if needed
- Configure axis orientation
- Set up material options
For animation sequences:
- Select all files in your time series (e.g., time_0.vtu, time_1.vtu, time_2.vtu)
- Ensure files are properly numbered for correct sequence order
- The addon will automatically:
- Create keyframes for animation
- Handle timing between frames
- Organize files in sequential order
The data will be automatically:
- Converted to appropriate mesh formats
- Mapped to materials based on data attributes
- Organized into frame collections for time-series data
- Handled for missing or invalid data
When working with NetCDF files:
- Use the "Import NetCDF Animation" option in the SciBlend panel
- Select your .nc or .nc4 file
- Configure import settings:
- Choose the variable to visualize
- Set time dimension name (default: "time")
- Adjust scale factor if needed
- Configure axis orientation
For global or planetary data visualization:
- Enable "Spherical Projection" in the import settings
- Adjust "Sphere Radius" to set the base size of the sphere (default: 1.0)
- Use "Height Scale" to control the intensity of elevation changes (default: 0.01)
- Lower values (0.001-0.01) for subtle elevation changes
- Higher values (0.01-0.1) for more pronounced elevation differences
The data will be automatically:
- Mapped to colors using a customizable color ramp
- Organized into frame collections for time-series data
- Projected onto a sphere when using spherical projection
- Handled for missing values (NaN) and invalid data
Note: When using spherical projection, latitude/longitude coordinates will be automatically converted to 3D coordinates on the sphere's surface.
Note: The import process may take some time depending on the size and number of files in your sequence.
When working with Shapefile (.shp) data:
- Use the "Import Shapefile" option in the SciBlend panel
- Select your .shp file
- Configure import settings:
- Adjust scale factor if needed
- Configure axis orientation
- Set up material options
For terrain and point cloud data:
- Select the imported mesh object(s)
- Use the "Apply Delaunay" option to create a triangulated surface
- The addon will automatically:
- Process and remove duplicate points
- Handle z-colinear points
- Create a TIN (Triangulated Irregular Network) mesh
- Preserve original materials and attributes
The Delaunay triangulation feature supports:
- Native Blender CDT (Constrained Delaunay Triangulation) when available
- Custom triangulation algorithm as fallback
- Automatic handling of duplicate vertices
- Material transfer from source objects
- Automatic Material Generation: SciBlend creates materials based on VTK data attributes, allowing for immediate visualization of scalar fields.
- Frame-by-Frame Geometry Management: Imported geometries are organized into frame-specific collections for easy management of time-series data.
- Dynamic Boolean Operations: Perform real-time boolean operations on your data for advanced analysis and visualization techniques.
Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.
For questions, issues, or feature requests, please use the GitHub issue tracker or contact the maintainer at info@sciblend.com.