ColorRamp Node

ページ名:ColorRamp Node 2.8

~作成中~


 ≡ Reference
Add > Converter > ColorRamp

The Color Ramp Node is used for mapping values to colors with the use of a gradient.


Inputs

Factor

The Factor input is used as an index for the color ramp.


値 (0.0 - 1.0) を設定します。

{"target":"next","color":{"head":"#bbb"},"col_color":[]}
[0.0]0.250.50.751.0

Roughness: 0.0, Transmission: 1.0

Properties

Color Ramp

For controls see Color Ramp Widget.
https://docs.blender.org/manual/en/latest/interface/controls/templates/color_ramp.html#ui-color-ramp-widget
カラーランプウィジェット

Outputs

Image

Standard image output.
色が出力されます。

Alpha

Standard alpha output.
値が出力されます。

Examples

Creating an Alpha Mask

A powerful but often overlooked feature of the Color Ramp is to create an Alpha Mask, or a mask that is overlaid on top of another image, and, like a mask, allows some of the background to show through. The example map below shows how to use the Color Ramp node to do this:


../../../_images/compositing_types_converter_color-ramp_create-alpha-mask.png
Using the Color Ramp node to create an alpha mask.


In the map above, a black-and-white swirl image, which is lacking an alpha channel, is fed into the Color Ramp node as a Factor. (Technically, we should have converted the image to a value using the RGB to BW node, but hey, this works just as well since we are using a BW image as input.)


We have set the Color Ramp node to a purely transparent color on the left end of the spectrum, and a fully Red color on the right. As seen in the viewer, the Color Ramp node puts out a mask that is fully transparent where the image is black. Black is zero, so Color Ramp uses the color at the left end of the spectrum, which we have set to transparent. The Color Ramp image is fully red and opaque where the image is white (1.00).


We verify that the output image mask is indeed transparent by overlaying it on top of another image.


Colorizing an Image

The real power of Color Ramp is that multiple colors can be added to the color spectrum. This example compositing map takes a boring BW image and makes it a flaming swirl!


../../../_images/compositing_types_converter_color-ramp_colorizing-image.png
In this example, we have mapped the shades of gray in the input image to three colors, blue, yellow, and red, all fully opaque (Alpha of 1.00). Where the image is black, Color Ramp substitutes blue, the currently selected color. Where it is some shade of gray, Color Ramp chooses a corresponding color from the spectrum (bluish, yellow, to reddish). Where the image is fully white, Color Ramp chooses red.












シェアボタン: このページをSNSに投稿するのに便利です。


最近更新されたページ

トップページ

ようこそ※本サイトは、諸事情により、Blender Cycles memoから移植中のサイトです。現在、移植中のため内容が整っていない箇所が多数あります。しばらくの間は、お手数おかけしますが、オリジナ...

Wireframe Node

~作成中~ ≡ ReferenceAdd > Input > WireframeWireframe (ワイヤーフレーム) ノードは、Cycles に表示されるオブジェクトのエッジを取得するた...

Volume Info Node

 ≡ ReferenceAdd > Input > Volume InfoVolume Info ノードは、Smoke ドメインに関する情報を提供します。InputsなしProperties...

Value Node

 ≡ ReferenceAdd > Input > ValueValue (値) ノードは、ツリー内の他のノードに数値を入力するための単純なノードです。InputsなしPropertiesD...

UV Map Node

 ≡ ReferenceAdd > Input > UV MapUV Map ノードは、特定の UV マップを取得するために使用されます。アクティブな UV マップのみを提供する Textu...

Tangent Node

 ≡ ReferenceAdd > Input > TangentTangent (タンジェント) ノードは、Anisotropic BSDF Node のタンジェント方向を生成します。In...

RGB Node

 ≡ ReferenceAdd > Input > RGBRGB ノードは、他のノードに対して色情報を出力します。InputsなしPropertiesRGB ノードはカラー ピッカー ウィジ...

メニュー

>はじめに├ Cycles とは├ スタートガイド├ 基本的なライティング└ カメラについて本サイトの表記法についてキーボード ショートカット>リリース ノート├ Cycles リリースノート├ 2....

Light Path Node

 ≡ ReferenceAdd > Input > Light PathLight Path (ライトパス) ノードは、シェーダーがどの種類の入射レイ (incoming ray) に対して...

Light Rays

~作成中~Light Rays Ray types can be divided into four categories:Camera: the ray comes straight from th...

Musgrave Texture Node

 ≡ ReferenceAdd > Texture > Noise Texture2.9 Musgrave (マスグレイブ) テクスチャ ノードは、入力テクスチャ座標でフラクタル パーリン ...

IES Texture Node

 ≡ ReferenceAdd > Texture > IES TextureIES テクスチャは、IES ファイルに基づいて現実世界のライトをマッチングさせるために使用されます。IES フ...