blender docs and fbx files
BIN
3D-files/Drone v9.fbx
Normal file
@@ -151,4 +151,122 @@ After that I created a sketch on the front surface with a offset so I could extr
|
|||||||
After that I sketched the motor arms and sketched holes on top to cut the holes.
|
After that I sketched the motor arms and sketched holes on top to cut the holes.
|
||||||
|
|
||||||
### Other notes
|
### Other notes
|
||||||
I think Onshape is a solid to fusion360 but the part that im missing is that I can instantly assign variables to anything. On another note Onshape is a lot nicer when working parametrically because you can slide the parameter menu on the side next to the design.
|
I think Onshape is a solid to fusion360 but the part that im missing is that I can instantly assign variables to anything. On another note Onshape is a lot nicer when working parametrically because you can slide the parameter menu on the side next to the design.
|
||||||
|
|
||||||
|
## Blender
|
||||||
|
I wanted to make a render of the drone so I could visualize my idea to everyone. I don't have any experience with blender. The only experience i have is from the lecture we had.
|
||||||
|
|
||||||
|
### Animating in blender
|
||||||
|
To learn animating I used [this](https://www.youtube.com/watch?v=CBJp82tlR3M) video.
|
||||||
|
|
||||||
|
|
||||||
|
#### Animating the rotors.
|
||||||
|
I have imported rotors from grabcad and aligned them on top of the motors. Using the `G` key. If you wanna grab something in blender you need to use `G`. The rest of the model I imported from fusion360.
|
||||||
|

|
||||||
|
|
||||||
|
Then I opened the animation menu and pressed `N` to get the extended menu.
|
||||||
|

|
||||||
|
|
||||||
|
After that I selected all the rotors using shift click and pressed `k` to get to the keyframes menu.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
In there I selected the Rotation option to save that information inside the keyframes.
|
||||||
|
|
||||||
|
Then the Z Euler rotation should appear.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
After clicking that I went into the modifiers menu and added a Generator and enabled additive. This makes sure that the Z angle only keeps going up. So it keeps spinning indefinitely.
|
||||||
|
|
||||||
|
After that you can select everything and press `Control + L` and then link animation data so all the propelors do the same. Then it should look like this. And if you press space they should start spinning.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
<video controls src="../../assets/assets_week_2/blender/droneAnimation1.mp4" title="Title"></video>
|
||||||
|
|
||||||
|
##### Quirks of the animation timeline
|
||||||
|
The keyframes only show up when you've selected the part/parts that have keyframes. Otherwise your timeline would be empty. Don't get confused by it.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### Animating the drone
|
||||||
|
|
||||||
|
When animating the drone I ran into some issues. When adding keyframes my drone was flying away without it's propellors.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
I fixed the issue by right clicking the location data in the Transform menu and clicking clear keyframes. Animating in blender is really straight forward. You move the objects and then press `k` and choose the keyframes that you wanna store.
|
||||||
|
|
||||||
|
|
||||||
|
### Rendering in blender
|
||||||
|
|
||||||
|
#### Making a scene
|
||||||
|
The first thing I did is make a floor. I did that by placing a flat plane and scaling it by a lot so it covers the floor.
|
||||||
|
|
||||||
|
When you want to give objects textures or colors you need to assign materials to them. You can assign a material by going into the material tab on the bottom right.
|
||||||
|

|
||||||
|
In there you can change colors and do all other sorts of fun things. If you press `Z` and then select render you can see the rendered project.
|
||||||
|
|
||||||
|
#### Rendering with images
|
||||||
|
I've struggled with rendering images. But I found out you can import images as materials and then they do get rendered. If you import as image it doesn't get rendered.
|
||||||
|
|
||||||
|
First you wanna go to the material and import the image into the material. When you the box next to base color a big menu appears with a lot of options.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
In the menu you wanna select image texture. When you've done that it will probably look something like this.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
To fix this we need to do some UV-mapping? A UV-map is a way to tell blender how and where textures should be rendered. First start off creating a second view by dragging the top left corner of the 3d viewer to the middle. Then open the UV-editor using the top left button.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Then you can press the object you wanna edit on the right and edit it on the left. To get the object in the uv editor you need to select it and then press `tab`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Then you will get something like this. Now drag over everything and press `unwrap`
|
||||||
|
|
||||||
|

|
||||||
|
That will make everything dissapear.
|
||||||
|

|
||||||
|
Now you can select faces in your 3d editor you want the image on. And right click and press `UV unwrap faces -> Unwrap -> Smart UV project`
|
||||||
|
|
||||||
|
Now you have a couple of face on the image and you can see your changes directly reflect on the 3d model. 
|
||||||
|
|
||||||
|
You can move and edit the faces around on the uv map using `G` `R` `S`.
|
||||||
|
Result:
|
||||||
|
|
||||||
|

|
||||||
|
#### Setting the camera and lighting
|
||||||
|
For a render to look good the camera needs to be positioned well and there needs to be lights.
|
||||||
|
When in object mode you can move your cursor using `shift + right click` and then press `shift + a` to create a light. When you've created a light or selected one you can change the settings of the light. For now i've used `Sun` as light type because I couldn't get any other to work.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### Rendering
|
||||||
|
To start rendering a video or image you first need to set the render settings. That can be found on the left bar at the tv icon.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
After that you need to set the output location and file type. That can be done in the menu right under the first menu. Otherwise your render will get saved in a random location.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
In there you can change render settings for this project. There are multiple render engines. Eevee is the fastest but lowest quality and Cycles is the slowest and heaviest one but looks the nicest. Workbench is somewhere inbetween.
|
||||||
|
After setting all your settings you can go to the top menu and press `render` and choose if you wanna render an image or video.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Sources:
|
||||||
|
* https://www.youtube.com/watch?v=JPkzmWpZbLw
|
||||||
|
* https://www.youtube.com/watch?v=jLGWE335J28
|
||||||
|
* https://www.youtube.com/watch?v=syg2Oy43zJ0
|
||||||
|
BIN
docs/assets/assets_week_2/blender/droneAnimation1.mp4
Normal file
BIN
docs/assets/assets_week_2/blender/image-1.jpg
Normal file
After Width: | Height: | Size: 292 KiB |
BIN
docs/assets/assets_week_2/blender/image-10.jpg
Normal file
After Width: | Height: | Size: 178 KiB |
BIN
docs/assets/assets_week_2/blender/image-11.jpg
Normal file
After Width: | Height: | Size: 322 KiB |
BIN
docs/assets/assets_week_2/blender/image-12.jpg
Normal file
After Width: | Height: | Size: 285 KiB |
BIN
docs/assets/assets_week_2/blender/image-13.jpg
Normal file
After Width: | Height: | Size: 135 KiB |
BIN
docs/assets/assets_week_2/blender/image-14.jpg
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
docs/assets/assets_week_2/blender/image-15.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
docs/assets/assets_week_2/blender/image-16.jpg
Normal file
After Width: | Height: | Size: 181 KiB |
BIN
docs/assets/assets_week_2/blender/image-17.jpg
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
docs/assets/assets_week_2/blender/image-18.jpg
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
docs/assets/assets_week_2/blender/image-19.jpg
Normal file
After Width: | Height: | Size: 150 KiB |
BIN
docs/assets/assets_week_2/blender/image-2.jpg
Normal file
After Width: | Height: | Size: 276 KiB |
BIN
docs/assets/assets_week_2/blender/image-20.jpg
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
docs/assets/assets_week_2/blender/image-3.jpg
Normal file
After Width: | Height: | Size: 115 KiB |
BIN
docs/assets/assets_week_2/blender/image-4.jpg
Normal file
After Width: | Height: | Size: 436 KiB |
BIN
docs/assets/assets_week_2/blender/image-5.jpg
Normal file
After Width: | Height: | Size: 344 KiB |
BIN
docs/assets/assets_week_2/blender/image-6.jpg
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
docs/assets/assets_week_2/blender/image-7.jpg
Normal file
After Width: | Height: | Size: 248 KiB |
BIN
docs/assets/assets_week_2/blender/image-8.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
docs/assets/assets_week_2/blender/image-9.jpg
Normal file
After Width: | Height: | Size: 133 KiB |
BIN
docs/assets/assets_week_2/blender/image.jpg
Normal file
After Width: | Height: | Size: 132 KiB |