Path: chuka.playstation.co.uk!news From: Simon Wood Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: Multiple Objects Date: Wed, 13 Aug 1997 11:25:03 +0100 Organization: Black Sheep Design Lines: 58 Message-ID: <33F18B7F.7578@mintsauce.com> References: <33F0E1C4.70C3@Compuserve.com> Reply-To: simon@mintsauce.com NNTP-Posting-Host: host5-99-46-232.btinternet.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win95; I) Hi If you are using the stuff in object.c that most of the samples use then: Declare two object handlers and then instantiate them with the same TMD, as follows: ObjectHandler object1; ObjectHandler object2; u_long tmdObject = 0x80090000 InitSingleObject(&object1); BringObjectToLife(&object1,PART,tmdObject,0,NONE); RegisterObjectIntoObjectArray(&object1); InitSingleObject(&object2); BringObjectToLife(&object2,PART,tmdObject,0,NONE); RegisterObjectIntoObjectArray(&object2); It worked for me, so I see no reason why it should not work for you. Hope this helps. Regards Simon Wood Jon Arkley wrote: > > This is an unashamed plea for guidance and inspiration from all you > Yaroze Gurus out there (you know who you are!). > > I've already tried the Beginners news site, but havn't had any replies > so far (sob!). I hope I get more luck here. > > I am new to Yaroze, and haven't done much other than play around with a > few demos to date. I've written games software on an Amiga, but that was > in BASIC, so I'm having to pick up C at the same time (with the help of > a few good books!). I have been programming for nearly ten years > however, so without meaning to sound big-headed I'm sure I can make > progress, assuming I can get a little help from you guys. > > What I'd like to do is load a single TMD file into memory and use it to > display two or more identical objects from the same data. Is this > possible? If any kind soul could help me out with some suggestions, or > maybe even some source (yes please!), then I'd really be in your debt. > > Thanks for reading this, and please post a reply (even if its just to > tell me to go away for a year until I've got more C experience!). > > Yours sincerely, > > Jon Arkley.