Recent Posts

How to delete unnecessary materials in Blender.

GOAL

To delete unnecessary materials in Blender.

Environment

  • Windows 10
  • Blender 2.80

Method

In this scene there are 3 materials that has 3 colors, red, green and blue. The red material and green material are set to objects.

The blue material is not used now, but how to delete unnecessary material, the blue one?

Method 1. Find the material from “Blender File” and delete it.

Change the Display Mode of the Outliner into “Blender File”.

Open Material tab and right-click the material to delete.

Method 2. delete materials in “Orphan Data”.

Change the Display Mode of the Outliner into “Orphan Data”. The items displayed in the display mode “Orphan Data” are items that are not used or connected to any other items.

Open Material tab and right-click the material to delete.

Method 3. Reload the blender file.

Save the file and reopen it. All orphan data are automatically deleted when the file is reloaded.

[Tips]Use monochrome images as alpha map in Blender.

GOAL

To use monochrome images as alpha map in Blender, for example hair or eyelash.

hair texture for base color
hair texture for alpha map
rendered result

Method

Create new material for hair object. Select Principled BSDF as surface.

Set Image Texture to Base Color socket.

Open hair texture for base color.

Set Image Texture to Alpha socket.

Open hair texture for alpha map.

This procedure is insufficient because the alpha channel of the image is used for alpha map. Open Node Editor and reconnect nodes.

Use Color socket of the image.

[error]No such file or directory (header file)

Error Detail

When I compile c++ file using g++ command as below, the fatal error: numpy/arrayobject.h: No such file or directory occurred.

>g++ filename.cpp -std=c++11 -IC:\Python27\include -lpython2.7
In file included from filename.cpp:1:
../libs/matplotlibcpp.h:17:12: fatal error: numpy/arrayobject.h: No such file or directory
   17 | #  include <numpy/arrayobject.h>

matplotlibcpp.h in the source code is c++ header file to plot a graph.

numpy/arrayobject.h is in the directory C:\Python27\Lib\site-packages\numpy\core\include\numpy.

Cause

The compiler could not find arrayobject.h because that file is not included in the include search path.

Solution

Add the path to arrayobject.h using -I command line option as follows.

>g++ filename.cpp -std=c++11 -IC:\Python27\include -lpython2.7 -IC:\Python27\Lib\site-packages\numpy\core\include

Categories

AfterEffects Algorithm Artificial Intelligence Blender C++ Computer Graphics Computer Science Daily Life DataAnalytics Event Game ImageProcessing JavaScript Kotlin mathematics Maya PHP Python SoftwareEngineering Tips Today's paper Tools TroubleShooting Unity Visual Sudio Web Windows WordPress 未分類