Generate 3DCG model from drone aerial video / How to use Meshroom and blender
Meshroom is a free software developed by ALICEVISION Association, a non-profit organization established in July 2020, that can read multiple photos and generate 3D models from them. You can break down an aerial video taken with drone into multiple photos, and process them in Meshroom to generate 3DCG object in ".obj" format. Here, we will explain how to generate 3DCG object from aerial video, and import, edit, display it with free 3D modeling software: blender.
Meshroom official site
Free software that lets your drone scan the world (dronedj)
Free software that lets your drone scan the world (Part II) (dronedj)
このページを日本語で見る
Table of contents
- What you need
- Introducing procedure with video
- Extract still images from a video
- How to install Meshroom
- Make photos into 3DCG model with Meshroom
- Easy display using 3D viewer
- How to install blender
- Read obj file with blender
- Move / rotate objects with blender
- Remove unnecessary polygons with blender
What you need
All you need are drone, PC, and free softwares. Equipments used this time are...Drone is DJI Mini2 that even beginners can use. I used 4K resolution 30 FPS frame rate aerial video.
The better the performance of personal computer, the faster the processing will be completed. However, PC used this time was built in 2011, with CORE i7-2600 CPU, 8GB memory and graphic board equipped with NVIDIA GeForce GTX 1060 (3GB). Now when process 613 photos with Meshroom, it took about 24 hours to generate 3D model.
And only three free softwares you need, to break video into jpeg images: VLC media player , Meshroom and 3D modeling software blender . Generated model can be visualized from any direction as 3DCG, or can be three-dimensionalized using 3D printer. The target for 3D modeling this time is Japan's first Antarctic observation ship, "Soya" (following video).
DJI Mini 2 instructions. 4K aerial video mini drone weighing 249g
Japan's first Antarctic observation ship, "Soya"
Watch on YouTube
Introducing procedure with video
First of all, please have a look at the video that briefly introduced this procedure.
Generate 3DCG model from drone aerial video
Watch on YouTube
Extract still images from a video
Still images are required for Meshroom input. Drone video shot should be split into still images. You can use free video player: VLC media player for this. See below for more information on this procedure.item | value |
---|---|
Image format | jpg |
Image width | 3840 |
Image height | 2160 |
Recording ratio | 30 |
In addition, parts where the position and shape are difficult to determine, such as mirror surfaces like the sea (water surface), parts that reflect light and are overexposed, and parts that are blackened by shadows, are not modeled correctly.
This time, I used a total of 13 minutes of aerial video taken at 4K / 30FPS and converted it to a 3840x2160 pixel jpeg image. I deleted photos that didn't show subject well, and used remaining 613 photos in total.
VLC media player official site
How to install Meshroom
Also, for Meshroom to work, your PC must have a video card that supports NVIDIA CUDA (cuda-10 / compute capability 3.0-7.5). Worked with NVIDIA GeForce GTX 960 video cards manufactured in 2015, so I think it's okay if you have any recent NVIDIA video card.
There is no installer for Meshroom. If you download Meshroom, you will get a file such as "Meshroom-2021.1.0-win64.zip". Just unzip this in any folder and the installation is complete.
Meshroom official site
Make photos into 3DCG model with Meshroom
First, let's convert photos to 3DCG model with a minimum of steps.Please do not close this console screen until the end.
Then click green "Start" button at the top center of the screen to start process.
Output capacity of the processing result data varies depending on number of photos to be processed, and is about 3GB for 41 photos and about 30GB for 613 photos.
Meshroom online manual
Processing result is stored under "MeshroomCache/Texturing/[symbol folder]" under the folder where project (".mg" format file) is saved. 3D model (polygon data) will be saved in ".obj" format text file, material (information about texture file name and UV coordinates) is in ".mtl" format text file, and texture images are in multiple ".png" format files.
Easy display using 3D viewer
3D models in ".obj" format can be displayed in "3D Viewer" Windows10 standard application.Next, use 3D modeling software: blender to remove unnecessary polygons.
How to install blender
If you download blender installer, you will get a file such as "blender-2.93.1-windows-x64.msi". Double-click on it to install. There are no special precautions to take when installing. All you have to do is follow the instructions on the screen
blender official site
blender download page
This screen disappears when you press [ESC] key or click outside of this dialog box. Now you are ready to use blender.
blender online manual
Read obj file with blender
You can zoom in / out by scrolling mouse wheel. You can also change display position of object by holding down [Shift] key while dragging. You can rotate viewpoint by holding down mouse click wheel and dragging.
Move / rotate objects with blender
Move flipped object to the center of the world coordinate system and rotate it along X, Y, Z axes.You can zoom in / out by scrolling mouse wheel. You can also change display position of object by holding down [Shift] key while dragging. You can rotate viewpoint by holding down mouse click wheel and dragging.
If necessary, repeat above steps to adjust target polygons in object to center of world coordinates.
Remove unnecessary polygons with blender
You can zoom in / out by scrolling mouse wheel. You can also change display position of object by holding down [Shift] key while dragging. You can rotate viewpoint by holding down mouse click wheel and dragging.
If holes are closed, you can print it with 3D printer to make it three-dimensional. Please refer to the following site
Free software that lets your drone scan the world (dronedj)
Free software that lets your drone scan the world (Part II) (dronedj)
Drone shooting Odaiba Gundam Unicorn 4K
Watch on YouTube