View Full Version : Image list texture
xanphen
01-28-2005, 08:32 AM
I have a texture that contain more then one images. Using a Rect to specify the region to be drawn, I come up with this strange problem.
(like in Tutorial 12), the first 4 pixels of the first tile in (tiles.bmp) need to be on the right most side rather then the logical position on the left (index 0). If I draw my list of images side by side starting at 0 index the texture gets out of alignment as I move to the nexts image.
anubis
01-28-2005, 02:54 PM
what is tutorial 12 ?
xanphen
01-28-2005, 05:11 PM
what is tutorial 12 ?
15509
Tetris 1
http://triplebuffer.devmaster.net/tutorials/stepping3.php
anubis
01-29-2005, 03:47 AM
how is anybody supposed to know that ? post in the triplebuffer forum if you have questions related to tutorials on that site. otherwise make it more clear what you are talking about
bladder
01-30-2005, 01:23 PM
I understand what you mean, but why are the last four pixels at the start of the image. tiles.bmp in tutorial 12 has it's blocks in order (without the first 4 pixels being the last)... so, my suggestion would be to fix the bitmap.
xanphen
02-08-2005, 04:37 AM
ok found the problem. related to none square texture.
256x32 was shifting the first pixels to the end.
256x256 the texture create the right way. i just select the section of the texture i want.
must be my video card that doesn't support none squre texture.
bladder
02-08-2005, 06:03 AM
thanks for reporting back. Shifting the pixels on the left towards teh right when the texture is not square is very strange behavior. What video card do you have?
xanphen
02-09-2005, 12:29 AM
thanks for reporting back. Shifting the pixels on the left towards teh right when the texture is not square is very strange behavior. What video card do you have?
15874
GE Force 4 Ti 4200
Guess i'm gonna use square texture for now on. the doc was stating newer card supported none square texture. My quess is GE force 4 is not in the list.
vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.