Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Gerrit Goossen Newsgroups: scee.yaroze.programming.3d_graphics Subject: GsLinkObject4 Confusion Date: Mon, 24 Aug 1998 16:12:00 -0400 Organization: SCEA News Server Lines: 23 Message-ID: <35E1C90B.AE@funnytown.com> NNTP-Posting-Host: 38.165.241.13 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01-C-MACOS8 (Macintosh; I; PPC) I hope this isn't a question that's been answered a thousand times, but I've read the documentation up and down and it doesn't give me a clue as to what's going on... While attempting to write some code to read primitives from an already linked TMD model (for the purpose of using its polys for collision detection) I discovered that GsLinkObject4 is tinkering with the first primitive in the object: Specifically it writes over the first primitive's ilen and olen with "0x0400". Without the ilen it's a bit trickier to write a good routine to read the polys out of the primitives :P I assume that this is some kind of marker/counter that an object has been linked to a GsDOBJ2, but it's annoying! I can easily work around this problem (in this particular model every primitive has the same length), but I'd still like to know what's going on! (And maybe suggestions as to what I could be doing better :) Thanks for the help! (Or as more frequently is the case, pointing out why I shouldn't be asking this question in the first place. ;) - Gerrit