Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Jonathan Calvert Newsgroups: scea.yaroze.programming.2d_graphics Subject: Basic 2d Questions Date: Sat, 30 May 1998 12:59:30 -0400 Organization: NO-SPAM, I am. I do not like SPAM! Lines: 47 Message-ID: <35703AF2.41AD@mindspring.com> Reply-To: jonathan.calvertNO-SPAM@mindspring.com NNTP-Posting-Host: user-37kbtm6.dialup.mindspring.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; U) After attending E3 this week I have gotten very motivated to create something with my Yaroze. Previously, I have changed various things in some of the sample programs, but I have not really created anything on my own. I just have not had the time...or at least I have not dedicated the time to learning how to program game. Heck, learning COM/DCOM, ATL, etc. at work is enough to keep anyone from feeling motivated from programming in there free time. Anyway, I am doing some really basic things like loading 4bit sprite images. I have noticed that some of my images load (display correctly) and some do not. I am using a frame area of (320 x 240). A typical texture page for my 4bit image is: (x = 768, y = 76, w = 16, h = 64) Question 1 - I almost always have to change the x value to 640 and the y value to 0 to get the image to display correctly. Why? Question 2 - I always have to multiple my w value by 4. I have seen this in various sample programs, but I have not seen an explanation. Why multiply by 4? Question 3 - If the image was a perfect square (64x64 pixels) why does the w value come up reduced by a factor of 4? It looks like 8bit images are reduced by a multiple of 2. I guess this is a pattern. A typical image CLUT is: (x = 0, y = 480, w = 16, h = 1). Question 4 - If my y value is more than 480 then the image will not display. Why? Am I limited to twice my frame area (i.e. 640 x 480)? I apologize if these questions have been asked before (old messages have been wiped off the server so I do not really know) or if this information is in the user guide (which is at work). Thanks in advance for your time and help. -- Jonathan [Please remove NO-SPAM to email me]