• No results found

Optimize the model

In document VRED 2015 Fundamentals (Page 105-114)

Practice 2a Selecting and Organizing the Scene

Task 3 Optimize the model

1. Hold <Ctrl>. In the Scenegraph, select the revolve#3475, revolve#3495, and revolve#3343. In the Render Window, note that the nodes are parts of the rear wheel’s inner rim.

2. In the Scenegraph, drag and drop the three selected nodes into the main node#5524, as shown on the left in

Figure 2–44. The two subordinate group nodes are now empty, and the three geometry meshes are at the same hierarchy level, as shown on the right in Figure 2–44.

Figure 2–44

3. Optimize the node by right-clicking on the main node#5524 and selecting Edit>Show Optimize Module.

4. In the Optimize module, click to apply the default settings. In the Optimizations area, select Cleanup Group Nodes. In the Flush/Unflush area, select Flush Transformation Nodes, as shown on the left in Figure 2–45.

Click , and then close the Optimize module.

Notice that node#5524 has been converted into a regular group node, and that the two empty subordinate nodes have been removed, as shown on the right in

Figure 2–45.

Figure 2–45

5. In the Scenegraph, expand the nodes under the fix group nodes. All of those nodes are sorted correctly. Select the wheels node and collapse the tree structure using the slider.

This collapses all of the nodes under the wheels node hierarchy.

6. Expand wheels and select skin#7661. Hold <Shift> and select node#5672 to select the complete list of subordinate nodes (except the back subordinate node) in the wheels node, as shown in Figure 2–46.

Figure 2–46

7. Drag and drop the selected list into the Render Window. In the Icons Bar, click (Zoom To) and in the Navigation Cube click Right. The front wheel is zoomed into the Render Window, indicating that the selected list are parts of the front wheel.

If you click anywhere, the name Group is accepted. Click on the name again to convert it into an edit box.

8. Right-click on wheels group node and select Create>Group.

A new group node with the name Group is created at the bottom of the front wheel parts list. Rename the group node as front_wheel, as shown in Figure 2–47. Press <Enter>.

Figure 2–47

9. You will divide this group into two subordinate groups:

front_rotate and front_fix. Right-click on front_wheel and then select Create>Group. A new group node with the name Group is created. Rename the new group node to

front_rotate. Create another subordinate group node under front_wheel and name it front_fix, as shown in Figure 2–48.

10. Select skin#7661. In the Render Window, note that the red band in the rubber portion of the wheel is selected. Hold

<Ctrl> and select fillet#10855, fillet#10856, and node#5457.

In the Render Window, note that these nodes are the rotating parts of the front wheel, as shown in Figure 2–49.

Figure 2–49

11. Drag and drop the selected nodes on the front_rotate node, as shown on the left in Figure 2–50. These nodes are now listed under front_rotate, as shown on the right in

Figure 2–50.

12. Select fillet_srf#1432. Hold <Shift> and select node#5672 to select the list of nodes. Drag and drop the selected nodes on the front_fix subordinate node.

13. Expand both the front_rotate and front_fix subordinate group nodes.

14. In the front_rotate node, expand skin#7661, fillet#10855, and fillet#10856. Although all of these nodes have a correct hierarchy structure, they are Transformation nodes and should be changed. Collapse the nodes.

15. In the front_fix node, expand fillet_srf#1432, node#5306 (which has four meshes grouped under it), fillet_group#213, node#5651, revolve#2623, and trimsurface#38. All of these nodes have a correct hierarchy structure as well. Collapse all of them.

16. In the front_rotate node, expand node#5457. Note that there are a number of subordinate group and transform nodes under it. Expand subordinate node#5430 and note that it which has further subordinate group nodes under it.

Expand revolve#2947. Notice that it has a nurbs geometry node under it, as shown in Figure 2–51.

Figure 2–51

17. Expand the rest of the subordinate nodes under node#5457.

Select node#5457 and the drag the slider to the right most location. It expands the complete tree structure under node#5457. Note that all of them have further group nodes and nurbs geometry nodes, as shown in Figure 2–52. All of these nodes need to be optimized so that they have a simple hierarchy and mesh geometry, instead of nurb surface

geometry. Collapse the nodes to the node#5457 level by clicking .

Figure 2–52

18. In the front_fix node, expand node#5672 and notice that it has a MaterialGroup node (as shown in Figure 2–53), which is not required. Expand it further and notice that It has another group node node#5672 which has the mesh

geometry under it. This also needs cleaning and merging of geometry nodes to make it simpler. Leave it expanded.

19. To optimize, right-click on front_wheel node and select Edit>Show Optimize Module. In the Optimize module, click

to get the default settings. Notice that Flush Material Group Nodes is already set by default, which removes the material node. Click .

The MaterialGroup node is converted to a regular group node, as shown in Figure 2–54.

Figure 2–54

20. In the Optimize module, in the Flush/Unflush area, select Flush Transformation Nodes and click .

• The Transformation nodes are converted to regular group nodes.

21. In the Scenegraph, expand node#5672, MaterialGroup, and the subordinate node#5672. Select SHELL_Blend_

piece#812 and SHELL_revolve#3165. Drag and drop the nodes into MaterialGroup, leaving the subordinate

node#5672 empty, as shown in Figure 2–55.

Figure 2–55

22. Select the main node#5672 node. In the Optimize module, click . In the Optimizations area, select Merge Geometry Nodes and Cleanup Group Nodes. Click

.

MaterialGroup is removed, and the node is cleaned up and optimized. The empty group node is also removed and the mesh nodes are merged, as shown in

Figure 2–56.

Figure 2–56

23. In the front_rotate node, expand node#5457 and note that there are a number of subordinate group nodes under it. Also note that node#5430 has further subordinate group nodes containing nurb geometry nodes, as shown on the left in Figure 2–57. Scroll down to display the 12 nurb geometry nodes under node#5457.

24. Right-click on node#5457 and select Edit>Surfaces>

Convert to Mesh. In the Warning dialog box, click

. This converts all of the nurb surfaces to polygonal mesh geometry, as shown on the right in Figure 2–57.

Figure 2–57

25. Hold <Ctrl> and select all of the newly converted polygonal geometry (12 parts). Scroll down in the Scenegraph to select all of the geometry and drag and drop them into node#5457, as shown in Figure 2–58.

Figure 2–58

26. Select node#5457. In the Optimize module, click

, and then select Merge Geometry Nodes and Cleanup Group Nodes. Click and then close the Optimize module.

• The empty group nodes are removed, and the mesh nodes are merged together to form three geometry nodes, as shown in Figure 2–59.

Figure 2–59

27. Collapse the tree structure and close the Scenegraph.

28. In the Icons Bar, click (Isolate). In the Navigation Cube, click (Home) to return to the ICV view.

29. Save the file as My_Mainville_Organize.vpb.

Practice 2b Adjusting and Transforming

In document VRED 2015 Fundamentals (Page 105-114)