Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Darco Newsgroups: scee.yaroze.programming.3d_graphics,scea.yaroze.programming.3d_graphics Subject: Re: Dynamic TMD Prob Date: Mon, 12 Oct 1998 07:43:12 -0400 Organization: SCEA News Server Lines: 30 Message-ID: <3621EB50.5B1E98CF@datasys.net> References: <361AB7CB.4141075E@datasys.net> <361B38B9.74C88355@scee.sony.co.uk> Reply-To: darco@bigfoot.com NNTP-Posting-Host: 71.dialup.datasys.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; U) Xref: chuka.playstation.co.uk scee.yaroze.programming.3d_graphics:943 scea.yaroze.programming.3d_graphics:294 YAY! I got it working. I didn't have to change really that much... The system I'm using though is REALLY simple and easy to use, yet don't sacrifice power and flexiblity. I'm proud of myself. ;) I'm still using malloc and free, but not nearly as often as before - You allocate the object once with a fixed vertex, normal, and primitive space and you free it once you are done using it. Just for everyone else who is planning on writing something like this: sizeof(x) returns the size of the primitive in bytes, not dwords! (If anyone writes a replacement for metrowerks debugger that uses the AR and allows me to directly browse through the playstation's memory, I'll give you a cookie. A really big one. I had to use the caetla debugger to figger out what was going on because I needed to interupt the program to directly view the memory to see what was going on) In fact, this is probably why my dynamic re-sizing failed. Well, now that I think about it I know this is why it failed. It wouldn't work the way I was doing it. I was writing outside of my bounds. Fooey. After blaming Sony for writing shoddy libs I find that it's really my shoddy code. Fo Fo Fo. Well... It works now so I'm not going to re-write back to the way that it was just to see if it will work. I've implemented all of the triangle primitives and I'll be adding the quad primitives later after school today. Once I'm finished I'll post the code on the net. 'Darco