TexCut creates optimized 2D meshes from images with transparency by following the outline of non-transparent pixels. This significantly reduces pixel overdraw compared to standard quad meshes, making it ideal for scenes with lots of overlapping alpha-masked objects like forests, grass, and foliage.
Blender Version: 4.0 and above (including Blender 5.0+)
This addon is compatible with Blender 4.x and 5.x. It automatically detects your Blender version and uses the appropriate API:
- Blender 4.0-4.1: Uses legacy blend_method and shadow_method properties
- Blender 4.2+: Uses the new EEVEE Next surface_render_method
- Blender 5.0+: Fully tested and compatible
For Blender 3.x users, please use version 2.2.0 of this addon.
- Analyzes image alpha channel to detect non-transparent regions
- Generates mesh geometry that follows the transparency outline
- Automatically applies the image as a texture
- Maintains image aspect ratio
- User-adjustable boundary offset (prevents edge clipping)
Optimized mesh following the leaf outline, eliminating transparent pixels
Complex tree shape with efficient geometry matching the visible foliage
- Download the latest release zip from Releases
- In Blender, go to
Edit > Preferences > Add-ons - Click
Install...and select the downloaded zip file - Enable the add-on by checking the checkbox next to "Image: TexCut"
That's it! The add-on is ready to use immediately.
This add-on only requires:
numpy✅ (included with Blender)
No external dependencies required - everything needed is bundled with Blender.
- Open an image in Blender's Image Editor
- In the Image Editor sidebar (press
Nto toggle), find the TexCut panel - Click "Create Mesh from Image"
- Adjust settings in the dialog:
- Alpha Threshold: How transparent a pixel needs to be to ignore (default: 0.01)
- Boundary Offset: Extra pixels around the edge to prevent clipping (default: 8px, minimum: 1px)
- Click OK
The add-on will:
- Analyze the alpha channel
- Generate an optimized mesh following the non-transparent regions
- Apply the image as a texture with proper alpha blending
- Scale the mesh to maintain the image's aspect ratio
- Add the mesh to your scene
Standard quad meshes render all pixels, including fully transparent ones. TexCut's outline-based meshes only render visible pixels, which can significantly improve performance in scenes with:
- Dense forests and vegetation
- Overlapping foliage cards
- Particle systems with alpha-masked textures
- Billboard sprites
In scenes with many overlapping transparent objects, reducing overdraw can lead to:
- Faster rendering times
- Better GPU performance
- Reduced memory bandwidth usage
The add-on works by:
- Loading the image using Blender's image API and extracting the alpha channel
- Creating a binary mask based on an alpha threshold
- Dilating the mask by N pixels (boundary offset) to prevent edge clipping
- Detecting contours using Moore neighbor tracing algorithm
- Simplifying contours using Ramer-Douglas-Peucker algorithm
- Creating mesh geometry as an n-gon face
- Setting up UV coordinates for proper texture mapping
- Configuring shader nodes with alpha clipping
All image processing is done with pure NumPy and Blender's native APIs - no external dependencies required.
The boundary offset dilation serves two purposes:
- Prevents edge clipping - Ensures texture edges aren't cut off
- Reduces self-intersections - Smooths the boundary to create valid polygons
Testing showed that 1+ pixel dilation prevents 100% of self-intersections across all test images.
See CHANGELOG.md for detailed version history.
Current Version: 4.0.0
- Zero external dependencies - works out of the box with Blender
- Replaced OpenCV with pure NumPy + Blender API implementation
- Uses Moore neighbor tracing for contour detection
- Uses Ramer-Douglas-Peucker algorithm for contour simplification
- No pip installation required
- Ready for Blender Extension Platform
- Performance: ~0.05-0.35s processing time (slightly slower than OpenCV but instant to users)
- Quality: Identical visual results to OpenCV version
Version 2.3.1
- Removed Pillow (PIL) dependency - only requires OpenCV
- Simpler installation with fewer dependencies
Version 2.3.0
- Blender 4.x compatibility (4.0, 4.1, 4.2, 4.3+)
- Automatic API detection for different Blender versions
- Support for new EEVEE Next rendering system (Blender 4.2+)
- Updated installation instructions for Blender 4.x
Version 2.2.0
- Removed Shapely dependency (only OpenCV required)
- Minimum boundary offset: 1 pixel (prevents self-intersections)
- Simpler installation
- Smaller package size
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
You are free to use, modify, and distribute this software under the terms of the GPL-3.0 license. See the GNU GPL-3.0 License for details.
Contributions, bug reports, and feature requests are welcome!