-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlphaSplit.html
More file actions
51 lines (42 loc) · 2.61 KB
/
AlphaSplit.html
File metadata and controls
51 lines (42 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Alpha Split</title>
<link rel="stylesheet" href="./styles/styles.css">
<script src="./scripts/script.js" defer></script>
</head>
<body>
<nav class="dummy">
<ul class="nav-link">
<li><a href="./index.html">Home</a></li>
<li><a href="./AlphaSplit.html">Using the Alpha channel to split the Alpha and RGB</a></li>
</ul>
</nav>
<div class="dummy">
<h1 class="hea">GLASS + AE COMBO</h2>
<p class="desc">Another thing you can do in blender with this method is plug the alpha into the factor value of the "mix color" node.
<br> this <b><i>separates</i></b> the two colors in the mix node by the alpha layer, allowing for more customization and creativivty</p>
<p>In this example I used a copy of the model and turned it into a glass overlay by taking just the alpha, from the image, plus 2 colors</p>
<div class="images">
<img id="ImgGlassAE" src="./img/MalAsriGlass.png" onclick="changeImg4()"/>
</div>
<hr>
<p class="desc">Here's a screenshot of the blend file, showing the node setup and result</p>
<hr>
<img src="./img/glass_AE_COMBO.png" width="1080px" height="640px">
<hr>
<h1 class="hea">AlphaSplit + volume glow</h1>
<div class="images">
<img id="ImgCube" src="img/cube.gif" alt="Cube with basic diffuse shading" onclick="changeGif1()">
</div>
<p class="desc">You can also split the alpha, and use one of the 2 color attributes in the mix color node to set transparency of either the alpha or other (reverse select),
<br> In this case I took the default cube and took some image, setting up my selection for the alpha, split the alpha (like above), than used the transparent shader to make the
<br> white-space, finally duplicating the cube and using a volume scatter to <i>somewhat</i> fill the inside of the cube.
</p>
<div class="images">
<img src="img/AlphaSplit1.png" width="1280" height="720">
<img src="img/AlphaSplit2.png" width="1280" height="720">
</div>
</div>