Path: chuka.playstation.co.uk!news From: Jon Arkley <113131.206@Compuserve.com> Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: Multiple Objects Date: Sat, 16 Aug 1997 21:44:48 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 48 Message-ID: <33F6113A.6BB5@Compuserve.com> References: <33F0E1C4.70C3@Compuserve.com> <33F18DDA.30CB@interactive.sony.com> NNTP-Posting-Host: ld49-046.lon.compuserve.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Hi Stuart (and Simon). Thanks very much for your help. I've managed to get my multiple objects up and running at last! I was only doing the lighting stuff once, when I should have done it once for each object handler as you described. Now I can push on with putting some textures on my objects. I hope this isn't to difficult (you'll be seeing some more desparate pleas for help if it is!). Thanks once again, Jon Arkley. Developer Support wrote: > > If your not using object.c. > > Set up a transform matrix, something like > > mat = GsIDMATRIX; > translate.vx = 100; > translate.vy = 100; > translate.vz = 100; > TransMatrix(&mat,translate); > > Alter the object handler > > obj.coord2->coord = mat; > obj.coord2->super = WORLD; > obj.coord2->flg = 0; > > Update the local to screen matrix > > GsGetLs(&obj.coord2,&coordmat); > GsSetLsMatrix(&coordmat); > > Put the object into the OT > > GsSortObject4... > > Then do the same for the second, third,... object but with different > transformation matrices > > Stuart