| Support Topics | ||||
|
||||
I am Kobayashi from Arizona State University. Here, I will introduce the City Design tools that are publicly available on FORUM8. FORUM8's VR software, UC-win/Road, enables seamless city data generation and conversion between itself and other 3D/CG software; we developed this toolkit with that purpose in mind. While the code for the tools described here has been made public, please note that because specific support is not currently provided, we disclaim all responsibility for any issues or bugs that may arise. We ask for your understanding in advance. In addition, individuals involved in architecture and civil engineering who are reviewing this issue's coverage, and who may have a need for simple tools compatible with your company's systems, are encouraged to contact us. |
| Procedural city generation |
In the previous installments, we introduced several tools: PovrayToMax, ImageToTerrain, and AnimatedCharacter. This is the fourth installment, where we will introduce the ImageToCity tool, which automatically generates three-dimensional city data. Like the previously introduced tools, this one was developed as a plugin for Autodesk's 3dsMax. This tool, which forms the basis of CityDesign, was researched and developed by Arizona State University in fiscal year 2009. By preparing the following four files, buildings, roads, trees, and other elements within a 500-meter square area are generated as 3D data with textures applied, and can be imported into FORUM8's UC-win/Road for urban visualization.
First, I will provide a brief introduction to the background of procedural city generation. Research on the automatic generation of cities is not a new concept. The first thing that needs to be introduced is Shape Grammar. This is a method for recording the relationships between spatial elements, developed by Professor George Stiny (currently at MIT) in the 1970s. Professor Stiny, who served as a professor in the architecture department at UCLA (University of California, Los Angeles) during the 1980s and 1990s, has published numerous papers and research findings related to Shape Grammar. Those interested can read the books listed below. The first volume was written by the late Professor William Michael and summarizes the theories and methods of using Shape Grammar in the field of architecture. The second book is an English-language textbook explaining Shape Grammars through mathematical explanations.
However, shape grammars are primarily used as analytical tools in the field of architecture, and their general application is not very common. The situation changed in 2001 with the publication of a paper titled "Procedural Modeling of Cities" at Siggraph, the largest academic conference in the field of Computer Graphics. According to a paper published by Yoav Parish and Pascal Muller of ETH (Swiss Federal Institute of Technology)*, shape grammars can be used to automatically generate high-quality three-dimensional urban data suitable for use in Hollywood productions through scripting (CGA). Technologically, it can generate complex data with minimal input, which amazes and impresses people in terms of its applications. Subsequently, Mr. Pascal Muller developed numerous automated generation tools and now runs a company called Procedural Inc., which sells software named CityEngine. The tool was used for city generation in the recently released Hollywood movie "Cars2." Peter Wonka, a co-researcher who studied using CGA to automatically generate buildings (currently a professor at Arizona State University), is now my co-researcher. (*)Yoav I. H. Parish, Pascal Muller , "Procedural modeling of cities", Proceedings of SIGGRAPH '01 By searching for "Procedural Modeling" within the SIGGRAPH conference paper collections, you can find a range of research results. So, can anyone easily create city data like in Hollywood movies using these tools? The answer is no. "Automatically generating cities using generative tools" and "automatically extracting building information using generative tools" are completely different concepts. The tools developed by Mr. Pascal were indeed designed for the former purpose, while the latter remains a research topic. In addition, regarding the creation of city and building data, similar to geometric data, it plays a very important role in the creation of material data. Material settings require extensive experience in computer graphics art; they demand more time and effort compared to creating geometric data. Mr. Pascal himself, possessing these technical skills, can use developed tools to better present the created data. Generating rule descriptions is not a typical task. Arizona State University also hired several doctoral students to create data as part of their coursework, and one colleague, Peter, commented that it was "completely useless." Against this backdrop, this tool (ImageToCity) was developed with a purpose different from existing tools. Initially, this tool was developed for use as a learning material for scripting. While it's possible to automatically generate city data, when customization is required, modifications must be made to the source code. This tool itself serves as a textbook and aims to facilitate learning about "extracting generative rules from buildings." In addition, to simplify material setup and other processes, it was developed as a plugin for 3ds Max. If 3ds Max can be used, its knowledge can be applied during material settings. The ultimate goal is to divide the automated building generation process into smaller tasks. Geometric data creators, material creators, and building code developers: if the entire workflow can be divided into 3 separate teams, the efficiency of data creation can be quantified. Due to the nature of the drawings, this explanation only covers automated generation methods. Please contact us for more detailed information and educational materials. We have prepared textbooks consisting of over 200 pages, divided into 10 lectures.
|
| Automatically generated pipelines by ImageToCity |
| Solutions |
Next, I will explain how to use each tool step by step.
The processing time for each building's zoning data is approximately 5 minutes. For viewing 10 buildings, it is estimated to take approximately 50 minutes. Efforts are currently underway to improve this. In addition, when using the generated data in UC-win/Road, it is necessary to regenerate the road network and land use. |
| Concluding remarks |
| In this presentation, we will introduce ImageToCity, a tool for automatically generating three-dimensional city data, focusing on its capabilities using AI (Line data) files and image files (BMP). The generated data can be directly imported into UC-win/Road by specifying the folder. Next, we will introduce ImageToFacade, a tool that generates building models from a collection of image files. |
|
||||
With the release of UC-win/Road V5.2, modifications were made to the driving simulation plugin. In the UC-win/Road driving simulator, using the active force steering option allows the active force steering axis to be controlled externally. Here, "control" refers to the open-loop input torque of the steering wheel control unit. As the primary interface currently used to provide services from UC-win/Road to external programs, it controls the steering wheel angle (position), and also includes interfaces for inputting and outputting necessary information for vehicle automatic control research. Research on vehicle automatic control, accident prevention systems, and driver interaction can be applied to experiments under various road conditions and traffic situations.
This feature primarily consists of 3 elements.
|
| Regarding steering wheel control |
| The system uses an electric motor to apply torque to the steering wheel while simultaneously controlling the amount of movement. In the UC-win/Road system, torque commands are directly sent to the hardware at a frequency of 50Hz, and the current angle of the steering wheel is obtained. Through repeated processing at a frequency of 50 Hz, the next torque value to be applied is calculated based on the obtained steering wheel angle and its rate of change. Because the rotational axis of the steering wheel and the center of gravity of the steering wheel are separated, a torque occurs due to gravity when the steering wheel is tilted. Consider controlling this torque. Additionally, by considering the frictional force of the steering wheel, more accurate control can be achieved.
|
| SDK API |
| The "IF8DSPlugin" is used within the SDK's API and can be controlled using the functions listed below. SetDirectTorqueControl Function for enabling or disabling steering wheel control. If it is invalid, control is impossible, and it operates under normal conditions. When applicable, use the SetHardwareSteeringWheelAngle function to control the steering wheel angle. SetHardwareSteeringWheelAngle A function used for controlling steering wheel angle. Here, this specifies the maximum torque used for rotation around the target angle. When controlling the steering wheel, the maximum torque that can be set is 8 Nm; however, a very powerful action often uses a torque of 1.5 to 2 Nm. The angle unit ranges from -360 to +360 degrees. Several functions are available, similar to those controlled by a steering wheel. In addition, it's possible to replace not only the steering wheel controls but also the input values used in driving simulators. GetBrakeHardwareValue GetThrottleHardwareValue GetWheelAngleHardwareValue These 3 functions measure the operation amounts of the brake pedal, accelerator pedal, and steering wheel of the current hardware. These functions can be called at any time, and their values are actually updated when they are at a frequency of 50Hz. OverrideAppliedBrake OverrideAppliedSteering OverrideAppliedThrottle Within UC-win/Road, functions that cover the amount of operation used to calculate vehicle behavior in a VR space are implemented. After each call to these functions, subsequent hardware operations are ignored, and the "StopApplied***Override" function is called to terminate the coverage process. StopAppliedBrakeOverride StopAppliedSteeringOverride StopAppliedThrottleOverride This function stops the processing of input values that started at Override-Applied. GetAppliedBrakeValue GetAppliedSteeringValue GetAppliedThrottleValue The function is used to obtain the actual amount of operations performed within UC-win/Road and process those values internally. When an input value is masked, the masked value is obtained. When masking is released, the value obtained from the hardware is used. |
| Sample plugin |
| The SDK includes a sample plugin that provides control of the driving simulator steering wheel. This sample is intended for use when sitting in the passenger seat. UC-win/Road performs autonomous driving by calculating steering wheel rotation angles and applying a torque of 1.5 Nm to the steering wheel. When switching to autonomous driving mode in UC-win/Road, perform the following operations.
To enable steering wheel control, select "Start Steering Wheel Control Demo..." from the "Tools" menu. When stopping the control, select "Stop Steering Wheel Control Demo" from the "Tools" menu.
|
| Steering wheel control parameters |
| In the options screen of the DS plugin, you can set physical parameters for the steering wheel to improve the accuracy of torque control. The parameters are accessible in the "UC-win/Road → Drive Simulator" tab of the driving simulator options screen within UC-win/Road. The following parameters can be changed. The default values are based on the UC-win/Road driving simulator at FORUM8's Tokyo headquarters. Delay The time delay, in seconds, from when a new torque command is sent to when it is reflected in the steering wheel response. The expected range is 0.1 to 0.3 seconds. Inertia movement The moment of inertia of the wheel is used in calculating the angular acceleration based on the applied torque. In cases where the value exceeds the allowable range, the wheel will deviate significantly from the intended rotation and angle. To correct this before it converges to the proper angle, forced values are applied both before and after the deviation. Shift moment When the wheel is not in its balanced (0.0 degree) position, the gravitational force acting on the wheel can be considered as a cause of the torque. The center of gravity of the wheel is not located on the rotational axis of the wheel, and when the center of gravity is not perpendicular to the rotational axis, a torque will be generated. To confirm this value, the "Angle control test" option on the settings screen allows you to check how the angle of the wheels during movement affects acceleration by applying a small torque at different angles. Regardless of the wheel angle, "Shiftmovement" will become the correct value when a certain amount of acceleration is achieved. Resistive movement To maintain a specific angular velocity of the wheels, a necessary minimum torque value is set. This value is used for measuring friction on the wheels.
|
| Network UDP port control |
| This communication function allows for monitoring and controlling driving simulation operations through other applications. The application requires a system with UDP server and client functionality to be installed on the PC running UC-win/Road, or on other PCs within the same network, as it needs to send and receive information with UC-win/Road. The final train schedule is shown in the figure below.
In driving simulation plugins, the following functions can be remotely accessed via UDP protocol, just like through the SDK's API, allowing access to hardware.
The parameters for remote access can be specified in the [UC-win/Road → Drive Simulator] tab of the options screen.
Regarding the agreement All commands are sent as ANSI strings. The UDP server for UC-win/Road receives the following command information.
In addition, the UDP client of UC-win/Road transmits the following data to the specified IP address and port.
|
Up&Coming '11, autumn issue, published |
![]() |