You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading animation sequences with meshio and fileseq
3
3
4
4
5
5
## 1. Clone the project
6
-
`git clone https://www.graphics.rwth-aachen.de:9000/hhui/blendertool --recurse-submodules` to download both project and dependency
6
+
`git clone https://www.graphics.rwth-aachen.de:9000/hhui/blendertool --recurse-submodules` to download both project and dependencies
7
7
8
8
9
9
## 2. Build & Install
10
10
11
11
1. Build manually
12
12
13
-
Clone the project as mentioned above, then run `python build_addon.py`, no additional dependency required, only python3 standard library.
13
+
Clone the project as mentioned above, then run `python3 build_addon.py`, no additional dependency required, only python3 standard library.
14
14
15
15
2. Or download directly the addon from [release](https://graphics.rwth-aachen.de:9000/hhui/blendertool/-/releases) page.
16
16
17
17
18
-
After have the .zip file, install it using blender addon system.
18
+
After getting the .zip file, install and enable it using blender addon system. See [here](https://docs.blender.org/manual/en/latest/editors/preferences/addons.html#installing-add-ons) for more details.
19
19
20
20
21
-
Note: don't forget to remove old addon, before add new version addon to blender. (Actually, I not very sure if it's necessary, but I think this would be better)
21
+
Note:
22
+
1. You need to restart blender after enabling, otherwise some functionality may not work well.
23
+
2. don't forget to remove the old version of this addon (if present), before adding new version of this addon to blender. (Actually, I not very sure if it's necessary, but I think this would be better)
22
24
23
25
24
26
### 2.1 Complicated way
25
27
26
-
// TODO
27
-
28
-
If you want to keep developing on this addon, then you should look at this part, otherwise, you can simply ignore this part.
29
-
28
+
If you want to keep developing on this addon, it would be easier to create a soft link(or Symlinks on windows) at the root directory to the dependencies.
30
29
31
30
32
31
## 3. How to use
33
32
34
-
After installing addon, you can find it here.
33
+
After installing addon, you can find it here. (Or simply press `n` key)
35
34
36
35

37
36
@@ -42,127 +41,76 @@ Then you can find it here.
42
41
### 3. Load the animation sequence you want.
43
42
44
43
#### 3.1
45
-
You can either type the file directory you want manually in this box.
46
-
47
-

48
-
49
-
Or you can select the directory through GUI, by clicking the rightmost icon.
50
-
51
-

52
-
53
-
It will pop up the default blender file explorer, For example
44
+
you can select the directory through GUI, by clicking the rightmost icon. It will pop up the default blender file explorer. Then you can go to the directory you want, for example, like image showed below. **You only need to go to the directory, then select nothing, just click "Accept"**.
54
45
55
-

56
-
57
-
Then you can go to the directory you want, for example, like image showed above. **You only need to go to the directory, then select nothing, just click "Accept"**.
46
+

58
47
59
-
Then you will see this in the addon panel.
48
+
Then the addon will automatically detect the sequencens it finds in this directory, then you simply select the sequence you want.
60
49
61
-

62
-
63
-
Similarly, you can just type this directory in the input box. **Only to the directory, not the specific file(s)**
50
+

64
51
65
52
##### 3.1.1
66
-
There is a small checkbox about where using `relative path` or not.
53
+
There is a small checkbox about whether using `relative path` or not.
67
54
68
55
when toggling on, then you must save the blender file first, before load the sequence. Then this sequence will be loaded using relative path, from the .blend file. Also if you move the .blend file and data altogether to another directory, it still works.
69
56
70
57
If not toggling on, it will use abosulte path to load the sequence. And you don't need to save the .blend file.
71
58
72
-

59
+

73
60
74
61
75
62
#### 3.2
76
63
77
-
After selecting the directory, it will automatically detect all the sequences in this directory.
78
-
79
-
##### 3.2.1
80
-
In the `File Sequences` box, you can either see `No sequence detected`, in most cases, it means the directory is empty.
81
-
82
-

83
-
84
-
##### 3.2.2
85
-
Or `Manual, too much sequence detected, use pattern above`, it either means, it does have too many sequences in this directory, or the sequence can't be deteced because the file name does not follow some pattern.
86
-
87
-
So you can type the sequence in the `Pattern` input box. For example, in this case, the files inside are `1_target.vtu`, `2_target.vtu`, and so on, it doesn't follow the desired pattern, so you have to type it manually.
88
-
89
-

90
-
91
-
For more details about the desired pattern, please check it [here](https://github.com/justinfx/fileseq). In gerneral, you only need to replace the numbers to `@`, e.g. `1_target.vtu` -> `@_target.vtu`.
92
-
93
-
##### 3.2.3
94
-
95
-
If the file name followes the desired pattern, and only a few (smaller than 20) sequences in this directory, it should detect them without any problems.
96
-
97
-

98
-
99
-
And you can just click the sequence you want. Also you can manually type the sequence, and click `Manual, use pattern above`.
100
-
101
-
102
-
Note: if you manually type the sequence, please click the `Manual` as file sequence after finish typing, so it will do some pre-check.
103
-
104
-
105
-
106
-
#### 3.3
107
-
108
-
109
-
You can play or render the animation as usually used in blender.
110
-
111
-

112
-
113
-
Here it showes all the sequences loaded. And you can click on each of them, it showes the relative information.
114
-
115
-
+ start: The frame this sequence will start to animate. (Default 0 )
116
-
117
-
+ end: The frame this sequence will stop to animate.(Default 500).
64
+
After the sequence being imported, it will be available in the `Sequences Imported` panel, and more details will be available in `Settings` panel.
118
65
119
-
For example, if start set to 50, and stop set to 100, then sequence will animate between frame 50 and 100. Before frame 50, it will always show the frame 50, and after frame 100, it will always show the frame 100. And if the sequence length is shorter than 50 frames, then the sequence will loop again and again between frame 50 and 100.
66
+

120
67
121
-
+ min value: value used when coloring the object, the object attribute value smaller than min value will be clamped as min value here. Editable, and has effect.
68
+
Now, you can play/render the animation as usual.
122
69
123
-
+ max value: Similiar to min value, but means the max value when clamping.
70
+
Note: when render the animation, please turn on the `Lock Interface`.
124
71
125
-
+ Color Field: attribute used to color the object. Default `None`
72
+

126
73
127
-
+ radius: **particles only**, set the radius of particles.
74
+
##### 3.2.1 Enable/ Disable
128
75
129
-
+ display method: **particles only**, how the particles are shown in viewport, either `Point`, which is a simple point, or `Rendered`, which is almost the same as rendered result.
76
+
By `enable` means, that the sequence will be updated for each frame, and `disable` means that the sequence won't be updated for each frame, so it can save some computational resources if needed.
130
77
131
-
#### 3.4
78
+
#####3.2.1 Refresh Sequence
132
79
133
-
You can also remove the sequence you want, by selecting the sequence, then click "Minus" button.
80
+
`Refresh Sequence`can be usefull, when you import the sequence, while the data is still being generated, and not finished yet. Refresh can detect the frames added after being imported.
134
81
135
-

82
+
#### 3.3 Settings
136
83
137
-
### 3.5 Rendering
84
+
####3.3.1 Geometry Nodes
138
85
139
-
Same as the way to render other objects, you can find it on the top right corner of blender.
86
+
We provide some basic templates for the geometry nodes, especially for the particeles/vertices-only data.
140
87
141
-
.
88
+
Applying `Point Cloud` geometry nodes, can convert the the vertices of the mesh to point clouds, which can be rendered only by [cycles](https://docs.blender.org/manual/en/latest/render/cycles/introduction.html).
142
89
143
-
When rendering animation, **please toggle on `Lock Interface`**
90
+
Applying `Instances` geometry nodes, can convert the the vertices of the mesh to cubes, or others by adjusting the geometry nodes, which can be rendered by both [eevee](https://docs.blender.org/manual/en/latest/render/eevee/index.html) and [cycles](https://docs.blender.org/manual/en/latest/render/cycles/introduction.html).
144
91
145
-
You can adjust the start frame and end frame at the bottom of blender.
146
92
147
-
**Note: By default, blender set the start from frame 1, but this addon will start to render object from frame 0.**
93
+
Applying `Mesh` geometry nodes, will use the default geoemtry ndoes.
148
94
149
-

95
+
Note:
96
+
1.`Instances` is super memory hungry compared with `Point Cloud`.
97
+
2. After applying `Point Cloud` or `Instances` geoemtry nodes, you need to assign the material inside the geometry nodes. So to save your work, you can simply assign the material here, then apply the `Point Cloud` or `Instances` geoemtry nodes.
150
98
151
-
**Important**
99
+

152
100
153
-
If rendering particles, **it only works with `Cycles` render engine**. For mesh sequences, it works with both `Cycles` and `Eevee`.
154
101
155
-
You can change to `Cycles` engine, at the `Render Properties` tab of blender.
102
+
#### 3.3.2 Path Information
156
103
157
-

104
+
Here shows the path of this sequence, however it's not editable.
158
105
159
-
After choosing `Cycles`, which usually renders much slower than `Eevee`, you can speed up by turn down the `Render` and `Viewport`, of course, it will sacrifice image quality.
106
+
#### 3.3.3 Attributes Settings
160
107
161
-

108
+
Here shows the available **Vertex Attributes**, it's not editable.
162
109
110
+
Note: in order to avoid the conflication with blender built-in attributes, so all the attributes names are renamed by adding a `2` at the end. For example, `id` -> `id2`.
163
111
112
+
#### 3.3.4 Split Norm per Vertex
164
113
165
-
## 5. Limitations
166
-
1.**Never** use undo, or blender default delete operation(you can use the minus button to delete a sequence), with sequence objects. It will change some blender object structure, and this addon can't function any more.
114
+
For more details, you can find it [here](https://docs.blender.org/manual/en/latest/modeling/meshes/structure.html#modeling-meshes-normals-custom). This is an easy way to set the selected vertex attribute as this split normal.
167
115
168
-
2. Sometimes, it could have very strange look in viewport, but it can be rendered correctly.
116
+
Note: the addon does not check if the selected attribute is suitable for normals or not. E.g. if the data type of the attribute is int, then it will give a runtime error.
0 commit comments