screen | Single display | Relationship with rotation parameters | RBG0 | Possible | 1 screen specified by either rotation parameter A or B, Or two screens specified by rotation parameters A and B can be displayed simultaneously. |
RBG1 | Not possible (RBG0 is also displayed) Must) | Display the screen specified by rotation parameter B |
---|
Figure 6.1 How to display the rotating scroll screen
┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ │Xp│ │A B C│ │Px - Cx│ │Cx│ │Mx│ │Yp│ = │D E F│ x │Py - Cy│ + │Cy│ + │My│ │Zp│ │G H I│ │Pz - Cz│ │Cz│ │Mz│ └ ┘ └ ┘ └ ┘ └ ┘ └ ┘ ┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ ┌ ┐ │Xs│ │A B C│ │Sx - Cx│ │Cx│ │Mx│ │Ys│ = │D E F│ x │Sy - Cy│ + │Cy│ + │My│ │Zs│ │G H I│ │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: Parallel movement 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│ │a b 0│ │Hcnt - Csx│ │Csx│ │Msx│ │Sy│ = │c d 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: Amount of parallel movement of the screen
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 direction coordinate increment △Xst, △Yst: Screen screen vertical direction 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 direction coordinate increment △X, △Y: Screen screen horizontal direction coordinate increment A, B, C, D, E, F: Rotation matrix parameter Px, Py, Pz: Viewpoint coordinates Cx, Cy, Cz: Center coordinates Mx, My: Amount of parallel movement kx, ky: Enlargement/contraction coefficient Hcnt, Vcnt: HV counter value