|
64 | 64 | <strong style="font-size: 19px;">🛠️Translation Vector</strong>: Defines how much to move the shape |
65 | 65 | along the <strong>X</strong>, |
66 | 66 | <strong>Y</strong>, and <strong>Z</strong> axes in 3D space. |
| 67 | + <ul style="list-style-type: disc; padding-left: 20px;"> |
| 68 | + <li> |
| 69 | + <strong style="color:#1976D2">Apply Translation:</strong> Click to apply the specified |
| 70 | + translation factors to |
| 71 | + the current |
| 72 | + shapes. |
67 | 73 |
|
| 74 | + </li> |
| 75 | + </ul> |
68 | 76 | </li> |
69 | 77 |
|
70 | 78 |
|
|
80 | 88 | <strong style="font-size: 19px;">🔍 Transformation Matrix</strong>: |
81 | 89 | <ul style="list-style-type: disc; padding-left: 20px;"> |
82 | 90 | <li>Monitor the values of the transformation matrix while adjusting the slider.</li> |
83 | | - <li>The transformation matrix multiplies the point’s homogeneous coordinates, resulting in new coordinates for |
| 91 | + <li>The transformation matrix multiplies the point’s homogeneous coordinates, resulting in new |
| 92 | + coordinates for |
84 | 93 | the translation effect.</li> |
| 94 | + <li>Note: This transformation matrix exclusively represents translation and does not include any |
| 95 | + rotation |
| 96 | + factors.</li> |
85 | 97 | </ul> |
86 | 98 | </li> |
87 | 99 |
|
88 | | - <li class="instr-font"> |
89 | | - <strong style="font-size: 19px;">🔍 Model Hierarchy and Transformation Instructions</strong>: |
90 | | - <ul style="list-style-type: disc; padding-left: 20px;"> |
91 | | - <li><strong>Model Parts and Colors:</strong></li> |
92 | | - <ul style="list-style-type: circle; padding-left: 20px;"> |
93 | | - <li><span style="color: blue;">Blue</span>: Represents the Shoulder. This is the highest level (Level 1) of |
94 | | - the model hierarchy.</li> |
95 | | - <li><span style="color: rgb(199, 140, 31);">Orange</span>: Represents the Arm, which is a child of the Shoulder.</li> |
96 | | - <li><span style="color: rgb(244, 14, 140);">Pink</span>: Represents the Elbow, also a child of the Shoulder.</li> |
97 | | - <li><span style="color: rgb(8, 76, 8);">Green</span>: Represents the Fore-arm, a child of the Elbow.</li> |
98 | | - <li><span style="color: rgb(182, 22, 22);">Brown</span>: Represents the Wrist, another child of the Elbow.</li> |
99 | | - <li><span style="color: rgb(10, 152, 152);">Cyan</span>: Represents the Palm, which is a child of the Wrist.</li> |
100 | | - </ul> |
101 | | - <li><strong>Hierarchical Structure:</strong></li> |
102 | | - <ul style="list-style-type: circle; padding-left: 20px;"> |
103 | | - <li><strong>Level 1 (Shoulder):</strong> This level contains the Arm and Elbow.</li> |
104 | | - <li><strong>Level 2 (Elbow):</strong> Contains the Fore-arm and Wrist.</li> |
105 | | - <li><strong>Level 3 (Wrist):</strong> Contains the Palm.</li> |
106 | | - </ul> |
107 | | - <li><strong>Transformation and Animation:</strong></li> |
108 | | - <ul style="list-style-type: circle; padding-left: 20px;"> |
109 | | - <li>When adjusting sliders:</li> |
110 | | - <ul style="list-style-type: disc; padding-left: 20px;"> |
111 | | - <li>Slider for <span style="color: blue;">Shoulder (Level 1)</span> affects all parts of the model |
112 | | - (Levels 1, 2, and 3). Any transformation applied here cascades down to all child elements.</li> |
113 | | - <li>Slider for <span style="color: rgb(238, 18, 205);">Elbow (Level 2)</span> affects Level 2 and Level 3 parts. |
114 | | - Transformations here affect the Fore-arm and Wrist, as well as their child elements like the Palm. |
115 | | - </li> |
116 | | - <li>Slider for <span style="color: #A52A2A;">Wrist (Level 3)</span> specifically affects the Palm. |
117 | | - Transformations at this level only impact the Palm and not higher-level parts.</li> |
| 100 | + |
| 101 | + <li class="instr-font"> |
| 102 | + <strong style="font-size: 19px;">🔍 Model Hierarchy and Transformation Instructions</strong>: |
| 103 | + <ul style="list-style-type: disc; padding-left: 20px;"> |
| 104 | + <li><strong>Model Parts and Colors:</strong></li> |
| 105 | + <ul style="list-style-type: circle; padding-left: 20px;"> |
| 106 | + <li><span style="color: blue;">Blue</span>: Represents the Shoulder. This is the highest |
| 107 | + level (Level 1) of |
| 108 | + the model hierarchy.</li> |
| 109 | + <li><span style="color: rgb(199, 140, 31);">Orange</span>: Represents the Arm, which is a |
| 110 | + child of the Shoulder.</li> |
| 111 | + <li><span style="color: rgb(244, 14, 140);">Pink</span>: Represents the Elbow, also a child |
| 112 | + of the Shoulder.</li> |
| 113 | + <li><span style="color: rgb(8, 76, 8);">Green</span>: Represents the Fore-arm, a child of |
| 114 | + the Elbow.</li> |
| 115 | + <li><span style="color: rgb(182, 22, 22);">Brown</span>: Represents the Wrist, another child |
| 116 | + of the Elbow.</li> |
| 117 | + <li><span style="color: rgb(10, 152, 152);">Cyan</span>: Represents the Palm, which is a |
| 118 | + child of the Wrist.</li> |
| 119 | + </ul> |
| 120 | + <li><strong>Hierarchical Structure:</strong></li> |
| 121 | + <ul style="list-style-type: circle; padding-left: 20px;"> |
| 122 | + <li><strong>Level 1 (Shoulder):</strong> This level contains the Arm and Elbow.</li> |
| 123 | + <li><strong>Level 2 (Elbow):</strong> Contains the Fore-arm and Wrist.</li> |
| 124 | + <li><strong>Level 3 (Wrist):</strong> Contains the Palm.</li> |
| 125 | + </ul> |
| 126 | + <li><strong>Transformation and Animation:</strong></li> |
| 127 | + <ul style="list-style-type: circle; padding-left: 20px;"> |
| 128 | + <li>When adjusting sliders:</li> |
| 129 | + <ul style="list-style-type: disc; padding-left: 20px;"> |
| 130 | + <li>Slider for <span style="color: blue;">Shoulder (Level 1)</span> affects all parts of |
| 131 | + the model |
| 132 | + (Levels 1, 2, and 3). Any transformation applied here cascades down to all child |
| 133 | + elements. |
| 134 | + <ul style="list-style-type: circle; padding-left: 20px;"> |
| 135 | + |
| 136 | + <li> |
| 137 | + <strong style="color: rgb(31, 12, 176);">Note:</strong> Rotating the shoulder affects the |
| 138 | + entire model. Subsequent translations will |
| 139 | + adjust according to the updated coordinate system after rotation, impacting |
| 140 | + the model's positioning and orientation. |
| 141 | + </li> |
| 142 | + </ul> |
| 143 | + </li> |
| 144 | + <li>Slider for <span style="color: rgb(238, 18, 205);">Elbow (Level 2)</span> affects |
| 145 | + Level 2 and Level 3 parts. |
| 146 | + Transformations here affect the Fore-arm and Wrist, as well as their child elements |
| 147 | + like the Palm. |
| 148 | + </li> |
| 149 | + <li>Slider for <span style="color: #A52A2A;">Wrist (Level 3)</span> specifically affects |
| 150 | + the Palm. |
| 151 | + Transformations at this level only impact the Palm and not higher-level parts.</li> |
| 152 | + </ul> |
| 153 | + </ul> |
| 154 | + <li><strong>Observing Transformations:</strong></li> |
| 155 | + <ul style="list-style-type: circle; padding-left: 20px;"> |
| 156 | + <li>Understand how hierarchical transformations work: changes at a parent level affect all |
| 157 | + child elements, |
| 158 | + demonstrating the cascading effect of transformations.</li> |
118 | 159 | </ul> |
119 | 160 | </ul> |
120 | | - <li><strong>Observing Transformations:</strong></li> |
121 | | - <ul style="list-style-type: circle; padding-left: 20px;"> |
122 | | - <li>Understand how hierarchical transformations work: changes at a parent level affect all child elements, |
123 | | - demonstrating the cascading effect of transformations.</li> |
124 | | - </ul> |
125 | | - </ul> |
126 | | - </li> |
| 161 | + </li> |
127 | 162 |
|
128 | 163 |
|
129 | 164 | <li class="instr-font"> |
130 | | - <strong style="font-size: 19px;">🎚️ Slider Control</strong>: Adjust translation along the X, Y, and Z axes using |
| 165 | + <strong style="font-size: 19px;">🎚️ Slider Control</strong>: Adjust translation along the X, Y, and |
| 166 | + Z axes using |
131 | 167 | the sliders. |
132 | 168 | <ul style="list-style-type: disc; padding-left: 20px;"> |
133 | | - <li>The sliders at the bottom control <strong>translation</strong> along the X, Y, and Z axes.</li> |
| 169 | + <li>The sliders at the bottom control <strong>translation</strong> along the X, Y, and Z axes. |
| 170 | + </li> |
134 | 171 | </ul> |
135 | 172 | </li> |
136 | 173 |
|
|
165 | 202 | </section> |
166 | 203 |
|
167 | 204 | <main class="columns is-centered is-variable is-1-mobile is-flex is-flex-wrap-wrap workspace"> |
168 | | - <aside id="left" class="column is-2-desktop is-5-tablet is-5-mobile apparatus" > |
169 | | - <div class="v-datalist-container" style="max-height: 100%; overflow-y: auto;"> |
| 205 | + <aside id="left" class="column is-2-desktop is-5-tablet is-5-mobile apparatus"> |
| 206 | + <div class="v-datalist-container" style="max-height: 100%; overflow-y: auto;"> |
170 | 207 | <div class="v-datalist-row"> |
171 | 208 | <div class="v-datalist-title">Display Settings</div> |
172 | 209 |
|
|
212 | 249 | name="noofframes" min="1" step="1" value="1000"> |
213 | 250 | </div> |
214 | 251 |
|
215 | | - |
216 | | - </div> |
217 | | - <div class="v-datalist-row" id="top-border"> |
218 | | - <label for="quantity" style="font-size: 20px;font-weight: bold;">Translation Vector</label></br> |
219 | | - <span style="font-size: 20px;">x</span>:<input style="width: 25%" class="input is-responsive fields" type="number" |
220 | | - id="x-value" name="x-value" step=".1" value="4"> |
221 | | - <span style="font-size: 20px;">y</span>:<input style="width: 25%" class="input is-responsive fields" type="number" |
222 | | - id="y-value" name="y-value" step=".1" value="2"> |
223 | | - <span style="font-size: 20px;">z</span>:<input style="width: 25%" class="input is-responsive fields" type="number" |
224 | | - id="z-value" name="z-value" step=".1" value="-3"> |
| 252 | + |
225 | 253 | </div> |
| 254 | + <div class="v-datalist-title" id="top-border">Translation Vector</div> |
| 255 | + <form id="translation-form"> |
| 256 | + <label for="value-x">x</label> |
| 257 | + <input type="number" id="value-x" name="value-x" step="0.01" value="2" |
| 258 | + class="input is-responsive is-small" style="width: 25%"> |
| 259 | + <label for="value-y">y</label> |
| 260 | + <input type="number" id="value-y" name="value-y" step="0.01" value="1" |
| 261 | + class="input is-responsive is-small" style="width: 25%"> |
| 262 | + <label for="value-z">z</label> |
| 263 | + <input type="number" id="value-z" name="value-z" step="0.01" value="0" |
| 264 | + class="input is-responsive is-small" style="width: 25%"> |
| 265 | + <button type="submit" id="apply-translation-btn" class="v-button is-responsive is-small">Apply |
| 266 | + Translation</button> |
| 267 | + </form> |
226 | 268 |
|
227 | 269 | <!-- Reset Button --> |
228 | 270 | <div style="padding-top: 5px;"> |
|
243 | 285 | </div> |
244 | 286 | </div> |
245 | 287 |
|
246 | | - <div id="observations" class="column has-text-centered is-2-desktop is-5-tablet is-5-mobile right" > |
| 288 | + <div id="observations" class="column has-text-centered is-2-desktop is-5-tablet is-5-mobile right"> |
247 | 289 | <div class="v-datalist-container" style="max-height: 100%; overflow-y: auto;"> |
248 | 290 |
|
249 | 291 | <!-- Transformation Matrix --> |
|
292 | 334 | </div> |
293 | 335 | </div> |
294 | 336 | </div> |
295 | | - |
| 337 | + |
296 | 338 | <div class="v-datalist-row is-responsive is-small" style="padding-top: 100px;"> |
297 | 339 | <div class="col-md-4"> <!-- Adjust the column size based on your layout needs --> |
298 | 340 | Level 1 (Shoulder) |
299 | | - <input class="v-slider-full is-centered column exptwoslider is-fullwidth" id="shoulder" value="0" type="range"> |
| 341 | + <input class="v-slider-full is-centered column exptwoslider is-fullwidth" id="shoulder" |
| 342 | + value="0" type="range"> |
300 | 343 | </div> |
301 | 344 | <div class="col-md-4"> <!-- Adjust the column size based on your layout needs --> |
302 | 345 | Level 2 (Elbow) |
303 | | - <input class="v-slider-full is-centered column exptwoslider is-fullwidth" id="elbow" value="0" type="range"> |
| 346 | + <input class="v-slider-full is-centered column exptwoslider is-fullwidth" id="elbow" value="0" |
| 347 | + type="range"> |
304 | 348 | </div> |
305 | 349 | <div class="col-md-4"> <!-- Adjust the column size based on your layout needs --> |
306 | 350 | Level 3 (Wrist) |
307 | | - <input class="v-slider-full is-centered column exptwoslider is-fullwidth" id="wrist" value="0" type="range"> |
| 351 | + <input class="v-slider-full is-centered column exptwoslider is-fullwidth" id="wrist" value="0" |
| 352 | + type="range"> |
308 | 353 | </div> |
309 | 354 | </div> |
310 | 355 |
|
311 | 356 |
|
312 | | - |
| 357 | + |
313 | 358 | </div> |
314 | 359 | </div> |
315 | 360 |
|
|
0 commit comments