Slide 14
Slide 14 text
)PMPQMBZDTΛ։͘ͱ
w "TTFUT)PMPQMBZ4DSJQUT)PMPQMBZDT
w QVCMJDWPJE3FOEFS2VJMUͱ͍͏ϝιου͕
͋ΓɺࢹʢRVJMU4FUUJOHTOVN7JFXTʣ
ͷϧʔϓΛ͍ͯ͠ΔՕॴ͕͋Δ
w ࠨӈํʹࢹΛͣΒ͠ͳ͕ΒϨϯμϦ
ϯά
㱺͜͜ʹखΛՃ͑Δ
// render the views
for (int i = 0; i < quiltSettings.numViews; i++) {
if (i % ViewInterpolation != 0 &&
i != quiltSettings.numViews - 1)
continue;
// onViewRender
if (onViewRender != null)
onViewRender.Invoke(this, i);
.
.
.
// move the camera
var viewMatrix = centerViewMatrix;
var projMatrix = centerProjMatrix;
float currentViewLerp = 0f; // if numviews is 1, take center view
if (quiltSettings.numViews > 1)
currentViewLerp = (float)i / (quiltSettings.numViews - 1) - 0.5f;
viewMatrix.m03 += currentViewLerp * viewConeSweep;
projMatrix.m02 += currentViewLerp * viewConeSweep * projModifier;
cam.worldToCameraMatrix = viewMatrix;
cam.projectionMatrix = projMatrix;
// render and copy the quilt
cam.Render();
// copy to quilt
CopyViewToQuilt(i, viewRT, quiltRT);
CopyViewToQuilt(i, viewRTDepth, quiltRTDepth);
.
.
.