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 Vol.2 (Total of 7 episodes) ImageToTerrain

 Hello, I'm Kobayashi from Arizona State University. Here, I will introduce a tool called "City Design," which is available from FORUM8. 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, but we currently do not offer specific support for them, so we cannot be held responsible for any issues such as bugs that may arise. Please understand this in advance.
 Also, for those in the architecture and civil engineering fields who have read this article and would like a simple tool suitable for your company's systems, please feel free to contact us with your requests.

 Terrain generation and the synthesis of satellite and aerial photographs represent the first steps in VR technology
 In the previous installment (the first one), we introduced a tool called PovrayToMax, which allows you to import data from UC-win/Road into other 3D software. This time, we will introduce ImageToTerrai, a tool that is essential for creating terrain and combining it with aerial photographs when initially building a VR city model. When attempting to create a VR city model of an existing area, this process presents a significant challenge. Those who are familiar with 3D maps from GIS (Geographic Information Systems) or Google Maps might wonder, "Why is that a problem?" However, this is a very tricky issue.
 First, we need to align a Digital Elevation Model (DEM), which is terrain data that includes the curvature of the Earth, with two-dimensional aerial photographs. This reminds me of geography lessons in high school. When trying to attach origami paper to a globe, you have to make quite a few adjustments. Those who are good at math might think of some equations. However, what's even more troublesome is that the Earth isn't just a simple sphere; it can't be approximated as a simple ellipsoid either. There's significant distortion, and variables need to be adjusted for each region, and they also change from year to year, making it very complex. Below is part of the conversion formula from the well-known Universal Transverse Mercator (UTM) projection to XY coordinates. It would take about 4 pages just to list all the formulas, so here I'll only show the first line. For those who want to know more details, I recommend the following book [1].
[1] Q. Yang, J. P. Snyder, W. R. Tober, Map projection transformation: principles and applications., Taylor and Francis, Hong Kong, 2000.

■ Formula 1: A partial conversion formula for transforming coordinates from UTM (Universal Transverse Mercator projection) to XY coordinates

 Even if the process is complex, once it's programmed, users should be able to obtain X and Y coordinates with relatively few problems.
So, what exactly is the problem?
 Here, I will briefly explain two types of data: terrain data and aerial photographs. In many cases, DEM (Digital Elevation Model) data uses a 30-meter grid as the standard. This is because the Earth's surface is managed with data in units of squares defined by latitude and longitude at intervals of one degree. The circumference of the Earth at the equator is approximately 40,000 km, so dividing that by 360 degrees gives us 111 km per degree. Dividing that further by 60 gives us the length corresponding to one minute, and dividing it by 3600 gives us the length corresponding to one second. The length corresponding to one second is approximately 30.86 meters (in reality, this value is shorter because the circumference of the Earth decreases as latitude increases). If DEM data with a resolution of one degree of latitude and longitude is treated as an image data with 3600x3600 pixels, then the value of each pixel would be stored approximately as elevation data on a 30-meter grid.
We are pleased to announce that since 2009, we have been able to utilize DEM data (ASTER GDEM) from the Ministry of Economy, Trade and Industry/NASA website worldwide free of charge.
 On the other hand, when dealing with aerial photographs, it is common to use a different projection method called State Plane instead of UTM. However, it is unlikely that 일반 people would use rectified (corrected so that the position of every pixel accurately corresponds to its latitude and longitude) high-resolution aerial or satellite images in VR models due to their cost. It is more common to use the latitude and longitude information of the 4 corners of the available aerial photograph. However, in this case, the positions of all pixels in the aerial photograph will not perfectly align with the positions in the Digital Elevation Model (DEM).
 In other words, 1) simple solutions cannot perfectly align the digital elevation model (DEM) with aerial photographs. Also, 2) even aligning the four corners of the available DEM data and aerial photographs requires expertise in GIS tools, especially those designed for aerial photography. Furthermore, 3) when dealing with data for VR city models, transferring data from GIS to a VR environment becomes necessary. If the GIS system or the format of resource files changes, further experimentation will be required. This is why combining terrain data and aerial photographs can be challenging.

 Since 2007, we have been conducting a project called World16 with researchers from various countries around the world (a total of 16 people).
Each member has presented their research and development results on new applications of VR at the annual Forum8 symposium.
The biggest challenge was creating topographic data, including aerial photographs. There were limitations on the data available from each country, some countries used different systems, and even with the same UTM coordinate system, the accuracy of the formulas varied. The first year was extremely difficult, mainly due to the creation of the topographic data.
Based on that experience, I realized the need for a more general solution, and I developed tools and pipelines that allow anyone to quickly create terrain data with aerial photographs. This time, I would like to introduce those tools.
■Figure 1 shows VR data created with UC-win/Road being loaded into 3ds Max, and rendering was performed after adding special effects such as motion blur

 Solutions
 Here, we will introduce how to obtain DEM data and aerial photographs, how to edit them, and how to create terrain data with aerial photographs covering an area of 20km x 20km using UC-win/Road, utilizing the tools we have developed. The solutions presented here are applicable anywhere in the world.

Step 1:
The DEM data, as mentioned earlier, can be obtained from the ASTER GDEM website (http://www.gdem.aster.ersdac.or.jp/search.jsp). This site provides elevation data for each 1-degree latitude and longitude range as image data (TIF) with a resolution of 3600x3600 pixels.

Step 2:
Next, prepare the latitude and longitude coordinates of the central location for the VR model. You can specify this in Google Earth, where the selected point's latitude and longitude will be displayed in the menu at the bottom left; use this information.

Step 3:
The problem here is that to acquire aerial photographs covering a 20km square area, you first need the latitude and longitude coordinates of points 10km north, 10km south, 10km west, and 10km east of the center point. You also need the corresponding DEM (Digital Elevation Model) data for those locations. We have developed a tool to perform these calculations, which is available as an Excel file. You can download the tools and tutorial videos from this website: http://world16.forum8az.com/2010/07/vr-tutorialsterrain-generation-for-uc_23.html.

Step 4:
Open the "terrain calculator (blank).xlsx" file from the downloaded files. 1) Enter the latitude and longitude coordinates of the upper right and lower left corners of the GDEM file (which may be multiple files) that you downloaded from the ASTER website. In the example shown below, the upper left corner is at 37 degrees North, 116 degrees West, and the lower right corner is at 36 degrees North, 115 degrees West. 2) As explained in the previous section, the length of one degree varies depending on the latitude and longitude. Use Google Earth to determine the length of one degree in both the latitude and longitude directions around the center point of the VR city model. In the example shown below, the length of one degree in the latitude direction is 110848.74 meters, and the length of one degree in the longitude direction is 89867.06 meters. 3) Enter the latitude and longitude coordinates of the center point (36 degrees, 10 minutes, 17.71 seconds North, 115 degrees, 9 minutes, 0.22 seconds West) as described in step 2.

■ Figure 2: Step 4

Step 5:
After inputting the data, the cropping position for the GDEM file will be displayed, so you can use image editing software like Photoshop to crop the image.
In this example, we will crop an area with a width of 801 pixels and a height of 650 pixels from the position (x, y) = (2660, 2658).
When using this tool, please be aware that in the image, latitude corresponds to the Y-axis direction, and longitude corresponds to the X-axis direction.

■ Figure 3: Step 5

Step 6:
Next, we need to obtain aerial photographs. By using the Pro version of Google Earth, you can access aerial photographs from all over the world. To acquire images suitable for creating VR city models, specifically 20km square areas, you need latitude and longitude coordinates. This information is calculated within the same tool. In this case, we obtained aerial photographs using the Google Earth Pro tools with the following coordinates: 36°11'22.681" N, 115°10'20.361" W (top left) and 36°9'12.739" N, 115°7'40.079" W (bottom right).

■ Figure 4: Step 6

Step 7:
DEM data cannot be directly imported into UC-win/Road, so it needs to be converted into an XML format. We have developed a tool called "Terrain Maker." Double-clicking the "TerrainMaker.jar" file within the downloaded file (from step 3) will bring up the following GUI. In this GUI, enter the clipped DEM file (in TIFF format) in field 1, the desired name for the XML file to be saved in field 2, and the length of the latitude and longitude interval used in step 4 in slots 3 and 4. Selecting the "START" button will create an XML data file covering a 20km square area (this process takes approximately 10 minutes)
■ Figure 5: Step 7

Step 8:
To create terrain data in UC-win/Road, launch the software, select "Load Terrain Patch" from the File menu, and specify the XML file generated in step 7. This will create the terrain data within UC-win/Road. You can then add the 20km square images obtained in step 6 to the created data using the "File" and "Road Street Maps" functions to complete the aerial photograph-enhanced terrain data. The diagram below shows the UC-win/Road data created using the solution described here.

 The end
 This time, the explanation of the steps has become lengthy, but by using this pipeline, tasks that previously took more than a day can now be completed in 15 to 30 minutes. Due to space limitations, we cannot introduce it here, but we have also developed a 3ds Max plugin that allows you to create aerial photograph-based terrain data from DEM and aerial photographs, which can be used with other 3D software. If you are interested, please contact us.



Support Topics / UC-win/Road Maintenance and support service related information
In manual driving
Road structure design

 Driving and encroaching on the opposite lane
 For example, when driving on narrow roads or mountain paths, and wanting to stop, park, or avoid an obstacle, it may be necessary to encroach into other lanes.
To perform such driving maneuvers using the manual drive mode in UC-win/Road, some adjustments are necessary when creating the road.

■Figure 1: Details of the roadway ■Figure 2: Driving on a narrow road with UC-win/Road ■ Figure 3: Driving that encroaches onto the adjacent lane

 Increase the width of the car lanes in road cross-sections
 Normally, when driving on roads created with UC-win/Road, it is not possible to deviate into the opposite lane and continue normal driving.
The driving route will be immediately adjusted and you will return to your original lane. To achieve this, we will expand the width of the lanes in the road section.
The width for vehicle travel should be set from the shoulder of the road to the edge of the opposing lane, overlapping with the opposing lane.
 Figure 4 shows a typical, simple road cross-section. As shown in Figure 5, the lane width is increased so that it overlaps with the opposing lanes. Dummy nodes are inserted between the lanes. Furthermore, each lane is set to have two lanes, resulting in a two-lane configuration on each side.
 This allows for normal driving in lane 1, while using lane 2 when drifting, resulting in smooth lane changes.
 Furthermore, to prevent flickering caused by overlapping textures, the textures of the road surface on the lower side and the dummy nodes are set to black and made transparent.

■ Figure 4: Typical road cross-section ■ Figure 5: Road cross-section with widened lane width

     
Previous page    Index    Next page
(Featured in the "New Greenery" issue of Up&Coming '11, No)
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