Compare commits

...

8 Commits

Author SHA1 Message Date
cb392d2730 cleanup and added file links 2025-02-05 14:11:21 +01:00
36e25c9e41 Added docs about fixing videos 2025-02-05 13:01:54 +01:00
2185e23ab8 video test 2025-02-05 12:55:59 +01:00
52d7060428 Added mime type to videos 2025-02-05 12:53:08 +01:00
0d15dc57d7 compressed video 2025-02-05 10:51:26 +01:00
0d21495cf2 docs final project and blender 2025-02-05 10:38:40 +01:00
a2887d8953 docs about final project 2025-02-05 10:23:30 +01:00
abd96cc3c4 docs drone design 2025-02-05 10:18:41 +01:00
6 changed files with 61 additions and 16 deletions

View File

@@ -142,7 +142,7 @@ You can choose through how much walls it should go or you can define the dimensi
To connect the 2 sketches I used loft.
![alt text](../../assets/assets_week_2/Onshape/image-4.jpg)
What loft does is create a smooth solid surface between 2 surfaces.
Loft creates a smooth solid body between 2 surfaces.
![alt text](../../assets/assets_week_2/Onshape/image-1.jpg)
After that I created a sketch on the front surface with a offset so I could extrude the inside
@@ -150,6 +150,11 @@ After that I created a sketch on the front surface with a offset so I could extr
![alt text](../../assets/assets_week_2/Onshape/image-3.jpg)
After that I sketched the motor arms and sketched holes on top to cut the holes.
### Parameters
The parameter menu is very nice in Onshape It is on the side of the screen and it doesn't close automaticly when modeling. Which is very nice.
![alt text](image.png)
### 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.
@@ -183,7 +188,14 @@ After that you can select everything and press `Control + L` and then link anima
![alt text](../../assets/assets_week_2/blender/image-4.jpg)
<video controls src="../../assets/assets_week_2/blender/droneAnimation1.mp4" title="Title"></video>
<video controls src="/assets/assets_week_2/blender/droneAnimation1.mp4" title="Title" type="video/mp4"></video>
##### Issue with rotor animation
When I try to angle the drone for an animation the rotors go spinning in a weird direction and I don't know why.
<video controls src="/assets/assets_week_2/blender/droneRenderWhackyRotors.mp4" title="Title" type="video/mp4"></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.
@@ -210,7 +222,7 @@ When you want to give objects textures or colors you need to assign materials to
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.
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 it as image it doesn't get rendered in the 3d environment.
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.
@@ -250,7 +262,7 @@ When in object mode you can move your cursor using `shift + right click` and th
![alt text](../../assets/assets_week_2/blender/image-19.jpg)
#### 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.
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. I was searching a lot to figure out where it was until I searched a video explaining that you can define the output location and type.
![alt text](../../assets/assets_week_2/blender/image-17.jpg)
@@ -264,8 +276,33 @@ After setting all your settings you can go to the top menu and press `render` an
![alt text](../../assets/assets_week_2/blender/image-18.jpg)
#### Result:
<video controls src="../../assets/assets_week_2/blender/droneRender.mp4" title="Title"></video>
<video controls src="/assets/assets_week_2/blender/droneRender.mp4" title="Title" type="video/mp4"></video>
##### Issue with adding videos
When trying to view videos on the web my firefox says no MIME type.
![alt text](../../assets/assets_week_2/MIME.jpg)
I fixed it by searching basic video tag documentation. Then I added `type="video/mp4"` to every video tag. Because when pasting in images in markdown vscode forgets to add it.
source : `https://www.w3schools.com/tags/tag_video.asp`
What I also needed to do is set the absolute path instead of the relative path. For some reason it added `Assignment` in the link when trying to load the video
![alt text](../../assets/assets_week_2/browserconsole.jpg)
Its supposed the be `link.org/assets/video` instead of `link.org/assignment/assets`. But for some unknown reason it changes it. The fix now is to set the absolute path starting with `/assets/video.mp4` So now its referenced like this. ```html
<video controls src="/assets/assets_week_2/blender/droneRender.mp4" title="Title" type="video/mp4"></video>
```
instead of
```html
<video controls src="../../assets/assets_week_2/blender/droneRender.mp4" title="Title" type="video/mp4"></video>
```
## Conclusion/My thoughts
I liked this week. I learned a lot about blender and OnShape at the start of the week I really hated Onshape because I didn't like how to camera feels and finding all the tools is frustrating but after a while I got comfortable with it and I liked some aspects of it. I also worked with Fusion360 also learned a couple of new things in there like the offset planes.
## Files
* [drone fbx file](../../../3D-files/Drone%20v9.fbx)
* [drone step file](../../../3D-files/Drone%20v9.step)
* [drone fusion project file](../../../3D-files/Drone%20v8.f3z)
## Sources:
* [Exporting blender renders](https://www.youtube.com/watch?v=JPkzmWpZbLw)

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -4,7 +4,7 @@
I wanted to combine 2 random objects that interest me into one project. A drone and a jumbotron. So im gonna make a drone with multiple screens on it that could for example be used for traffic control or entertainment purposes.
## What does the drone do?
The drone needs to be able to fly for atleast 20 minutes. It needs 2 screens on both side so it can display images or video. I wanna program the drone myself so I know how drones work and how they keep themselves upright.
The drone needs to be able to fly for at least 20 minutes. It needs 2 screens on both side so it can display images or video. I wanna program the drone myself so I know how drones work and how they keep themselves upright.
## Drone Requirements
### basic requirements
@@ -37,17 +37,25 @@ The drone needs to be able to fly for atleast 20 minutes. It needs 2 screens on
## Drawing the drone
I have a few concept images above and this is the result my drawings.
![alt text](IMG_7688.jpg)
![alt text](IMG_7686-min.jpg)
![alt text](IMG_7712-min.jpg)
![alt text](IMG_7711-min.jpg)
![alt text](../assets/assets_week_2/fusion360/IMG_7688.jpg)
![alt text](../assets/assets_week_2/fusion360/IMG_7686-min.jpg)
![alt text](../assets/assets_week_2/fusion360/IMG_7712-min.jpg)
![alt text](../assets/assets_week_2/fusion360/IMG_7711-min.jpg)
In the second picture you can see that I wanted to make the drone 30 cm in length. But then I looked at the prices for bigger batteries and it started to get super expansive real fast. So I decided to make it smaller. So now im planning on making a drone 10 cm in length. Im still going for the design in the thirth image.
In the second picture you can see that I wanted to make the drone 30 cm in length. But then I looked at the prices for bigger batteries and it started to get super expansive real fast. So I decided to make it smaller. So now im planning on making a drone 10 cm in length. Im still going for the design in the third image. You can also kinda see that I got my inspiration from the third concept art image. And im giving my on twist on it.
## Designing the drone
When desigining the drone I wanted to do everything parametric. So im going to try to use as much variables as possible and make everything depend on each other so everything automaticly scales when I change one parameter.
When designing the drone I wanted to do everything parametric. So im going to try to use as much variables as possible and make everything depend on each other so everything automatically scales when I change one parameter.
## Designing paramemtricly
Designing parametricly is very hard because every constraint needs to be perfect. Otherwise when changing lengths the design will fold into itself like this.
![alt text](image.png)
I've spend one day getting the constraints perfect for the sketch so it scales well with everything.
### Designing the drone parametrically
Designing parametrically is very hard because every constraint needs to be perfect. Otherwise when changing lengths the design will fold into itself like this.
![alt text](../assets/assets_week_2/fusion360/image.jpg)
I've spend one day getting the constraints perfect for the sketch so it scales well with everything. And this is the result of that. When I change one parameter in the variable menu the entire body scales with it. This is the final result of my design. I've made the body myself and I've imported the components from grabcad. So I had more time for blender and Onshape and so I could visualize it better.
![alt text](../assets/assets_week_2/fusion360/image-18.jpg)
### Rendering
I've also made a render of the drone to visualize it for other people. Making this was kind of a pain because blender is a gigantic program. You can see my [docs](../Assignments/week_2_computer_aided_design_(cad)/drone_designing.md) to see where I struggled. This is my final result of the render. I've wished it looked nicer but I didn't have enough time to dive deeper into blender.
<video controls src="../assets/assets_week_2/blender/droneRender.mp4" title="Title"></video>
## CAM and machines