Path: chuka.playstation.co.uk!news From: colin adams Newsgroups: scee.yaroze.programming.3d_graphics Subject: Texture Problems Again Date: Sun, 25 May 1997 12:47:02 -0700 Organization: Cobra Developments Lines: 58 Message-ID: <33889736.687B@cobradev.demon.co.uk> NNTP-Posting-Host: cobradev.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I; 16bit) 1. I have located a Bug in my project, the offending code Is appended. The symptom of this code is a complete Crash. I would be extremely grateful if someone could examine this code & tell me where I may be going wrong. 2. When Will the New version of RsdTool Arrive? In a previous Mailing -: Subject: RSDtool Bug Report. Ref.: <3380E9D6.747D@cobradev.demon.co.uk> <3380ACE6.14D5@interactive.sony.com> I reported problems regarding Memory usage. I am unable to use the tool, so I guess I will have to remain texture less :-( 3. I have Just discovered why RSDV [file name] displays files in monochrome (on my Scart Mitsubishi ). I had the same problems in my code until I set the video mode to PAL. Thanks in Advance. Cobra /* Bugged Code */ #define FLTEX_ADDRESS 0x800c03BC // Floor Texture 64*64, 8 bit clut void InitTexture (u_long *address);// texture in sytem memory u_long *tptr; void main() { tptr =(u_long*)FLTEX_ADDRESS; InitTexture (tptr); } void InitTexture (u_long *address) { GsIMAGE *Info; // tim info ptr RECT rect; // +4 skip header of TIM file address++; GsGetTimInfo(address,Info); rect.x = Info->px; rect.y = info->py; rect.w = Info->pw; rect.h = Info->ph; LoadImage(&rect,Info->pixel); DrawSync(0); rect.x = Info->cx; rect.y = Info->cy; rect.w = Info->cw; rect.h = Info->ch; LoadImage(&rect,Info->clut); DrawSync(0); }