Path: chuka.playstation.co.uk!news From: Ari Pall Albertsson Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: Texture problem Date: Tue, 28 Jul 1998 16:46:42 +0100 Organization: S.R. Studios Lines: 40 Message-ID: <35BDF262.C1236D1B@hi.is> References: <35BDDB53.81B9EE38@hi.is> <01bdba39$e36cc320$f30b0a0a@Angela1.intelligent-group.com> NNTP-Posting-Host: realms.xnet.is Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) Craig Graham wrote: > >Ari Pall Albertsson wrote in article > ><35BDDB53.81B9EE38@hi.is>... > >> Hi! > >> > >> I'm having a problem puting a texture on a 3d model. > >> I've tried to use rsdAnim 1.4 and RsdTool and I've also tried to do it > >> without any utility (just with code). But I still haven't managed to > >> get > >> it right. > >> So I was wondering if anybody knows a good way to put textures on 3d > >> models, > >> or knows about a good example code to learn from? > > >Are you remembering to load the textures on the PSX? Remember, textures > >aren't stored in the TMD file, so you have to load them seperately... > >Craig No I'm not, It's good to know that the TMD file does not include the textures. Ok, now I'm using a functions from a demo that came with the CodeWarrior 2. First I call the "void ProperInitialiseTexture (long address, GsIMAGE* imageInfo)" function and then there is another function called "u_short SortSpriteObjectPosition (ObjectHandler* object)" witch I'm not sure what to do with.. (the example, states it's not ready). I would appriciate if somebody would send me some samplecode, so I could fix my errors. (I always see "something" on the 3d models, but that's always something strange. I store the .tim file at (640,0) in the VRAM, that is outside the frame buffers.) thanks Ari Pall