📄 zrendv10announce
字号:
This document describes the Z bufffer based rendering programdeveloped at the West Virginia University. The key features of thisprogram are:(a) Reads a variant of the standard Neutral File Format (NFF) as input(b) Outputs a 24 bit color TARGA file(c) Uses accurate fixpoint arithmetic in all its calculations(d) Works on X windows environment. We have tested it on Sun Sparc machines.(e) High Performance. The renderer has almost realtime performance.This software is available through the Web and via anonymous ftp. Thesoftware includes sample files, including the teapot. We wouldappreciate any feedback you can give us on this software. We arequite impressed by the quality of the images produced. Enjoy the useof this utility!Raghu KarinthiDepartment of Statistics and Computer ScienceConcurrent Engineering Research CenterWest Virginia UniversityMorgantown, WV 26506-6506Voice: (304) 293-7226Fax: (304) 293-7541Email: raghu@cs.wvu.edu OR raghu@cerc.wvu.edu------------------------------------------------------------------------------This describes briefly our implementation of the Z buffer renderingalgorithm. The rendering pipeline has the following steps:1. Reading the input file.2. Backface Culling3. Trivial Accept/Reject of Triangles4. Computing the light intensity at the vertices. Later, Gouraud shading is used for interpolating the light intensity. Several diffuse light sources and one specular light source are supported but only Gouraud shading is supported.5. Applying the view transformation to all the vertices6. Clipping7. Division by W, Map to 3DViewport8. Rasterization, and writing to framebuffer.9. Writing framebuffer to a TARGA file.Subsequently, one can display the TARGA file, by invoking a separateutility (included with this package).We compute 24 bit color (R,G,B) at each pixel and write it to a TARGAfile. The functions to do write in TARGA file format are from the"LUG" library due to Raul Rivero. The program "sx11" to display aTARGA file is also from the same library. We have extracted these twoutilities from the LUG library and provided them in the subdirectories"tga" and "sx11".Input File Format: The input is a modified NFF file format describedin the file called NFF.URLhttp://www.cerc.wvu.edu/public_domain_sw.htmlFTP INSTRUCTIONS ftp ftp.cerc.wvu.eduEnter name: anonymousEnter Password: type in your email addresscd pub/sourcesbinaryget ZRendv10.tar.ZquitThen, uncompress and untar the files. Example (not guaranteed!):uncompress < ZRendv10.tar.Z | tar xf -Installation: type INSTALL in the main directory.Usage: ZRendv10 <backface cull> <trivial accept/reject> <clip> <phong><NFFfilename> <TARGAfilename>.<backface cull> must be -bf to enable backface culling, anything else todisable it.<trivial accept/reject> must be -tr to enable trivial accept/reject oftriangles, anything else to disable it.<clip> must be -clip to enable triangle clipping, anything else to disable it.<phong> must be -phong to enable the use of the Phong model (the data file musthave a Phong source) and anything else to use the diffuse model.<NFFFilename> is input NFF file name.<TARGAfilename> is output TARGA file name.Example:ZRendv10 -bf -tr -clip -phong tpot1l.nff tpot1l.tgaThe display program is "sx11" in the "sx11" subdirectory. It is invoked bytyping: sx11 <TARGAfilename>. The <TARGAfilename> must have a ".tga"suffix.Example:sx11 tpot1l.tga
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -