$PSDocId: Document Release 1.0 for Runtime Library Release 3.6$ TMDVIEW‚T tmdviewer using GsDOBJ5 1994.12.9 CopyRight (C) Sony Computer Entertainment tuto0: simple tmdviewer yhow to runz make tuto0 compile & load files ykey assignz left direction buttons transfer XY right direction buttons rotation right upper buttons transfer Z ymodeling dataz There are 16 modeling data. The type of modeling data is categolized by extension of the file name. g : gour shading model t : transparent model l : preshaded model The shape of modeling data is cube, three surface are non textured and remaining three surfaces are 2/8/15 bit texture mapped. You can see all modeling data by this program,loading each data. cube3.tmd flat polygon cube3g.tmd gour polygon cube3gl.tmd gour preshaded polygon cube3gt.tmd gour transparent polygon cube3gtl.tmd gour preshaded transparent polygon cube3l.tmd flat preshaded polygon cube3t.tmd flat transparent polygon cube3tl.tmd flat preshaded transparent polygon cube4.tmd flat quad polygon cube4g.tmd gour quad polygon cube4gl.tmd gour preshaded quad polygon cube4gt.tmd gour transparent quad polygon cube4gtl.tmd gour preshaded transparent quad polygon cube4l.tmd flat preshaded quad polygon cube4t.tmd flat transparent quad polygon cube4tl.tmd flat preshaded quad transparent polygon and sample modeling data shuttle1.tmd ytexture dataz pat4.tim 4bit clut texture data pat8.tim 8bit clut texture data pat16.tim 16bit direct texture data pat4t.tim 4bit clut transparent texture data pat8t.tim 8bit clut transparent texture data pat16t.tim 16bit direct transparent texture data ycommentsz GsDOBJ5 is the handler of preset TMD format data. It is done realtime to preset TMD format data , so you don't have to prepare another TMD format. Preset means making packets of all polygons in the TMD data, and write the value of packets which is changed. In this way, it makes faster by reducing memory accesses. For example , it dosen't change the RGB value in the packet in the case of not shading. It is important to grouping polygons by it's type for presetting. TMDSORT.EXE is the tool for grouping. GsSortObject5() is two times faster than GsSortObject4() at the peek. Auto-divide means divide all polygons of the object into the fix number according to the attribute. If you set the divide attribute , you must set the packet address area by GsSetWorkbase(). tuto1: sample code for split screen using GsDOBJ5 yhow to runz make tuto1 compile & load files ykey assignz same as tuto0 ymodeling dataz same as tuto0 ycommentsz This program split screen upper and lower part. The viewpoint of each screen is different. The modeling data is common with upper and lower screen, but object hadlers are different. GPU drawing command is quing by libgpu so tehre is no wainting sequence in this program. tuto2: sample code for multi ot and using same object with different hadlers. yhow to runz make tuto2 compile & load files ykey assignz right direction key rotate object0 right upper key zoom in / out object0 left direction key rotate object1 left upper key zoom in / out object1 ymodeling dataz same as tuto0 ycommentsz This program is sample code for same object with diffrent handlers, and sorting multi OTs. "point" of Wot2 which is set by GsClearOt(offset,point,Wot2) is the reference point of Wot1. So GsSortOt(&Wot2,&Wot1) sorts Wot2 to Wot1 by the "point" value of Wot2. Because "point" value is 0 in the sample code, object2 sorted to Wot2 is always front of the object sorted Wot1. If you set the point value 1<