Civil Engineer's Forum-FORUM8
Set this page as your homepage QR

Facebook - FORUM8

Twitter - FORUM8

instagram - FORUM8

YouTube - FORUM8

 Sitemap | Terms of Service | Inquiries | English translation site | Japanese | English | Korean | Vietnam | Francais

Support Topics
Support Topics / UC-win/Road Maintenance and support service related information
City Design Tools, Volume 3 (Total of 7 installments) Animated Character

 I am Kobayashi from Arizona State University. I will introduce a tool called "City Design," which is available from FORUM8, with a link to its page: City Design.

 We are developing a suite of tools aimed at seamlessly generating and converting urban data between FORUM8's VR package, UC-win/Road, and other 3D CG packages. The tools introduced here have their source code publicly available. Currently, we do not offer specific support, so while we strive for quality, we cannot be held responsible for any issues such as bugs. If you are in the architecture or civil engineering field and require a simple tool that is compatible with your company's system, please feel free to submit your requests.

 Character models
 In the first and second installments, we introduced tools called PovrayToMax and ImageToTerrain. PovrayToMax is a tool used to import data created in UC-win/Road into other 3D software, while ImageToTerrain was a tool for creating 3D terrain data from aerial photographs. This time, we will introduce AnimatedCharacter, a tool for creating 3D character models that can be used for crowd generation and other purposes within UC-win/Road. In reality, this is a tool that converts the created animation model (mesh object) in Autodesk's 3dsMax into data in the PK3 format, which is supported by UC-win/Road, allowing for bulk conversion.
Agent-based models are used in a wide variety of fields, from evacuation simulations to Hollywood movies and 3D games. In academic research, 2-dimensional multi-agent models are used to study and develop various behavioral rules (AI engines). Members of World16, a global working group researching VR urban models, also announced a project visualizing the movement of 200 people at the Shibuya scramble crossing. The difficulty in creating three-dimensional animated characters during its development was a major motivation for developing this tool.

 Animation characters are three-dimensional human models with animations such as walking, running, and stopping. Typically, creating these characters requires many steps. First, a three-dimensional mesh data of the human body is created. Software like Autodesk's Maya or 3ds Max can be used, but creating a model that looks realistically human requires experience and skill. Recently, it has become possible to download such models from the internet, and there are also software programs specifically designed for creating human bodies, which can be utilized. Many people believe that once you have this mesh data, creating an animation character is easy, but the process of creating the mesh itself represents only about a quarter of the overall work.

 Next, to link the animation to this mesh data, we create a skeleton called "bones." We create these bones while aligning them with the shape of the created mesh (arms, legs, neck, etc.). Essentially, movement is applied to these bones, so whether the movement looks human-like depends on how the bones are structured. With practice, you should be able to create a human-like skeleton in 2 or 3 attempts.

 Next, we need to perform skinning, which integrates the bone data and mesh data. This is actually the most challenging part of the process. As explained earlier, movement is primarily controlled by the bones. Skinning involves specifying how much each mesh vertex moves in relation to the movement of each bone. For example, when bending an arm, the elbow area is affected by both the upper arm bone and the lower arm bone, so we need to describe how much each vertex in the elbow region is influenced using a weight matrix. We define these influence values for all vertices with respect to all bones. While recent tools have significantly improved compared to older ones, it remains a time-consuming process. In particular, even if you achieve good weight settings for 1 movement, adding a new movement can often cause the mesh to deform strangely, so considerable trial and error is required.

 After the skinning process, you design animations where the bones move or run. You set reference poses for several keyframes and configure the software to automatically generate frames between those keyframes. Nowadays, basic movements like walking and running are often available as presets, so you can use those if you wish. If you create a file containing 48 frames that represent 1 cycle of walking, from frame 0 to frame 47, then in the execution environment, by simply repeating this sequence, you can create a character model that appears to be walking continuously.

 Finally, the completed mesh is unwrapped for UV mapping, and textures such as those for the face, muscles, and clothing are created using image editing software like Photoshop to complete the process.
 Character model data files
 In the previous section, we introduced a general method for creating animation character models. Here, we will introduce a format for saving this data and importing it into a VR space. The UC-win/Road VR software from Forum8 uses a data file called MD3. MD3 is a format developed for the game Quark3, and it has been adopted by many first-person shooter (FPS) games. However, because it prioritizes rendering speed, it has many limitations compared to more recent formats such as FBX. Also, since some parts and movements are controlled using multiple MD3 files and control files, a PK3 file, which is a ZIP format, must be created. Within this file, you need to create the specified folder structure and save the MD3 files, texture image files, control files, animation frame files, and other elements in the appropriate hierarchy. When using custom characters with UC-win/Road, users have to manually create these PK3 files, which can be quite challenging. The AnimatedCharacter tool was created to simplify this process. By selecting an animated character created in 3dsMax and specifying the desired number of frames, it automatically generates all the necessary files. In the next section, we will introduce how to use it.
 Solutions
 The usage of the tools has been explained step-by-step. Additionally, tutorial videos and the tools themselves are available for download on the following website.

 This time, we introduced a tool that converts animation character models created in 3dsMax into PK3 data format, which can be directly read by UC-win/Road. The PK3 files created using this tool can also be used with other 3D authoring tools. Next time, we will introduce ImageToCity, a tool that automatically generates three-dimensional urban data including buildings from road networks, zoning information, and terrain data.

Animated Character Usage Procedure
● Tutorial videos and tool downloads: http://world16.forum8az.com/2010/11/vr-tutorials-md3-character-pipeline.html

  1. Creating animation data to be used with 3ds Max.
    • You can import data saved as an FBX file from other tools such as Maya or MotionBuilder into 3dsMax. The imported data will be recognized as an Editable Mesh (it must be a single mesh object). In this example, we used a chicken model created in MotionBuilder and Maya.

  2. To save the converted data, create a directory structure named "models\players\myObj"
    • You can use any name you like for "myObj"; it doesn't have to be that specific name.

  3. Open 3ds Max and select "MAXScript > Run Script..." from the menu, then specify the file "q3-md3 exporter beta.ms"
    • Just like with normal MaxScript execution, selecting "Quark3 MD3 Exporter" from the Utilities dropdown list in the Utility tab will add the tool.

  4. Select the animation object and enter the starting frame number and ending frame number in the "Start Frame" and "End Frame" fields
    • If the selected object has a Skin modifier, please add an "Edit Mesh" modifier.

  5. Specify the texture file to be used with the "Get Texture" button

  6. Select the "Set MD3 File Name" button and save the file named "lower.md3" to the myOBJ folder that you created in step 2

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

  8. Create a ZIP file and copy all files and folders within the "models" directory (created in step 2) into it, then change the extension of the ZIP file to .pk3
    • To use it, open UC-win/Road and register the PK3 file you created, just like you would with a human model.
■ Figure 1: GUI of the Animated Character tool


■ Figure 2: The hierarchy and file name specified in step 6


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


Support Topics / UC-win/Road Maintenance and support service related information
VISSIM/S-PARAMICS
Detailed information about the traffic interaction features after implementation

 UC-win/Road Ver5.2 enables data linkage with traffic analysis software such as VISSIM and S-PARAMICS, allowing users to reproduce the analysis results within UC-win/Road. While UC-win/Road itself has a function for performing traffic simulations based on factors like vehicle counts per hour, route probabilities, and travel speed, having the analysis results from traffic analysis software can reduce the setup time within UC-win/Road and allows for the expression of individual movements of each vehicle. Additionally, there is an interaction feature that checks for interference between vehicles reproduced from the analysis results and simulation vehicles within UC-win/Road.

 VISSIM data integration
 VISSIM is a traffic microsimulation software sold by the German company PTV. It allows for the simulation of vehicles, pedestrians, bicycles, and other elements on roadways. Analysis results from VISSIM can be imported into UC-win/Road using the micro-simulation player's import function. During import, you can select vehicle models to be used for each vehicle profile, allowing for distinctions between passenger cars, trucks, buses, and other types of vehicles, which provides a more realistic representation. The micro-simulation player also allows for the assignment of pedestrians, bicycles, and traffic signals, and simulation results for pedestrians and bicycles from VISSIM can also be imported. Traffic signal switching can be controlled according to the analysis results, making it possible to represent the movements of cars, pedestrians, and bicycles collectively at intersections (Figure 1).

■ Figure 1: Simulation of an intersection based on analysis results imported from VISSIM

 Integration via the S-PARAMICS plugin
 S-PARAMICS is a traffic microsimulation software sold by the British company SIAS. It analyzes traffic flow by individually calculating the behavior of vehicles on roadways. By using the S-PARAMICS plugin, it is possible to directly import the road network and road structure created in S-PARAMICS into UC-win/Road (Figure 2). The data conversion function allows for the reproduction of road structures such as changes in alignment and cross-sections, and also supports the creation of bridges, tunnels, and rotary intersections. As with VISSIM, the traffic flow analysis results can be loaded separately using a microsimulation player, and by loading the movement logs of each individual vehicle, the overall flow of traffic can be visualized, allowing for the simulation performed in S-PARAMICS to be directly reflected in UC-win/Road (Figures 3 and 4).

■ Figure 2: S-PARAMICS
Loading road network data
■ Figure 3: Micro-simulation player
by traffic flow analysis
■ Figure 4: Analysis results
Assign vehicle models

 Furthermore, data conversion from UC-win/Road to S-PARAMICS is also possible. The data conversion function allows you to convert road networks and road structures created in UC-win/Road into S-PARAMICS data, and based on the converted data, traffic simulations can be executed using S-PARAMICS. This enables a seamless workflow, for example, creating a road network in UC-win/Road based on design drawings, converting it to S-PARAMICS using the data conversion function to perform traffic analysis, and then reflecting the results back into UC-win/Road to represent traffic flow.

Please note that company names and product names are generally registered trademarks or trademarks of their respective companies.

 Interaction features
 The micro-simulation player has an interaction function that allows users to check for potential collisions between their vehicle and the traffic flow loaded using simulation results (Figure 5). Typically, the traffic flow loaded by the micro-simulation player is controlled by movement logs and is not subject to traffic control by UC-win/Road. However, this function enables users to avoid collisions between the simulated traffic flow and their own vehicle. It also allows for features such as automatically decelerating vehicles following behind that are at risk of colliding with the user's vehicle based on their relative positions, or switching the traffic flow to be controlled by UC-win/Road. If the latter function is enabled, the traffic flow will switch to being controlled by UC-win/Road as soon as it appears on the road, and the vehicles will no longer follow the movement log.

■ Figure 5: Interaction Functionality

 When using this interaction function, it becomes possible to apply traffic flow analysis results to the course being driven in the driving simulator. By actually driving on roads that visually represent the analysis results, users can confirm traffic conditions from a driver's perspective, something that cannot be achieved with analysis software alone, and experience a new way of understanding the analysis results through personal experience (Figures 6 and 7).

■ Figure 6: Visualization of analysis results using UC-win/Road ■Figure 7: Vehicles in the surrounding area during operation
Controlled by a micro-simulation player

     
Previous page    Index    Next page
(Featured in the "Mokkasō" issue of Up&Coming '11)
Go back
Up&Coming

FORUM8


Contact information




■ [User Introductions]
sugiko Corporation, Technical Sales Department
Scaffolding Safety Consulting Department

Mie University, Graduate School of Engineering
Seika Digital Image Co., Ltd.
Infranet Co., Ltd.






>> Product comprehensive catalog


>> Premium membership services
>> Financial support

Recently released products
■ Electrical Media Delivery Support Tool Version 19
■ Retaining wall design, 3D reinforcement detailing, Version 26
■ Bridge Maintenance Plan System Version 7
■ Calculation for concrete slab placement (compliant with R7/H29 road standards), Version 2

Campaign in progress
■ Within 2 years of release, enjoy a 30% discount plus 30,000 FPB points back
■ Smart download
■ Design Festival 2026, exclusive for visitors
■ Drone school discount

Seminar and event calendar
Upcoming seminars
11/26  Metavernia F8 VPS experience
11/27  Introduction to Structural Analysis
12/2  Engineer programming
  Introduction to yoga experience
12/3  DesignBuilder experience
12/4  Reinforced concrete foundation

Software/Support Services
VR software(Virtual reality)
《UC-win series》
Road simulator
• Driving simulator
• Micro-simulation
Evacuation analysis and simulation
>> Other VR software
FEM analysis software
・3-dimensional plate dynamic nonlinear analysis
・2-dimensional dynamic nonlinear analysis
・A comprehensive finite element analysis system
>> Other FEM analysis software
Civil engineering, architecture, and design software
《UC-1 Series》
・Structural analysis/cross-section
Bridge superstructure
・Bridge substructure components
Foundation work
Temporary construction
Road construction and earthworks
・Harbors
・Hydraulic engineering
・Subsurface investigation and analysis
・CAD/CIM systems, construction accounting
• Maintenance and management, earthquake risk
Architecture
・Ships/Evacuation
>> Other civil engineering, construction, and design software
Cloud
《Supercomputer Cloud®》
・Supercomputer cloud services
《VR-Cloud®》
・Real-time VR system
Analytical support services/support
・UC-win/Road support system
・Design verification support service
・Engineer's Studio® analysis support
・Ground investigation analysis support services
・EXODUS/SMARTFIRE analysis support
・XPSWMM analysis support services
Building energy simulation
• 3D laser scanning and modeling
・3D modeling services
• 3D report and drawing services
>> Other support services
Various solutions
Seismic resistance assessment/analysis
・Design of steel bridges
・New bridge construction methods
Architectural design
・Local governments
・Medical VR systems
・Parking solutions
・ECO solutions
>> Other solutions