AnatomyOfATree

Version 17 (ChrisNewman, 09/14/2010 10:24 pm)

1 10 ChrisNewman
h1. Anatomy Of A Tree 
2 2 ChrisNewman
3 2 ChrisNewman
>!http://dev.ryzom.com/attachments/975/AOAT01.jpg!
4 3 ChrisNewman
5 12 ChrisNewman
>!http://dev.ryzom.com/attachments/980/TreeD.jpg!
6 12 ChrisNewman
7 12 ChrisNewman
8 3 ChrisNewman
h3. 1. JU_S3_Bush_tree_X
9 3 ChrisNewman
10 4 ChrisNewman
This is the low level mesh that the tree will fade to as the distance of the camera expands.
11 1 ChrisNewman
The picture is just a simple front and side camera render and the naked eye will not be able to tell the difference @ runtime.
12 1 ChrisNewman
It is attached to the JU_S3_Bush_tree's "LOD" node in its "Node Property's" window.
13 16 ChrisNewman
14 16 ChrisNewman
> Note> Smooth group 30 is set to BushtreeDummyX under its node property's.
15 4 ChrisNewman
16 5 ChrisNewman
>!http://dev.ryzom.com/attachments/978/AOAT05.jpg!
17 5 ChrisNewman
18 5 ChrisNewman
19 3 ChrisNewman
h3. 2. PACS Cyl01
20 1 ChrisNewman
21 10 ChrisNewman
This is the collision mesh.
22 10 ChrisNewman
23 14 ChrisNewman
> Note> Clusterize is checked under its node property's.
24 14 ChrisNewman
25 3 ChrisNewman
h3. 3. JU_S3_Bush_tree
26 3 ChrisNewman
27 8 ChrisNewman
This is the main mesh.
28 8 ChrisNewman
The mesh is weight painted using the NeL_Tree_Painter plugin for MAX, Darker color is harder and lighter color gradient is more "Bendable".
29 8 ChrisNewman
You can adjust its wind property's under its "VertexProgram" tab in its Node.
30 8 ChrisNewman
You can test and view the wind in the Object Viewer plugin for max, Also you can export it as a .shape and view it using OVQT.   
31 15 ChrisNewman
32 15 ChrisNewman
> Note> Smooth group 30 is set to BushtreeDummy under its node property's.
33 8 ChrisNewman
34 7 ChrisNewman
>!http://dev.ryzom.com/attachments/976/AOAT02.jpg!
35 7 ChrisNewman
36 7 ChrisNewman
>!http://dev.ryzom.com/attachments/977/AOAT03.jpg!
37 7 ChrisNewman
38 9 ChrisNewman
>!http://dev.ryzom.com/attachments/979/AOAT04.jpg!
39 9 ChrisNewman
40 3 ChrisNewman
h3. 4. BushtreeDummy
41 1 ChrisNewman
42 17 ChrisNewman
> Note From SFB>
43 17 ChrisNewman
> 
44 17 ChrisNewman
> <sfb>	ChrisNewman: BushtreeDummy is set to Smoothing Group 30 on the tree
45 17 ChrisNewman
> 
46 17 ChrisNewman
> <sfb>	ChrisNewman: BushtreeDummyX is set to Smoothing Gruop 30 on the billboard.
47 17 ChrisNewman
> 
48 17 ChrisNewman
> <sfb>	ChrisNewman: Select the tree object, go to the modifiers tab, click on Editable Mesh (
49 17 ChrisNewman
> 
50 17 ChrisNewman
> <sfb>	ChrisNewman: Tell it that you don't care that Nel Vertex Tree Painterwhatever is applied above it
51 17 ChrisNewman
> 
52 17 ChrisNewman
> <sfb>	Then change the sub-object mode to face
53 17 ChrisNewman
> 
54 17 ChrisNewman
> <sfb>	ChrisNewman: Then scroll all the way to the Smoothing Groups rollout
55 17 ChrisNewman
> 
56 17 ChrisNewman
> <sfb>	ChrisNewman: Click "Select By SG" and then choose 30 and hit OK
57 17 ChrisNewman
> 
58 17 ChrisNewman
> <sfb>	ChrisNewman: The faces which have been assigned smoothing group 30 are now highlighted in red.
59 17 ChrisNewman
> 
60 17 ChrisNewman
> <sfb>	ChrisNewman: When you export this object the exporter will look at the node properties
61 17 ChrisNewman
> 
62 17 ChrisNewman
> <sfb>	ChrisNewman: Then it will see that you've choosen an object for a smoothign group
63 17 ChrisNewman
> 
64 17 ChrisNewman
> <sfb>	ChrisNewman: So as it is building the exported mesh if that face has a smoothing gruop set and that smoothing group is 29, 30, 31 or 32                  it will look at those node properties to find the name of the object for that smoothign group (BushtreeDummy in this case)
65 17 ChrisNewman
> 
66 17 ChrisNewman
> <sfb>	ChrisNewman: Then take the PIVOT of that object and point the normal of the faces of that smoothing group away from that pivot for lighting.
67 17 ChrisNewman
> 
68 17 ChrisNewman
> <sfb>	ChrisNewman: It's poor man's radial normals.
69 17 ChrisNewman
> 
70 17 ChrisNewman
> <sfb>	ChrisNewman: Where the BushtreeDummy is the center of the sphere.
71 17 ChrisNewman
> 
72 17 ChrisNewman
> <sfb>	ChrisNewman: So it really is completely unrelated to the tree technology other than that you typically want the normals of the leaves pointing away from the trunk for lighting purposes.
73 17 ChrisNewman
74 10 ChrisNewman
75 13 ChrisNewman
> Note> Clusterize is checked under its node property's.
76 13 ChrisNewman
77 1 ChrisNewman
h3. 5. BushtreeDummyX 
78 10 ChrisNewman
79 10 ChrisNewman
This too.