Support Topics
Support Topic / UC-win/Road Information regarding after-sales maintenance and support services
City Design Tools Vol.3 (Total of 7 episodes) Animated Character

 I am Kobayashi from Arizona State University. Here, I will introduce the City Design tool, which is publicly available from FORUM8.

 Our development goal is to provide a suite of tools that bridge the gap between FORUM8's VR software, UC-win/Road, and other 3D CG software for generating urban data and seamless conversion. The source code for the tools described here is also open. Currently, there is no specific maintenance or support provided, and our company will not be responsible for any errors or issues that may arise. We kindly ask you to understand this. Through this report, we invite professionals in architecture and civil engineering who are looking for tools suitable for their systems to contact us.

 Figurines
 The first and second sections introduce the PovrayToMax and ImageToTerrain tools. PovrayToMax is a tool for importing data created in UC-win/Road into other 3D software, while ImageToTerrain describes the process and tools for creating three-dimensional terrain data from aerial photographs. This time, we will be introducing AnimatedCharacter, a tool available in UC-win/Road that generates groups of characters using three-dimensional character models. In practice, this is a tool for batch converting animation models (mesh objects) created in Autodesk's 3DMax into PK3 format data, which is supported by UC-win/Road.
Swarm models are used in a wide range of fields, from evacuation simulations to the Harry Potter films and 3D games. In academia, two-dimensional multi-agent models are also being used for research and development related to various action paths (AI engines). Members of World16, a global group conducting VR city model research, have published a visualization project focusing on the Shibuya pedestrian scramble crossing, using data from 200 individuals. During the development process, creating three-dimensional animated characters was very time-consuming, which served as one of the motivations for developing this tool.

 Animated characters are three-dimensional character models that include actions such as walking, running, and standing. Creating these types of characters typically involves many steps. First, a three-dimensional mesh data representing the human body is created. Generally, software like Autodesk's Maya or 3ds Max is used, and creating highly realistic character models requires experience and skill. Recently, it has become possible to download mesh data from the internet and use specialized software for creating human bodies. Many people believe that having this mesh data allows them to easily create animated characters, but the process of creating the mesh itself accounts for about a quarter of the total work involved.

 Next, to connect the grid data for animation, a framework structure called a "skeleton" is created. The skeleton is constructed based on the shape and position of the grids (e.g., hands, wrists, feet, head). In principle, motion is assigned to this skeleton, and whether the resulting movement looks like realistic human motion depends entirely on how the skeleton is created. Mastering the creation of a human skeleton typically takes around 2-3 attempts.

 The next step is the skinning process, which integrates the skeletal data with the grid data. In reality, this part is the most challenging. As mentioned earlier, movements are essentially derived from the skeleton. The "skinning" process involves specifying how each vertex of the grid should move in relation to the movement of each bone. For example, when bending the wrist, the elbow joint needs to separate slightly between the upper arm bone and the lower arm bone. It is necessary to record in the Weight values how much each vertex of the elbow joint will be affected. These influence values are defined relative to all vertices and all bones. Recent tools have been significantly improved compared to older versions, but this process still takes a considerable amount of time. Especially for a single movement, even if the Weights are set correctly, subtle deformations can occur when new grid data is added, requiring repeated testing and adjustments.

 Following the skinning process, the actual movement of the skeleton, such as running animations, is designed. Keyframes are assigned to several crucial points in the animation sequence, and automatic generation is used for the frames between these keyframes. Recently, basic movements like walking and running have been pre-prepared and can be directly called upon. The animation from frame 0 to frame 47 constitutes 1 cycle of a walking motion, which can then be repeatedly called within the execution environment to create a character model that walks in a loop.

 Finally, after unfolding the completed grid on the UV map, you can use image editing software like Photoshop to depict textures such as those for the face, muscles, and clothing, and that completes the process.
 Character model data files
 The previous section described the method for creating general animation character models. This section explains how to format the data for import into a VR space. The VR software UC-win/Road from FORUM8 uses a data file called MD3. MD3 is a format developed for the Quark3 game and has been adopted by many FPS (Fast Person Shooting) games. However, because it prioritizes speed, it has more limitations compared to newer formats like FBX. Additionally, to control multiple parts and animations using multiple MD3 files and management files, they need to be compressed into a PK3 ZIP file format. This requires creating a specific folder structure and saving the MD3 files, texture image files, management files, and animation frame files in the appropriate directories. When using custom character models in UC-win/Road, it can take a lot of effort because you cannot create each PK3 file individually. AnimatedCharacter is a tool that simplifies this type of work. By selecting an animated character created in 3dsMax, you only need to specify the number of frames you want to use, and all the files will be automatically generated. The next section will explain how to use it.
 Solutions
 The usage methods of the tools have been broken down into step-by-step instructions. Additionally, tutorial animations and the tools themselves can be downloaded from the following website.

 This introduction describes a conversion tool that imports animated character models created in 3dsMax and converts them into PK3 data, which can be directly read by UC-win/Road. The PK3 files created using this tool can also be used with other 3D tools. Next time, we will introduce ImageToCity, an automatic generation tool for road geometry, urban planning, and three-dimensional city data from terrain data to buildings.

Animated Character Application Order
● Tutorial animations and tool downloads: http://world16.forum8az.com/2010/11/vr-tutorials-md3-character-pipeline.html

  1. Animation data required for use within 3ds Max during production
    • Models created using tools like Maya and MotionBuilder can be saved as FBX files and imported into 3dsMax. The imported data is recognized as an Editable Mesh (it must be a single mesh object). Here, we will use a chicken model created in MotionBuilder and Maya as an example.

  2. To preserve the converted data, create a hierarchy under "models\players\myObj"
    • The location of "myObj" can be set to your preferred file name.

  3. Open 3dsMax and from the menu, select "MAXScript, Run Script..." then specify the file "q3-md3 exporter beta .ms"
    • To add the tool, select "Quark3 MD3 Exporter" from the Utilities dropdown menu in the Utilities tab, just like you would when using a standard MaxScript.

  4. Select the animation object and enter "Start Frame" in the start frame number field and "End Frame" in the end frame number field
    • If the selected object has a Skin editor, please add the "Edit Mesh" editor.

  5. Specify the material file to be used by clicking the "Get Texture" button

  6. Select the "Set MD3 File Name" button and save the file with the name "lower.md3" in the myOBJ folder created in step 2

  7. Select the "Export MD3 File" button
    • Please confirm that all necessary files for the PK3 file have been generated in the myOBJ folder.

  8. Create a ZIP file by copying all files and folders below the "models" directory, and save it with the ".pk3" extension
    • After opening UC-win/Road and logging in, just like with character models, you can use the PK3 files that have been created.
■ Figure 1: The GUI of the Animated Character tool


■ Figure 2 shows the floor and filename specified in step 6


■ Figure 3: The group of files generated in step 7


Support Topic / UC-win/Road Information regarding maintenance and support services
VISSIM/S-PARAMICS
Detailed explanation of the traffic interaction features after import

 UC-win/Road Ver5.2 enables data connection with traffic analysis software such as VISSIM and S-PARAMICS, and the analysis results can be simulated and reproduced within UC-win/Road. UC-win/Road itself also has traffic simulation capabilities based on parameters like the number of vehicles passing per hour, route probabilities, and travel speed. However, if you have analysis results from a traffic analysis software, it can reduce the setup steps within UC-win/Road and allow for the individual operation of each vehicle to be represented. Furthermore, it is possible to perform interference checks between the vehicles that reproduce the analysis results and the simulated vehicles in UC-win/Road.

 VISSIM data integration
 VISSIM is a microscopic traffic simulation software sold by the German company PTV, and it can simulate vehicles, pedestrians, bicycles, and other elements on roadways. UC-win/Road utilizes the import function of the microscopic simulation player to import analysis results. During import, vehicle models can be selected based on the vehicle allocation file, allowing for a more realistic representation that distinguishes between cars, trucks, buses, and other types of vehicles. Furthermore, pedestrians, bicycles, and traffic signals can also be assigned within the microscopic simulation player, and the simulation results for pedestrians and bicycles can be imported from VISSIM. The switching of traffic signals can also be controlled based on the analysis results, and the movements of vehicles, pedestrians, and bicycles at intersections can be integrated to provide a comprehensive overall representation (Figure 1).

■ Figure 1: Simulation of an intersection after importing the analysis results into VISSIM

 Connect via the S-PARAMICS plugin
 S-PARAMICS is a microscopic traffic simulation software sold by the British company SIAS. It analyzes traffic flow by individually calculating the behavior of vehicles on the road. The road network and structure built in S-PARAMICS using S-PARAMICS plugins can be directly imported into UC-win/Road (Figure 2). The data conversion function allows for the reproduction of changes in alignment and cross-sections, and also supports the creation of bridges, tunnels, and roundabouts. Like VISSIM, the results of traffic flow analysis can be separately imported using a microscopic simulation player. By reading the movement logs of each vehicle, it is possible to visualize the overall operation of traffic. The simulations performed in S-PARAMICS can be directly reflected in UC-win/Road (Figures 3-4).

■ Figure 2: Importing S-PARAMICS data
Road network
■ Figure 3: Microscopic simulation player
Importing traffic flow data
■ Figure 4: Regarding the analysis results
Vehicle allocation models

 In addition, data conversion to S-PARAMICS can also be performed from UC-win/Road. The road network and road structure created in UC-win/Road can be converted into S-PARAMICS data using the data conversion function, and traffic simulations can then be run in S-PARAMICS based on this converted data. For example, a road network can be created in UC-win/Road based on design drawings, converted to S-PARAMICS for traffic analysis, and then the results of the traffic flow can be reflected back into UC-win/Road, allowing for a seamless workflow.

Company names and product names are generally registered trademarks or trademarks of their respective companies.

 Interactive features
 As an interactive feature of the microscopic simulation playback system, the traffic flow imported based on the simulation results allows for confirmation of interference with vehicles driven by users (Figure 5). Typically, the traffic flow imported into a microscopic simulation playback system is controlled using movement logs and does not fall under the objects that are subject to traffic control via UC-win/Road. When this function is used, the generated traffic flow automatically avoids vehicles being driven by the user, preventing collisions. This feature also includes functions such as understanding the positional relationship between traffic flow and the user's vehicle, automatically decelerating subsequent vehicles that may potentially collide with the user's vehicle, and switching traffic control settings using UC-win/Road. When the latter function is enabled, if traffic flow appears on the road, UC-win/Road can no longer switch based on that traffic flow.

■ Figure 5: Interactive Features

 When using the interactive functions, the analysis results of traffic flow can be utilized while driving on a simulated route within the driving simulator. The analysis results are applied to the displayed road itself, allowing confirmation of traffic conditions from a driver's perspective that cannot be achieved solely through analysis software. This provides a completely new experience with the analysis results (Figure 6-7).

■ Figure 6: Analysis results visualized using UC-win/Road ■ Figure 7: Vehicles in the surrounding area while driving
Controlled by a microscopic simulation player
(Published in the summer issue of Up&Coming '11)
Return
Up&Coming

FORUM8