|
About FBX files
FBX (Filmbox) is a proprietary file format (.fbx) developed by Kaydara. This format is used to provide interoperability between digital content creation (DCC) applications. FBX files are compatible with most 3D software, regardless of the software vendor or computer platform.
Main game engines
Currently, the most well-known game engines are Unity and Unreal Engine 4. Unity is often used for mobile games, while Unreal Engine 4 is typically used for high-end projects. While it's not impossible to create games with either engine regardless of the target platform, this seems to be a general trend. Both Unity and Unreal Engine 4 support FBX files. In this instance, we will focus on Unity.
Conversion procedure
This time, we will use City Design.rd, which is one of the sample files for UC-win/Road, in FBX file format. Select the file on the upper left and display the menu. Then, choose "Export" and then select "3ds File Export."
The 3ds export window will appear. In the advanced options, change the texture format to PNG (*.png). The default is bitmap format (*.bmp).
Specify the save location and file name, then click "Save" to export the City Design.rd scene as a 3ds file. Because a large number of images will be output, it is recommended that you create a new folder and save the file there.
Using web-available tools, convert the 3ds file to an FBX file. The output will be as follows.
Launch Unity and create a new project. The version I used this time is 2018.3.12f1. After opening the project, select "Assets" from the tabs at the top left, then choose "Import New Asset..."
An Explorer window will open, so select all related files except for the .3ds file, and then click "Import."
You need to make the black parts of the PNG file transparent. You can either use an image editing software to cut out the black areas, or you can find websites that offer tools for making PNG files transparent by searching for terms like "PNG transparency." Use one of these tools to remove the background.
Next, select the Assets for the Project and enter the FBX file name in the search bar. When you select the asset that appears, the Inspector will be displayed. In the Inspector, choose Materials → Location → Use ExternalMaterials (Legacy), and then click Apply.
Now, materials have been applied to each object. To modify an object, select it and then choose "sharder" -> "Unlit/Transparent."
If you assign a PNG file with transparency to the "select" option, then the entire process is complete.
After repeating the process several times, you will get an image similar to the one shown below.
Future plans
The current conversion process is somewhat complex, but once the steps are followed, it only involves repeatedly applying transparency and material settings. However, if UC-win/Road could directly output scene information to FBX files, most of these steps could be significantly shortened, especially if it also supported transparency for PNG images. Therefore, we plan to release a plugin soon that will allow exporting FBX files from UC-win/Road. This plugin will directly convert UC-win/Road scenes into FBX files, similar to how 3ds files are currently exported. We also intend to output textures with applied transparency. Please look forward to it.
|