包含1節(jié)視頻教程
關注4.3萬次
HyperShot實時渲染軟件學習。盡管目前已經有很多渲染器支持實時渲染,但是HyperShot還是有其方便的特性。幾十分鐘就可以學會的渲染器,你不想來學習一下嗎!!
創(chuàng)建一個簡單的Substance
The best way to learn about Substances is to create one.
學習Substance最好的辦法就是去創(chuàng)建一個。
We saw earlier that one of the advantages of Substances is that you can use other Substances to produce some very complex results. Substance Designer includes a Bitmap to Material Substance we will use this to turn a simple bitmap into a complete material, with normal, ambient occlusion, specular, height and diffuse maps.
我們知道Substance早期的優(yōu)勢之一是,你可以使用其他的Substance來制作一個非常復雜的東西。Substance Designer包括 Material Substance的一個位圖,我們將通過使用這個簡單的位圖來制作一個完整的Material,這個Material包括normal(法線貼圖)、ambient occlusion(環(huán)境光遮蔽(阻光貼圖))、specular(高光貼圖)、height(高度灰度圖)和diffuse maps(漫反射貼圖)。(這段的意思是說這個插件只用一個位圖就可以做出一個有凹凸帶反射等貼圖的完整的材質球Material)
Downloading the sample resources 下載樣本資源
You can download the resources used in this User Guide from our website. (See “About the User Guide”.)
您可以從我們的網站里下載到用戶指南中所使用的資源(見"關于用戶指南")
The resources are provided in compressed ZIP format. When unpacked, you will find a single Substance_Editor_Sample_Resources folder. Open this folder, then open the sub-folder named, Creating_a_Substance, where you will find the resources used in this chapter.
這些資源是以ZIP格式壓縮的,當你解壓縮后會得到一個名為"Substance_Editor_Resoutces"的文件夾。打開此文件夾后,再打開子文件,一個名為Creating_a_Substance的文件夾里存放著本章中所使用的資源。
Open Substance Designer and go to the Untitled_Package entry in the Packages panel. Open it to reveal the Untitled Graph. This is where we shall build our new Substance.
打開Substance 設計器,然后進入資源面板轉到未命名資源,打開它來創(chuàng)建顯示未命名圖形,這是我們將要創(chuàng)建新Substance的地方。
The first step is to import our bitmap.
第一步導入我們的位圖
Drag the CAMBODGE.JPG file onto the Untitled_Package Substance’s name in the Packages panel. This adds the bitmap to the Substance as a resource:
把文件CAMBODGE.JPG拖入到Parckages面板中的Untitled_Package中。把這個位圖添加到Substance中,并作為一種資源來使用。
Tip: You can also add resources directly to the Untitled_Graph directly. There is no functional difference between the two choices. The two options are available to aid organization of complex Packages and Substances. You can also create folders inside a Package to create a complete hierarchy if you require it.
提示:您還可以直接添加資源到Untitled_Graph中。這2種方法沒有功能上的區(qū)別。這2種方法可以幫助我們更好的去處理復雜的Package(資源包、封包)和Substance。如果您需要的話,還可以創(chuàng)建一個包含Package的文件夾,使得它具有一個完整的結構。
Drag and drop the new image resource from the Packages panel into your empty graph. Substance Designer will create a Bitmap node for you.
拖拽新圖片到Package界面下你的空的graph中。Substance Designer會為你創(chuàng)建位圖節(jié)點。(我試驗的是從Package里選取文件夾,從Gallery中選取圖片后拖拽到Untiled_Graph中)
The picture we are using has a simple, almost monochrome, image. Such images lend themselves well to the automated process we will be applying.
我們使用的圖片是一個簡單的單色調圖像。我們將運用的這種圖片很適合軟件自動處理。
The next step is to add an instance of the Bitmap_To_Material Substance to our graph. In the Packages panel, open the Advanced_Filters Package and navigate to the Bitmap_To_Material graph:
下一步是在我們的的graph中添加Bitmap_To_Materia的一個實例。在Package面板中,打開Advanced_Filters Package(資源包)并瀏覽再graph中Bitmap_To_Material.
Drag Bitmap_To_Material into an empty area of your graph:
把Bitmap_To_Material拖動到你graph中的空白區(qū)域。
Next we need to connect the output connector from our Bitmap node to the input connector on the left edge of the Bitmap_To_Material instance node. You can do this by dragging a line between the two connectors:
下一步,我們需要從我們的位圖節(jié)點中輸出點做一個連接,來連接Bitmap_To_Material左邊的輸入點。您可以通過拖動來實現,及在2個連接點之間建立一條線
The right edge of the Bitmap_To_Material instance has an array of output connectors. If you hover the mouse pointer over the node, you should see the connector names appear:
BITMAP_TO_MATERIAL例子的右邊有一個出書接口的序列。如果你吧鼠標放到節(jié)點上,你就能看到連接接口的名稱
If you don’t see the connector names when you hover over them, you can enable this feature from the Graph View’s panel menu. Click on the small down-pointing triangle in the upper right of the Graph View panel. In the menu, make sure the Display connector name option is set:
如果您沒有看到連接口的名稱,您可以從Graph視窗的面板菜單中啟用此功能。在Graph面板菜單的右上角,有一個向下的小三角形,點擊它,在菜單中,確認顯示連接口的名稱選項的設置如下:
We need to link these connectors to individual Output nodes, so right-click on an empty part of the graph to bring up the Graph View’s context menu and choose New Output node:
當我們需要把一個連接口單獨連接到一個輸出節(jié)點(即output)的時候,我們又見單擊Graph空白的地方在菜單中選擇創(chuàng)建新的輸出節(jié)點(即output)。
A new Output node will appear. Select it and use the Duplicate function (Ctrl+D) to add another four Ouput nodes to the graph. Arrange the Output nodes vertically to the right of the Bitmap_To_Material instance node. The graph should now look similar to this:
我們創(chuàng)建的新輸出節(jié)點(即output)就顯示出來了。選擇它,并使用復制功能(Ctrl+D),我們就在Graph中創(chuàng)建了另外的四個輸出節(jié)點(即output)。把這些輸出節(jié)點(即output)垂直排列在Bitmap_To_Material實例節(jié)點的右邊。現在Graph界面看起來是這樣的:
All five of the Output nodes are set to “diffuse” by default.
因為這五個輸出節(jié)點(即output)的所有設置都是默認的,所以都是"diffuse"。
If you hover the mouse pointer over the Bitmap_To_Material instance, you will see the names of its output connectors. We need to set each Output node to match the output connectors.
當您把鼠標放到Bitmap_To_Material實例的輸出接口的時候,你會看到每個接口的名字。所以我們要為每個輸出節(jié)點(即output)匹配一個輸出接口。
The top connector in the Bitmap_To_Material instance is the Ambient Occlusion output, so we set the top Output node to this Usage type.
Bitmap_To_Material實例的頂部接口是按照Ambient Occlusion輸出,因此要按照這種用法類型來設置頂部輸出節(jié)點(即output)。
Click on the top Output node to bring up its parameters in the Inspectors panel. Adjust the right-most Usage parameter—which defaults to “diffuse”—to “ambientOcclusion”, as shown below:
點擊頂部的輸出節(jié)點(即output)在Inspector面板上設置他的參數。調整最后邊的參數用法,把默認的"diffuse"改為"ambientOcclusion",如下圖:
Note: For this example, you can leave the Usage format to the default setting of RGBA.
注:在這個例子中,你可以保留RGBA的默認設置(這里說的是使用格式)。
Repeat the process for each of the Outputs, so that their Usage parameters match a corresponding output connector on the Bitmap_To_Material instance.
重復這個對輸出節(jié)點(即output)的操作過程(把所有的輸出節(jié)點(即output)設置都改變一下),因此,他們使用的參數要匹配相應的Bitmap_To_Material例子的輸出接口
You can also give each of the Output nodes a name (called an Identifier in Substance Designer) and Description. It’s good practice to do so as the Description text appears in a tooltip when you hover over the node. Changing the Identifier is useful as only this is shown in the 2D View tab when you double-click the node.
你也可以給每個輸出節(jié)點(即output)定義一個名稱(及Substance Designer的標識符)和描述。這是一個好習慣,這樣做了以后,每當你你把鼠標放在輸出節(jié)點(即output)的時候,都會出現一個說明文檔的提示工具。更改標識符是很有用的,當你雙擊輸出節(jié)點(即output)他會顯示在2D視圖窗口。
Finally, link each connector on the instance to its corresponding Output node:
最后,實例上的接口和其相應的輸出節(jié)點(及output)的連接圖:
We can now preview our new material in the 3D View. Right-click in an empty area of the graph and choose View outputs from the context menu:
現在我們可以在3D視窗中預覽我們的新Material了。郵件點擊Graph的空白區(qū),并從菜單中選擇查看輸出:
This command tells Substance Designer to calculate the Output nodes and send them to the 3D View for rendering.
這個命令是告訴Substance Designer,計算輸出節(jié)點(output),并將它們發(fā)送到3D視圖中進行渲染。
Finally, we should save our new Substance. First, we should give the Substance, and its enclosing Package, a name:
Substance, and its enclosing Package, a name: 最后我們要保存我們的新Substance。首先我們應該給這個Substance和他的enclosing Package(程序包)一個名稱:
Select the Untitled Package entry in the Packages panel, then either click again, or press F2, to rename it. Change the name as shown:
在Packages面板選擇Untitled Package,然后雙擊他或者按下F2,重命名它。更白名稱如下圖:
Press Enter to confirm the new name. Note that the name appears in italics and has an asterisk after it:
按Enter鍵確認新的名稱。注意,改名后名稱應出現斜體和星號后:
This is Substance Designer’s way of letting you know that you have made changes to its contents and have yet to save it. As with any complex editing tool, it is best to save your work often!
這是Substance Designer特有的方式,通過這種方式告訴你,你所更改的內容那些是還沒有保存的。不管多么復雜的編輯器,最好你都要經常去保存你的工程
We have now renamed the Package, which contains our new Substance.
我們已經給這個存有我們新制作的Substance的Package重新命名了
The Substance itself—the default name is Untitled_Graph—now needs to be named. As this Substance will be the only one in the Package, we shall give it the same name as the Package itself.
Substanc的默認名稱是Untitled_Graph,但是現在需要我們重新命名。因為我們在這個Package只存有一個Substance,所以我們應當用Package的名字來命名這個Substance。
Repeat the renaming procedure to rename the Untitled_Graph Substance to BuddhaMaterial.
使用我們上邊提到的重命名方法,重命名重命名Untitled_Graph為BuddhaMaterial。
When you press enter to set the new name, a dialog box will appear warning that you are about to change the Substance’s name and, thus, the internal path to any resources it contains:
當你重新設置了名稱的時候,會出現一個對話框告訴你,你改變了Substance的名稱,對話框還告訴你這個Substance所包含的資源的路徑
Renaming a Substance will affect other Substances that use instances of it. Substances can be instanced from other Packages and the Substance Engine will need to know where to find each one. If you rename a Substance, the link can be broken and you will then need to open each affected Substance in turn and reset it.
重命名一個Substance會影響到其他使用這個Substance的實例。Substance可以被其他的Package所引用,并且通過SubStance軟件可以知道是引用的那一個Substance。如果重命名了一種Substance,那么這種鏈接就被破壞了,然后你需要重新打開實例,重新建立各種鏈接。
Our Substance will not be referenced by any other Substances, so we can safely rename it.
我們的Substance將不會被其他的Substance所引用,所以我們可以放心的重命名它。
朱峰社區(qū)網頁版(手機掃描-分享-添加到屏幕)
朱峰社區(qū)微信公眾號(微信掃一掃-關注)
未知用戶
2005-2024 朱峰社區(qū) 版權所有 遼ICP備2021001865號-1
2005-2024 ZhuFeng Community All Rights Reserved
VIP