Path: chuka.playstation.co.uk!news From: SCEE TECH Newsgroups: scee.yaroze.programming.2d_graphics Subject: textures Date: Mon, 23 Jun 1997 12:41:38 +0100 Organization: Sony Computer Entertainment Europe Lines: 51 Message-ID: <33AE60F2.546@interactive.sony.com> Reply-To: N/A-Use-Newsgroups NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) The VRAM is 1024x512, so x=0 y=512 is not valid, hence your problem. Stuart To: Laura Smith cc: From: markt @ mincom.com Date: 23/06/97 16:16:26 EST Subject: Texture Pages Hi! Howz the weather over there? (tis rather nice here on the coast of Aussie) I have a question as I am experimenting with Textures... Please forward it to the programming/3d_graphics news group. I find that setting the texture page between 0 and 7 is fine using the coordinates 0 for y and multiples of 64 for x in the frame buffer. I am using resolution of 512 x 256 for a frame, 512 x 512 in total for both (double buffered) frames. I am loading my texture at x=0,y=512 and setting the texture page in my model to 8 assuming this is the correct texture page as a model may have a texture id in the range 0 - 31 only making me assume that in my situation x must be a multiple of 64 and y is a multiple of 256. This does not work (as you may have guessed). I have also been experimenting with the drawing environment structure, setting it with texture rectangle sizes, etc but this does not appear to have any effect. Using GetTPage() with an appropriate x,y returns 32 for a page id but the model's texture page must be in the 0-31 range. What's going on here? Thanks in advance... Mark markt@mincom.com