|
MB86296 Datasheet, PDF (106/352 Pages) Fujitsu Component Limited. – PCI Graphics Controller Specification | |||
|
◁ |
FUJITSU LIMITED PRELIMINARY AND CONFIDENTIAL
9.1.4 View port transformation (NDCâDC coordinate transformation)
The geometry engine transforms âXYZâ of the âNDCâ coordinate system to the âDCâ coordinate system
according to the transformation coefficient specified by G_ViewPort and G_DepthRange.
âX_Scaling,X_Offsetâ and âY_Scaling,Y_Offsetâ are coefficients to be mapped finally to Frame Buffer.
Xdc and Ydc must be included within the drawing input range (-4096 to 4095). âZ_Scalingâ and
âZ_Offsetâ are coefficients to be mapped finally to âZ Bufferâ. âZdcâ must be included within the âZ
Bufferâ range (0 to 65535).
DC: Device Coordinates
Xdc = X_Scaling*Xndc + X_Offset
Ydc = Y_Scaling*Yndc + Y_Offset
Zdc = Z_Scaling*Zndc + Z_Offset
9.1.5 View volume clipping
Expression for determination
The expression for determining the CORAL view volume clipping is shown below. W clipping is
intended to prevent the overflow caused by 1/W.
Xmin*Wcc ⤠Xcc ⤠Xmax*Wcc
Ymin*Wcc ⤠Ycc ⤠Ymax*Wcc
Zmin*Wcc ⤠Zcc ⤠Zmax*Wcc
Wmin ⤠Wcc
Note: Xmin, Xmax, Ymin, Ymax, Zmin, Zmax, and Wmin are the clip boundary values set by the
G_ViewVolumeXYClip/ZClip/WClip packet.
Clipping-on/-off
View volume clipping-on/-off can be switched by using the clip boundary values set by the
G_ViewVolumeXYClip/Zclip/WClip packet. To switch view volume clipping to off, set the maximum
and minimum values of the geometry data format (IEEE single-precision floating point(*1)) in the
âClip.maxâ value(*2) and âClip.minâ value(*3), respectively. In this case, âAll coordinate
transformation resultsâ can be evaluated as within view volume range, making it possible to obtain
the effect of view volume clipping-off.
This method is valid only when W clipping does not occur. When a clip boundary value (Wmin)
that causes W clipping to occur is set, clipping is also performed for each clip area. Consequently,
set an appropriate clip boundary value for Clip. Max value. and Clip. Min value., respectively.
If other values are set in âClip.maxâ and Clip.min, view volume clipping-on operates. The
coordinate transformation result is always compared with the values set in âClip.maxâ and
âClip.minâ.
*1: Maximum value = 0x7f7fffff, minimum value = 0xff7fffff
*2: Xmin,Ymin, Zmin, Wmin
*3: Xmax, Ymax, Zmax
MB86296S<Coral-PA>
96
Specification Manual Rev0.1
|
▷ |