Improve close-up ship cameras and marine rendering
This commit is contained in:
@@ -37,6 +37,23 @@ namespace Soundings
|
||||
|| !CheckSmoke(Ship?.Name == "MV Meridian" && guideContext == GuideStep.SetCourse, "Guided used start"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "02-harbor");
|
||||
float harborOverview = harbor.OrbitVerticalSpan;
|
||||
Vector3 harborCenter = harbor.OrbitTarget;
|
||||
harbor.Zoom(-90, new Vector2(.56f, .54f));
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(harbor.OrbitVerticalSpan < harborOverview * .22f && harbor.OrbitCameraIsClear
|
||||
&& Vector3.Distance(harborCenter, harbor.OrbitTarget) > 2f, "Harbor wheel reaches close inspection and follows the pointer"))
|
||||
yield break;
|
||||
harbor.Zoom(90);
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(harbor.OrbitVerticalSpan > harborOverview * .97f
|
||||
&& Vector3.Distance(harborCenter, harbor.OrbitTarget) < .4f, "Zooming back out restores the harbor framing"))
|
||||
yield break;
|
||||
harbor.ResetView(true);
|
||||
harbor.Zoom(-13, new Vector2(.49f, .56f));
|
||||
yield return new WaitForSecondsRealtime(.55f);
|
||||
yield return CaptureSmoke(directory, "02a-harbor-close-up");
|
||||
harbor.ResetView(true);
|
||||
if (!SubmitSmoke("plan-voyage") || !CheckSmoke(page == 3 && destination == 1 && guideContext == GuideStep.Fare, "Set course and fare guide"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "03-passage-chart");
|
||||
@@ -105,6 +122,17 @@ namespace Soundings
|
||||
PresentVessel(.1f);
|
||||
}
|
||||
yield return CaptureSmoke(directory, "04-underway");
|
||||
float passageOverview = harbor.OrbitVerticalSpan;
|
||||
harbor.Zoom(-90, new Vector2(.57f, .54f));
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(harbor.PassageUsesPerspective && harbor.OrbitCameraIsClear
|
||||
&& harbor.OrbitVerticalSpan < passageOverview * .22f, "Underway exterior zoom keeps a clear perspective view at deck level"))
|
||||
yield break;
|
||||
harbor.ResetView(true);
|
||||
harbor.Zoom(-13, new Vector2(.46f, .57f));
|
||||
yield return new WaitForSecondsRealtime(.55f);
|
||||
yield return CaptureSmoke(directory, "04b-underway-close-up");
|
||||
harbor.ResetView(true);
|
||||
harbor.RotateView(112f);
|
||||
yield return new WaitForSecondsRealtime(.38f);
|
||||
yield return CaptureSmoke(directory, "04a-underway-wake");
|
||||
@@ -114,6 +142,16 @@ namespace Soundings
|
||||
if (!SubmitSmoke("passage-deck-1") || !CheckSmoke(passageDeck == 1, "Inspect the second guest deck"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "06-guest-deck");
|
||||
float deckOverview = harbor.OrbitVerticalSpan;
|
||||
harbor.Zoom(-90, new Vector2(.57f, .46f));
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(harbor.OrbitCameraIsClear && harbor.OrbitVerticalSpan < deckOverview * .22f,
|
||||
"Cutaway zoom gives a clear view into individual rooms"))
|
||||
yield break;
|
||||
harbor.ResetView(true);
|
||||
harbor.Zoom(-19, new Vector2(.43f, .49f));
|
||||
yield return new WaitForSecondsRealtime(.55f);
|
||||
yield return CaptureSmoke(directory, "06-guest-deck-close-up");
|
||||
if (!SubmitSmoke("passage-bridge") || !CheckSmoke(passageBridge && harbor.FirstPersonPositionIsClear, "Enter the first-person bridge"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "06a-bridge");
|
||||
@@ -326,6 +364,11 @@ namespace Soundings
|
||||
|| !SubmitSmoke("passage-deck-7") || !CheckSmoke(passageDeck == 7, "Select the eighth deck during the voyage"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "17-ocean-class-cutaway");
|
||||
harbor.Zoom(-90, new Vector2(.48f, .53f));
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(harbor.OrbitCameraIsClear && harbor.OrbitVerticalSpan < 12f,
|
||||
"The eighth deck can also zoom to room scale without clipping"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("passage-explore") || !CheckSmoke(harbor.FirstPersonPositionIsClear, "Walk safely on the eighth deck"))
|
||||
yield break;
|
||||
Debug.Log($"Soundings player smoke passed at {Screen.width} × {Screen.height}.");
|
||||
|
||||
Reference in New Issue
Block a user