
N64® Functions Menu
|
al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive
|
 |
gSPPerspNormalize
Format
#include "gbi.h"
gSPPerspNormalize(Gfx *gdl, u16 scale)
gsSPPerspNormalize(u16 scale)
Arguments
- gdl is the pointer to the graphics display list
- scale is the perspective normalization scale in .16 format
What This Macro Does
It normalizes the perspective. The scale value is used to scale the transformed w coordinate down prior to dividing out w to compute the screen coordinates, which are similarly scaled. The effect of this is to maximize the precision of
this divide, which is computed with a limited precision in the RSP
geometry engine.
Note
The library macro guPerspective returns one approximation for this scale value, which is suitable for most cases. This estimate normalizes w so that w = 1.0 halfway between the near and far clipping planes.
|
Nintendo® Confidential
Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.
Copyright © 1998
Nintendo of America Inc. All rights reserved Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998
|
|