Support Topics
Support Theme / UC-win/Road Information related to maintenance and support services
Methods for using FBX files

 Foreword
UC-win/Road Ver5.0 utilizes the FBX SDK from Autodesk, supporting the FBX file format. The FBX file format is a widely used modeling format in the industry. UC-win/Road correctly imports FBX files, and the imported FBX models can be visualized, added to, and adjusted within the FBX scene editing screen of UC-win/Road.
 The number of applications supporting the FBX format is gradually increasing in the 3D industry. As an intermediary format, UC-win/Road can be connected to programs such as Google SketchUp and VISSIM.

 Import FBX files into UC-win/Road
UC-win/Road Version 5.0 supports most of the main features besides animation information contained in FBX files.

Content Corresponding conditions
Spatial relationships Movement, rotation, and scaling are perfectly synchronized
Ingredients Ambient, Diffuse, Emissive, Specular, Shininess – fully compatible
Material The standard materials are fully compatible
Multi-texture: Materials corresponding to the Diffuse and Emissive channels
Transparent Fully compatible
Animation Under development

The imported FBX data is referred to as an "FBX scene" within UC-win/Road and is edited in the FBX scene editing screen. In the FBX scene editing screen, you can adjust the positional relationships and structure of the FBX data. Adjustments to materials and textures are made in the FBX node editing screen.

 Editing FBX models
(1) Structural adjustment
 When importing from an FBX file and you only want to use certain parts of the imported data while removing unwanted sections, you can adjust the node tree from the structure page.
 In Figures 1-1 and 1-2, the scene imported from the FBX file includes not only the dragon but also elements such as the ground and trees. To use only the dragon, you can quickly adjust the scene by simply deleting other nodes or setting them to hidden.

→
■ Figure 1-1 ■ Figure 1-2
※ The above-mentioned sample data was modified from a sample model originally created in 3ds MAX.


(2) Position adjustment
 Due to slight differences in specified units and three-dimensional axis definitions across different applications, the scaling, rotation, position, and other properties of imported FBX scenes can be edited on the offset page.
In the three-dimensional space of UC-win/Road, the unit of distance is meters. The X-axis represents the east-west direction, the Z-axis represents the north-south direction, and the Y-axis represents the vertical direction.

Scale ratio It features a scale function that simultaneously adjusts X, Y, and Z axes, with settings ranging from 0.001 to 1000
Coefficient
Rotating Displays the local axes of the model and provides functionality for referencing them with respect to the global axes
Display local axis
Location The model automatically configures itself in the center of the screen
Automatic adjustment


(3) FBX node editing tool
In the node editing screen, you can edit the material properties of the FBX file.

Material channel Color Material
Diffuse ○ ○
Emissive ○ ○
Ambient ○ ×
Specular ○ ×

Materials and other properties Scope
Opacity 0%~100%
Brightness 0~128

Material properties Support
File format  GIF, PNG, JPG, JPEG, BMP, TAG 
U&V mapping method REPEAT/CLAMP
U&V position adjustment Proportionality, rotation, and offset

 Reapplication of FBX models with UC-win/Road
(1) Multi-layered texture
 By setting the Diffuse and Emissive material properties, it is possible to achieve multi-layered texture effects.
 In the daytime rendering, the color of the diffuse material is enhanced, while the color of the emissive material is reduced, and then both materials are combined and rendered (Figure 2-1).
 At night (when there is no sunlight), rendering is performed using emissive materials. When spotlights are present, they are combined with diffuse materials and then rendered.

■ Figure 2-1: Daytime environment
· Walls: The material used during the daytime
· Ground: Made of wood
Cylindrical shape: Made of wood material
■ Figure 2-2: Nighttime environment
· Walls: The material used during the daytime
· Ground: Made of wood
Cylindrical shape: Made of wood material
■ Figure 2-3: Nighttime environment with other light sources (※)
· Walls: The result of combining wall color and lighting
· Ground: A composite material made of concrete and wood
· Cylinder: A composite material made from wood and flame-resistant materials

The FBX files used in Figures 1-1, 1-2, and 2-1 through 2-3 are sample outputs from Autodesk 3ds MAX 2009.


(2) Lighting effects
 Currently, UC-win/Road simulates nighttime scenes by adjusting the material properties for nighttime. In the future, simply adjusting one property of FBX materials – emissive – will allow for more natural lighting effects. The emissive color is not a reflected light color; it's the color emitted by the object itself. By setting this color, realistic lighting effects in nighttime environments can be achieved easily without complex texture settings (Figures 3-1 and 3-2).

■ Figure 3-1: Daytime appearance ■ Figure 3-2: Lighting effects adjusted using emissive color
The material of the window glass incorporates emissive colors to achieve a specific effect
It can demonstrate lighting effects in nighttime environments

(3)LOD
 When creating FBX scenes, to ensure the overall performance of UC-win/Road, LOD settings can be applied to the FBX files. This is often used as a necessary feature, especially when the FBX scene contains many transparent polygons.

Level Detail 
1 (user-configurable) Polygon, material, substance, transparent
2 (Automatic) Polygon, material, substance
3 (Automatic) Polygons, materials

 Level 2 and Level 3 are automatically rendered using UC-win/Road. Whether Level 1 is rendered can be adjusted in the performance settings of the FBX scene editing screen's options page, by setting the distance coefficient for objects that should be ignored due to transparency. The determination method is as follows.

R: The maximum radius of an FBX scene
DIST: The distance from the current viewpoint in OpenGL to the center point of the FBX scene
α: coefficient
When DIST > R × α, the Level 1 representation is omitted.

■ Figure 4-1: LOD effect diagram
Within the red circle: The transparent portions should not be drawn
In the image below, the green area represents the transparent portion

 Integration with tools from other companies
(1) Exporting from Autodesk 3ds Max to FBX format
 The recommended settings for exporting FBX files from 3ds Max for use with UC-win/Road are as follows.

Project settings Recommended settings
Units  inches changed to meters
Axis Conversion The Up Axis is set to Y-up
FBX File Format Version: FBX 2010 and later
■ Figure 5: 3ds Max FBX export settings screen

(2)Google SketchUp
 Within Google SketchUp Pro, the created models can be exported as FBX files. The imported FBX models in UC-win/Road can then be rendered within a VR environment.


(3)VISSIM
 The road network data from VISSIM can be exported to Autodesk 3ds Max.
 Within 3ds Max, connection with UC-win/Road can be achieved by converting the VISSIM road network into an FBX file (Figures 6-1 and 6-2).

■ Figure 6-1: Road data for VISSIM ■ Figure 6-2: Displayed results in UC-win/Road

 Concluding remarks
 UC-win/Road 5 can correctly import the position of FBX models, and materials and textures can also be reproduced beautifully. In addition, options for three-dimensional representation specifically for UC-win/Road have been added. As applications corresponding to FBX are rapidly increasing in the industry, UC-win/Road is continuously improving its support for FBX files.
 The next version is currently being developed and will include animation features compatible with FBX.

FBX file format refers to..
File formats designed to facilitate seamless data exchange between different applications that handle 3D data. Kaydara, a company based in Montreal (founded in 1993), initially developed this file format for its software "Filmbox." This object-based model allows the storage of motion data for 2D and 3D audio and video content. FBX files can be used to read node structures, 3D mesh data, and material information.

(Published in the January issue of Up&Coming '11)
Return
Up&Coming

FORUM8