You are here: Foswiki>Oasis Web>Diary>2023>2023-01-24 (31 Jan 2023, lhc)Edit Attach
2023-01-22 | 2023-01-24 | 2023-01-25

2023-01-24

Regression Testing and Painting the Forth Rail Bridge(1)

Every time we make a change to terrain generation we test these changes on previous areas to make sure we haven't broken anything. This is regression testing. Usually we are looking for improvements to the terrain. Over time we have acquired a set of diverse sites and we are always on the look-out for new ones that test specific aspects of the process. It's a rolling program (a bit like painting the Forth rail bridge) so once we improve one area we move onto the next.

AreaSorted descending Outstanding Test Feature
Tuvalu There is a lot of coast
Penrhyn Quarry Considerably hilly region. Lake at the bottom of a quarry.
Manchester We have a lot of detailed buildings for this area
London Dense mapping
Liverpool Urban, coastal.
Fort Lauderdale Residential area with lots of snaking lakes. Two nearby sports parks.
Everest Extreme elevation and empty spaces with no features
Colorado City Mix of dense-urban and wilderness
Barlow It's where our office is so we really know how it should look
Algoda (Spain) Very rural area with high tree density - extreme edge case for per-mesh performance.

Everest

Everest is the next on the list.

Preparation

It's good to see what we have around S000703:

20230124-DWH-001.jpg
Everest - S000703

These are quite sparse AS30s so I boosted the S02 and S03 values:

    "S02": 20.0,
    "S03": 40.0,

'Site Clean' via Oasis Web:

20230124-DWH-002.jpg
Clean Site S000703

I want to load the site in the UE4 Editor so I copy it locally:

20230124-DWH-003.jpg
UE4_Z Copy S000703

20230124-DWH-005.jpg
S000703 in the UE4 Editor
20230124-DWH-004.jpg
Full screen

Since the last Everest update we have implemented 'flat lakes'. This is a high view of some lakes around Everest base camp. Oasis 3D on the left and Oasis Web on the right. It is apparent that there are some lakes missing from Oasis 3D!

20230124-DWH-006.jpg
Oasis 3D Base Camp Lakes
20230124-DWH-007.jpg
Oasis Web Base Camp Lakes

I did a 'level by cube' exercise. It's not very precise but it is a good start. Interestingly all the visible lakes are on one AS30 so it is possible that the others just need to be re-created for them to appear. I recorded the way ID for all all the lakes and set arbitrary height values for the missing ones. We should see something.

20230124-DWH-008.jpg20230124-DWH-009.jpg
20230124-DWH-010.jpg20230124-DWH-011.jpg

The way IDs are:

28_00_15_N_086_50_15_E 28_00_15_N_086_50_45_E 28_00_15_N_086_51_15_E
262723402 5403.69m 262723400 5363.20m 262723400 5400.00m
  262723399 5381.40m 966708679 5400.00m
  262723397 5388.50m 966708680 5400.00m
27_59_45_N_086_50_15_E 27_59_45_N_086_50_45_E 27_59_45_N_086_51_15_E
262723401 5400.00m    
262723398 5400.00m    

The commands to add the levels are:

M3U_AS30AddFields --as30refs 28_00_15_N_086_50_15_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723402,"Height": 5408.81,"areashrink": -0.15}]}'
M3U_AS30AddFields --as30refs 28_00_15_N_086_50_45_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723400,"Height": 5363.20,"areashrink": -0.15},{"type": "way","id": 262723399,"Height": 5385.65,"areashrink": -0.15},{"type": "way","id": 262723397,"Height": 5388.50,"areashrink": -0.15}]}' 
M3U_AS30AddFields --as30refs 28_00_15_N_086_51_15_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723400,"Height": 5400.00,"areashrink": -0.15},{"type": "way","id": 966708679,"Height": 5312.66,"areashrink": -0.15},{"type": "way","id": 966708680,"Height": 5400.00,"areashrink": -0.15}]}' 
M3U_AS30AddFields --as30refs 27_59_45_N_086_50_15_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723401,"Height": 5400.00,"areashrink": -0.15},{"type": "way","id": 262723398,"Height": 5400.00,"areashrink": -0.15}]}' 

20230124-DWH-012.jpg
Re-creating the AS30s
20230124-DWH-013.jpg
Done

I don't know why the old AS30s didn't have the lakes - but the new ones do. Notice the 'column' effect where the height has been set to 5400m:

20230124-DWH-014.jpg
All lakes present

It's quite painful, but I have to delete the height keys completely and then add them back in. We'll work out a better way to do this later:

M3U_AS30DeleteKeys --doit --keys OSMHeights --as30refs 28_00_15_N_086_50_15_E 28_00_15_N_086_50_45_E 28_00_15_N_086_51_15_E 27_59_45_N_086_50_15_E

M3U_AS30AddFields --as30refs 28_00_15_N_086_50_15_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723402,"Height": 5409.24,"areashrink": -0.15}]}'
M3U_AS30AddFields --as30refs 28_00_15_N_086_50_45_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723400,"Height": 5366.61,"areashrink": -0.15},{"type": "way","id": 262723399,"Height": 5381.55,"areashrink": -0.15},{"type": "way","id": 262723397,"Height": 5389.00,"areashrink": -0.15}]}' 
M3U_AS30AddFields --as30refs 28_00_15_N_086_51_15_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723400,"Height": 5366.61,"areashrink": -0.15},{"type": "way","id": 966708679,"Height": 5316.55,"areashrink": -0.15},{"type": "way","id": 966708680,"Height": 5320.85,"areashrink": -0.15}]}' 
M3U_AS30AddFields --as30refs 27_59_45_N_086_50_15_E --doit --jsonstrings '{"OSMHeights": [{"type": "way","id": 262723401,"Height": 5309.35,"areashrink": -0.15},{"type": "way","id": 262723398,"Height": 5308.10,"areashrink": -0.15}]}' 

Looking good!

20230124-DWH-016.jpg
262723400

Compare the old (left) and new (right) Base Camp Lakes:

20230124-DWH-006.jpg
Old
20230124-DWH-017.jpg
New


(1) According to the BBC on Friday 9th December 2011 the painting of the Forth Bridge, a job that is famously never finished, came to an end. Despite this, I shall continue to use the painting of the bridge as a convenient metaphor for a never ending task.

I Attachment Action Size Date Who Comment
20230124-DWH-001.jpgjpg 20230124-DWH-001.jpg manage 656 K 24 Jan 2023 - 11:23 Main.dwh  
20230124-DWH-002.jpgjpg 20230124-DWH-002.jpg manage 413 K 24 Jan 2023 - 11:54 Main.dwh  
20230124-DWH-003.jpgjpg 20230124-DWH-003.jpg manage 77 K 24 Jan 2023 - 11:54 Main.dwh  
20230124-DWH-004.jpgjpg 20230124-DWH-004.jpg manage 286 K 24 Jan 2023 - 12:12 Main.dwh  
20230124-DWH-005.jpgjpg 20230124-DWH-005.jpg manage 345 K 24 Jan 2023 - 12:12 Main.dwh  
20230124-DWH-006.jpgjpg 20230124-DWH-006.jpg manage 140 K 24 Jan 2023 - 13:06 Main.dwh  
20230124-DWH-007.jpgjpg 20230124-DWH-007.jpg manage 307 K 24 Jan 2023 - 13:07 Main.dwh  
20230124-DWH-008.jpgjpg 20230124-DWH-008.jpg manage 365 K 24 Jan 2023 - 13:30 Main.dwh  
20230124-DWH-009.jpgjpg 20230124-DWH-009.jpg manage 387 K 24 Jan 2023 - 13:30 Main.dwh  
20230124-DWH-010.jpgjpg 20230124-DWH-010.jpg manage 381 K 24 Jan 2023 - 13:30 Main.dwh  
20230124-DWH-011.jpgjpg 20230124-DWH-011.jpg manage 387 K 24 Jan 2023 - 13:30 Main.dwh  
20230124-DWH-012.jpgjpg 20230124-DWH-012.jpg manage 465 K 24 Jan 2023 - 13:51 Main.dwh  
20230124-DWH-013.jpgjpg 20230124-DWH-013.jpg manage 462 K 24 Jan 2023 - 14:10 Main.dwh  
20230124-DWH-014.jpgjpg 20230124-DWH-014.jpg manage 201 K 24 Jan 2023 - 14:13 Main.dwh  
20230124-DWH-016.jpgjpg 20230124-DWH-016.jpg manage 200 K 24 Jan 2023 - 15:58 Main.dwh  
20230124-DWH-017.jpgjpg 20230124-DWH-017.jpg manage 535 K 24 Jan 2023 - 16:04 Main.dwh  
Topic revision: r8 - 31 Jan 2023, lhc
Warning: Can't find topic Oasis.WebLeftBarExample

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback