/blender-matcap-generator

Blender generator for MatCaps / "Sphere Textures".

Primary LanguagePythonMIT LicenseMIT

NOTE: Due to the popularity of this addon (notably VRchat gumroad creators - I see you selling the defaults!) but the underwhelming support of it's development ($0 in donations compared to thousands of $ in sales of it's outputs), future development of the free repo will cease.

A paid release of a more feature complete version is under development. For now, if you have benefited from this generator, I'd appreciate any donations 👇

ko-fi

Blender Matcap Generator

matcapgen_github

Blender generator for MatCaps / "Sphere Textures".

This is a generator for Matcap textures using a combination of various lighting setups, including 'shadow lights' which remove light, and Blender's material node setup.

Basic materials have been added, but it is compatible with any node groups that can be applied to a basic UV Sphere.

Output images can be used anywhere! These are commonly used in various (Unity) shaders and sculpting programs.

Installation

Both a raw .blend file and a startup file have been included. I highly suggest using the startup file - you can install it as seen here:

image

This will mean that you can access the initial file at any time. It will not replace your initial startup file, it simply adds a new workspace you can select on a new project - meaning you can experiment with the file and return to the inital state of the generator when required.

If you wish to override the inital generator file (perhaps you've added materials or lighting setups, etc), you can unzip the MatcapGen.zip and overwrite the startup.blend with your new file. Make sure the filename remains to be startup.blend - rename it if necessary

You can then rezip and overwrite the original by running the Install Application Template again:

image

Tutorial

Usage is simple - arrange lights and material as desired, then render the Viewport as using Viewport Render Image! (ctrl + ;)

Follow the built in Text Editor instructions to ensure your material preview is setup correctly!

If you add or create a material, make sure it is marked as having a Fake User:

image

This will ensure it will not be removed if it is not currently in use.

Material and Lights

This workspace is the main scene where you have direct access to the Material for the sphere that generates the Matcap. You also have access to a variety of preset lights. These will react differently depending on your material setup - some sun lights set up as rim lights will be VERY powerful with certain materials. Be warned.

Notes and preview here:

image

Image Input Node

This workspace allows you to easily input an image to be used as a HDRI for the scene. This works in combination with the Material and Lights workspace and will drastically change results.

You can use any image. There is a node called Skew that can be activated to warp the image, which may offer more desireable results for non-HDRI inputs.

Notes and preview:

image

Matcap Testing (preview)

There is a workspace for previewing called 'Matcap Testing. This contains a camera setup and a model that uses different forms of shading / modelling to get an idea of what your matcap will look like when in use:

image

You can install Matcaps into Blender as shown below. You will need to do this to test them within Blender. Blender Matcap Install ENG

Texture Adjust

Basic workspace for adjusting / painting over a previously rendered Matcap Texture.

This workspace is still under construction and ideally will have more preset features in the future. Currently it is capable of minor manual edits to matcaps, which can still make all the difference (!)

image This result can be saved and reimported follow the Matcap Testing instructions above.

Filtering

Compositing workspace for editing rendered Matcap Textures further.

Contains transform properties - flip, rotate etc - as trivial as they might seem, they can drastically change output result as they effectively move the baked lighting result around by a large factor.

This result can be saved and reimported follow the Matcap Testing instructions above.

image

Premade Matcaps

You can pick up an organised master collection, as well as some curated matcap sets made using this generator here: https://nova-works.booth.pm/