Skip to content

2. Computer Aided Design (CAD)

Assignment for the week 2

  • Exploring 2D design tools.

  • Understanding raster and vector images, and learning how to convert one format to the other.

  • Exploring 3D modeling software and learning rendering, animation, and simulation techniques.

  • Learning how to compress videos using various tools.

Overview of what I did this week

A. Learned about 2D designing.

B. Understanding Raster and Vector Images, learning how to convert raster image to vector image.

C. Introduced to 3D Modelling, rendering and creating animation.

D. Learning how to compress videos.

*E. Learning How to compress Videos using XnConvert

A. Exploring 2D Design Tools

What is 2D Design?
According to A Beginner’s Guide to 2D Design, 2D design refers to the creation of artwork or visuals that exist within a two-dimensional space. It involves working with elements such as shapes, lines, colors, textures, and patterns to convey meaning or evoke emotions. Whether it’s a painting, illustration, or digital graphic, 2D design provides artists with a versatile platform to express their creativity.

There are many open-source software for 2D designing such as - GIMP: For image editing and photo manipulation. - Inkscape: For vector graphics editor. - Krita: For digital painting and animation. - Canva (Free version): Web-based tool for creating social media graphics, posters, and presentations. - Vector: Simple, free vector design tool for beginners.

Since I am more familiar with GIMP and Inkscape, I decided to explore them farther for my fabacademy.

B. Understanding Raster and Vector Images, and Learning How to Convert One Format to the Other

To understand the what is raster image, vector image and difference between the two, I went through this a website known as GeeksForGeeks.

When it comes to digital images, two main types are commonly used: raster and vector graphics. Understanding the difference between these two can help you choose the right format for your project.

Raster graphics, made up of tiny pixels, are ideal for detailed and colorful images like photographs.

On the other hand, vector graphics use mathematical paths, making them perfect for designs that need to be scaled without losing quality, like logos and illustrations. Both have their own strengths and weaknesses, and knowing when to use each can make a big difference in your design work.

Before we begin with what vector graphics and raster graphics are, we must understand a few basic terms:

  • Pixel: In Computer graphics, a pixel, dot, or picture element is a physical point in a picture. A pixel is simply the smallest addressable element of a picture represented on a screen. A majority of pictures that we see on our computer screen are raster images. The selfie that you click with your mobile phone is another example of a raster image. An image is made up using a collection of pixels referred to as a bitmap.

  • Bitmap: In computer graphics, a bitmap is a mapping from some domain (for example, a range of integers) to bits, that is, values which are zero or one. It is also called a bit array or bitmap index. The more general term pixmap refers to a map of pixels, where each one may store more than two colors, thus using more than one bit per pixel.Often bitmap is used for this as well. In some contexts, the term bitmap implies one bit per pixel, while pixmap is used for images with multiple bits per pixel.

Raster Graphics Raster images use bit maps to store information. This means a large file needs a large bitmap. The larger the image, the more disk space the image file will take up. As an example, a 640 x 480 image requires information to be stored for 307,200 pixels, while a 3072 x 2048 image (from a 6.3 Megapixel digital camera) needs to store information for a whopping 6,291,456 pixels.

We use algorithms that compress images to help reduce these file sizes. Image formats like jpeg and gif are common compressed image formats. Scaling down these images is easy but enlarging a bitmap makes it pixelated or simply blurred. Hence for images that need to scale to different sizes, we use vector graphics.

File extensions: .BMP, .TIF, .GIF, .JPG

Vector Graphics Making use of sequential commands or mathematical statements or programs which place lines or shapes in a 2-D or 3-D environment is referred to as Vector Graphics. Vector graphics are best for printing since it is composed of a series of mathematical curves. As a result vector graphics print crisply even when they are enlarged.

In physics: A vector is something that has a magnitude and direction. In vector graphics, the file is created and saved as a sequence of vector statements. Rather than having a bit in the file for each bit of line drawing, we use commands which describe a series of points to be connected. As a result, a much smaller file is obtained.

File extensions: SVG, EPS, PDF, AI, DXF

Conversions Vector to Raster: Printers and display devices are raster devices. As a result, we need to convert vector images to raster format before they can be used i.e displayed or printed. The required resolution plays a vital role in determining the size of the raster file generated. Here it is important to note that the size of the vector image to be converted always remains the same. It is convenient to convert a vector file to a range of bitmap/raster file formats but going down the opposite paths is harder. ( because at times we need to edit the image while converting from raster to vector) Raster to Vector: Image tracing in computing can be referred to as vectorization and it’s simply the conversion of raster images to vector images. An interesting application of vectorization is to update images and recover work. Vectorization can be used to retrieve information that we have lost. Paint in Microsoft Windows produces a bitmap output file. It is easy to notice jagged lines in Paint. In this kind of conversion, the image size reduces drastically. As a result, an exact conversion is not possible in this scenario. Due to various approximations and editing that are done in the process of conversion the converted images are not of good quality.

Aspect Raster Images Vector Images
Definition Made up of pixels (tiny squares of color). Made up of paths defined by mathematical equations.
File Formats JPEG, PNG, GIF, BMP, TIFF. SVG, AI, EPS, PDF, CDR.
Scalability Lose quality when scaled up (pixelation occurs). Infinitely scalable without losing quality.
Resolution Resolution-dependent (measured in DPI or PPI). Resolution-independent.
Best Use Cases Photographs, detailed artwork, and web graphics. Logos, icons, illustrations, and print designs.
Editing Flexibility Limited; editing pixels can reduce quality. Highly flexible; paths and shapes can be easily modified.
File Size Larger file sizes, especially for high-resolution images. Smaller file sizes, as they store mathematical data.
Software Adobe Photoshop, GIMP, Corel Photo-Paint. Adobe Illustrator, CorelDRAW, Inkscape.
Complexity Easier to create detailed, realistic images. Better for clean, geometric, and scalable designs.
Print Quality Requires high resolution for good print quality. Always sharp and clear, ideal for printing.

I. GIMP

Removing Background of image using GIMP.

  1. Download GIMP form here.

  2. Install GIMP.

  3. To explore GIMP with an image, I downloaded an image from here. This Image is from the animation “Raya and the Dragon”.

  4. Open GIMP and open the image you want to work on.

  5. Use Scissors Select Tool which select shapes using intelligent edge-fitting.

  6. To use Scissors select tool, click on the Scissors icon. Make boundary around the part of the image you want to keep.

  7. Once you finish selecting the part of image you want to keep, click enter to select the part.

  8. Then go to Select and invert the scissors select part so that you can remove the unwanted part of image (the background).

  9. Hit delete key to remove the background.

II. Inkscape

Converting Raster Image to Vector image so that it cen be used well for laser cutting.

  1. Download Inkscape from here.

  2. Install it on your computer.

  3. Open Inkscape and start working on Raster to Vector conversion. I have used this image downloaded form here.

  4. Open the image in Inkscape or import the image to Inkscape.

  5. Select the imported image and go to “Trace Bitmap” to convert your raster image to vector image.

  6. Adjust the threshold and other parameters to get an optimal vector image.

  7. Comparing raster image and vector image of the same.

  1. Resultant vector image of the raster to vector conversion.

Designing a sticker for my final project. “Head Rest” is a name for my final project.

  • Open Inkscape.

  • Insert an ellipse and size it properly.

  • Insert Text “Head Rest”.

  • I Changed the font style to Forte and size it so that it fit into the ellipse.

C. Exploring 3D Modeling Software and Learning Rendering, Animation, and Simulation Techniques

To understand the basic of 3D modelling I went through coursera’s freely available tutorial.

3D modeling is a tool used to help turn ideas into tangible products. As a versatile technique, 3D modeling has grown in its applications across various industries, from animation and gaming to manufacturing and beyond. Today, the rise of artificial intelligence (AI) is streamlining the 3D modeling process, allowing designers to automate portions of the process, like optimizing according to various criteria, to focus on overcoming design barriers and challenges. Drawing on AI can enhance the quality of the models and create them at faster speeds for enhanced renderings. Using 3D modeling, you can create a digital representation based on an existing or imagined object that conveys the physical or planned object’s size, shape, and texture. Unlike 2D models, you can view 3D models from any angle—modified, scaled, and rotated—within the specialized 3D modeling software.

The three dimensions of 3D objects refer to an object’s height, width, and depth. The basic building blocks of 3D models typically include vertices, edges, and polygons:

  • Vertices: Points that define your model’s shape.
  • Edges: Straight lines that connect the vertices.
  • Polygons: Surfaces created by connecting the edges of your model or where two polygonal faces meet.

This is the list of open-source 3D modeling software given to me by DeepSeek:

Open-Source 3D Modeling Software

i. Blender
- A powerful, all-in-one 3D suite for modeling, sculpting, animation, rendering, and simulation.
- Supports game development, VFX, and 3D printing.

ii. FreeCAD
- Parametric 3D CAD software for product design and engineering.
- Ideal for mechanical and architectural modeling.

iii. OpenSCAD
- A script-based 3D modeling tool for creating precise 3D models.
- Best for programmers and engineers.

iv. Tinkercad (Web-based)
- Beginner-friendly, browser-based 3D design tool.
- Great for simple models and 3D printing.

v. MeshLab
- Focused on processing and editing 3D mesh files.
- Useful for cleaning and optimizing 3D scans.

vi. Wings 3D
- A lightweight, easy-to-use subdivision modeler.
- Suitable for organic and hard-surface modeling.

vii. BRL-CAD
- A cross-platform CAD system for engineering and design.
- Known for its high precision and ray-tracing capabilities.

viii. SolveSpace
- Parametric 3D CAD with constraints-based modeling.
- Great for mechanical parts and assemblies.

ix. Art of Illusion
- A simple, Java-based 3D modeling and rendering tool.
- Good for beginners and hobbyists.

x. MakeHuman
- Specialized for creating realistic 3D human models.
- Often used in animation, games, and simulations.

I have decided to explore Blender and Fusion 360 further after attending an introductory class on both software programs led by our local instructor and Fab Guru, Rico. I am excited to delve deeper into learning Blender and Fusion 360, as I currently have very minimal skills, despite having used these two software programs before for simple modeling.

  1. I started by downloading Blender from here.

  2. Installing blender on my computer.

  3. I will be following Blender Hard-Surface Modeling Fundamentals tutorial from Youtube. This interesting tutorial is recommended by Guru Rico.

  4. Started with the tutorial by exploring how to navigate through blender and quite intimated by all the tools available on Blender.

Modelling the main coffee cup

  1. Adding “Round Cube” from Mesh with Shit + A hotkey while keeping working in Object mode.

  2. Learned how to install extension for additional module and tools. For this tutorial, I installed extension for “Extra Mesh Objects”.

  3. Select the object and switch up to the Edit Mode so that I can work with geometry of an object.

    Notes: Hotkeys: Numpad 1:Vetex slection
    Numpad 2:Edge Selection Numpad 3:Face selection

  1. Select above half of the mesh.

  2. Delete the selected mesh.

  3. Select the edge of the mesh.

  4. Extrude it with Ctrl + e hotkey and jump back to object Mode using tap.

  5. Select the model, Click on Modifier menu on right side.

  6. Add Subdivision Surface Modifier to it.

  7. Left click and give Shade Auto Smooth.

  8. Result of Shade Auto Smooth.

  9. Go to modifier.

  10. Similarly Add Solidify Modifier to give some thickness for your cup and give the desired thickness for you cup.

  11. And also add Bevel Modifier for make edges of the cup smoother and checked Harden Normals under the same Modifier.

  12. Duplicate the cup by selecting the cup.

  13. Pressing Shit + d scale it down with S.

  14. select the inner cup, jump into Edit Mode, press 2 on numpad to activate edge select and select the edges. Then clik e to extrude, right click to drop and s to scale it accordingly.

Modelling the handle for the coffee Cup

  1. Jump back to Object Mode Select the outer cup and jump right back to Edit Mode. click 2 on numpad to activate edge select.

  2. Select one vertical line so that you can created horizontal loop cut.

  3. Ctrl + R to create a Loop cut.

  4. select the cup and Jump to edit mode, chose a vertex where you want to make the handle for your cup. Click Shift + S and choose Select Cursor to Selected”. Like earlier click Shit + A –> Mesh–> cube to add a cube to model handle for the cup. Resize the cube according to your liking using S/S+X(Sizing in X direction),S+Y(Sizing in Y direction),S+X(Sizing in Y direction).

  5. Removing certain parts from the cube to model the handle for the cup.

  6. Use Bridge faces to remove the middle part of handle.

  7. Select and delete the front side of the handle.

  8. Straighten the angle faces at the end of handle.

  1. Ctrl + 2 to add Subdivision Surface Modifier.

  2. Add Bevel Modifier.

  3. Result of Bevel Modifier.

  4. Fill the empty handle to make it solid surface.

  5. Select the edges at the two ends of the handle.

  6. Give crease to two ends of the handle.

  7. Make a vertical loop cut on the handle and go to the Modifier.

  8. Select all the faces and group them so that you can use them for Shrinkwrap Modifier.

  9. Use Shrinkwrap to project the handle on the cup.

Modelling an eye for the coffee cup

  1. Move the cursor where you want to model an eye for your coffee cup. Add Cylinder from Mesh.

  2. Create Inset to model the hollow for the eye.

  3. Grid fill the edges left behind earlier.

  4. Extrude the gird filled edges and move it into the eye.

  5. Give Subdivision Surface Modifier and give crease.

Modelling Leg

  1. Move the cursor on a point where you want to model leg for the coffee cup and add cylinder. Position the cylinder and also size it properly. Then give Subdivision Surface Modifier.

  2. Enter into isolation mode to focus on modelling the leg.

  3. Give crease and create inset on the middle of the cylinder. Also give Bevel Modifier.

  4. Exit Isolation mode and add cube from Primitive tools.

  5. Size and position the cube as desired.

  6. Use Primitive tools with Boolean operation to style your leg with slicing. To use Bool tools, install Bool tools and add another cube which can be used as the object for boolean operation.

  7. Add two loop cut parallel to each other.

  8. Enter Face select Mode, select one face and drag it form a desired shape.

  9. Now use non-destructive boolean operation slice the leg.

  10. Result of Bool Operation.

  11. Duplicate the part of leg already created to create lower part of the leg.

  12. Now to duplicate leg to create another leg, snap the cursor to the world origin and use the cursor as a transform Pivot Point.

  13. Now, duplicate the leg and mirror it.

Modelling Initial on the coffee cup.

  1. Add plane and position it in front of the cup where you want to put an initial on the coffee cup.

  2. Subdivide the plane in 10x10 and draw FA (FabAcademy) by selecting the faces.

  3. Invert the selection and delete it.

  4. Add some corner details and Use Shrinkwrap to project the letters on the coffee cup.

  5. Result of Shrinkwarp.

Adding HDRI

  1. Go to Shade Editor

  2. Enter World Mode and add Environment texture.

  3. Download HDRI from here

  4. Connect Environment Texture to Background color and add downloaded HDRI.

  5. Hide the HDRI by adding another background.

  6. Add Mix Shader

  7. Add light path factor

Giving Material properties

  1. Give material Properties to all the parts of your coffee cup.

  2. Final Result

Another blender tutorial to learn some basics of animation

  1. Add a cube and a plane and size the. Now, add Rig on the cube to create simple animation.

  2. Go to timeline.

  3. Now create a multiple copies of cube (in different form and position to make it look like it bouncing) in different time frame.

  4. Switch to Graph Editor mode.

  5. Simple animation in Constant Graph Mode.

  6. Use Bezier Interpolation Mode to make your bouncing cube more smoother.

  7. Animation in Bezier Interpolation Mode.

  8. Final Result:

D. Learning How to Compress Videos Using HandBrake

  1. Download HandBrake from here

  2. Open HandBrake and open the video you want to compress

  3. Checked the web optimized option for optimal web integration.

  4. Click “Start Encode” to start compressing the video.

  5. Once finished compressing, browse for directory to save the compressed video and also rename it as desired.

  6. Size comparison of original video and compressed video.

E. Learning How to compress Image using XnConvert

  1. Open XnConvert.

  2. Open an image or batch of images for compression.For single image compression, import the image.

  3. Select the imported image.

  4. Go to Select Menu and reduce the size and resolution of image to compress it.

  5. Go to Output Menu and give relevant file name, directory to save the compressed image and image format.

  6. Hit Convert to compress the image

  7. To compress multiple images in batch, follow above steps but give a good naming rules so that you will can manage larges number of compressed images conveniently.

  8. Size comparison of original image and compressed image.

Design Files

i. Coffee Cup Blender file..

ii. Bouncing Cube Blender file.

iii. Raya (Background Removed in Inkscape).

iv. Vector Image (raster to vector conversion on Inkscape).

v. Sticker Design for my Final Project.