★ HARDWARE Manual ★ VDP2 User's Manual| screen | Single display | Relationship with rotation parameters | RBG0 | Yes | One screen specified by either rotation parameter A or B, Or two screens specified by rotation parameters A and B can be displayed at the same time. | RBG1 | Not possible (RBG0 must also be displayed) | Display the screen specified by rotation parameter B |
|---|
Figure 6.1 How to display the rotary scroll screen
┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ │ Xp │ │ ABC │ │ Px --Cx │ │ Cx │ │ Mx │ │ Yp │ = │ DEF │ x │ Py --Cy │ + │ Cy │ + │ My │ │ Zp │ │ GHI │ │ Pz --Cz │ │ Cz │ │ Mz │ └ ┘ └ ┘ └ ┘ └ ┘ └ ┘ ┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ │ Xs │ │ ABC │ │ Sx --Cx │ │ Cx │ │ Mx │ │ Ys │ = │ DEF │ x │ Sy --Cy │ + │ Cy │ + │ My │ │ Zs │ │ GHI │ │ Sz --Cz │ │ Cz │ │ Mz │ └ ┘ └ ┘ └ ┘ └ ┘ └ ┘ A, B, C, D, E, F, G, H, I: Rotation matrix parameters Px, Py, Pz: Viewpoint coordinates before rotation transformation Sx, Sy, Sz: Screen screen coordinates before rotation transformation Cx, Cy, Cz: Rotation center coordinates Mx, My, Mz: Translation amount Xp, Yp, Zp: Viewpoint coordinates after rotation transformation Xs, Ys, Zs: Screen screen coordinates after rotation transformation
X − Xp Y − Yp Z − Zp ―――― = ―――― = ―――― Xs− Xp Ys− Yp Zs− Zp
X = k (Xs−Xp) + Xp Y = k (Ys−Yp) + Yp
−Zp
k = ――――
Zs− Zp
┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ │ Sx │ │ ab 0 │ │ Hcnt --Csx │ │ Csx │ │ Msx │ │ Sy │ = │ cd 0 │ x │ Vcnt --Csy │ + │ Csy │ + │ Msy │ │ Sz │ │ 0 0 1 │ │ 0 │ │ 0 │ │ Msz │ └ ┘ └ ┘ └ ┘ └ ┘ └ ┘ a, b, c, d: Screen rotation matrix parameters Hcnt, Vcnt: HV counter value Csx, Csy: Screen rotation center coordinates Msx, Msy, Msz: Screen screen translation amount
Sx = Xst + DX ・ Hcnt + DXst ・ Vcnt Sy = Yst + DY ・ Hcnt + DYst ・ Vcnt Sz = Zst
Xst = −a ・ Csx−b ・ Csy + Csx + Msx Yst = −c ・ Csx−d ・ Csy + Csy + Msy Zst = Msz △ X = a △ Y = c △ Xst = b △ Yst = d Xst, Yst, Zst: Screen screen start coordinates △ X, △ Y: Screen screen horizontal coordinate increment △ Xst, △ Yst: Screen screen vertical coordinate increment
X = kx (Xsp + dX ・ Hcnt) + Xp Y = ky (Ysp + dY ・ Hcnt) + Yp
Xsp = A {(Xst + △ Xst ・ Vcnt) −Px} + B {(Yst + △ Yst ・ Vcnt) −Py} + C (Zst-Pz)
Ysp = D {(Xst + △ Xst ・ Vcnt) −Px} + E {(Yst + △ Yst ・ Vcnt) −Py} + F (Zst-Pz)
Xp = A (Px−Cx) + B (Py−Cy) + C (Pz−Cz) + Cx + Mx
Yp = D (Px−Cx) + E (Py−Cy) + F (Pz−Cz) + Cy + My
dX = A ・ DX + B ・ DY
dY = D ・ DX + E ・ DY
Xst, Yst, Zst: Screen screen start coordinates △ Xst, △ Yst: Screen screen vertical coordinate increment △ X, △ Y: Screen screen horizontal coordinate increment A, B, C, D, E, F: Rotation matrix parameter Px , Py, Pz: Viewpoint coordinates Cx, Cy, Cz: Center coordinates Mx, My: Translation amount kx, ky: Scale factor Hcnt, Vcnt: HV counter value
★ HARDWARE Manual ★ VDP2 User's Manual