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

Nintendo® Confidential

   

guPerspectiveF

Format
#include "gu.h"
void guPerspectiveF(float m[4][4],
   u16 *perspNorm,
   float fovy, float aspect,
   float near, float far, float scale)
Arguments
  • m is the resulting 4x4 projection matrix
  • perspNorm is the pointer to the value to use with the gSPPerspNormalize function
  • fovy is field of view angle, in degrees, in the y direction
  • aspect is the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height) of the viewport region
  • near, far specify the distance from the viewer to the near and far clipping plane (always positive)
  • scale gives the scale of each element of the matrix. You can use it to improve precision in the RSP fixed-point arithmetic
What This Function Does
It computes and returns a 4x4 floating-point perspective projection matrix (m) and a number to use with the gSPPerspNormalize function.

See Also
guPerspective
guFrustum
guOrtho
gSPMatrix
gSPPerspNormalize
gluPerspective(3G)



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