![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Jan 2005
Posts: 4
|
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. |
|
|
|
|
|
#2 |
|
DevMaster Staff
Join Date: Apr 2003
Location: Germany
Posts: 2,328
|
what is tutorial 12 ?
___________________________________________
If Prolog is the answer, what is the question ? |
|
|
|
|
|
#3 | |
|
New Member
Join Date: Jan 2005
Posts: 4
|
Quote:
Tetris 1 http://triplebuffer.devmaster.net/tu.../stepping3.php |
|
|
|
|
|
|
#4 |
|
DevMaster Staff
Join Date: Apr 2003
Location: Germany
Posts: 2,328
|
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
___________________________________________
If Prolog is the answer, what is the question ? |
|
|
|
|
|
#5 |
|
DevMaster Staff
Join Date: Sep 2003
Location: Hell
Posts: 1,109
|
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.
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Jan 2005
Posts: 4
|
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. |
|
|
|
|
|
#7 |
|
DevMaster Staff
Join Date: Sep 2003
Location: Hell
Posts: 1,109
|
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?
|
|
|
|
|
|
#8 | |
|
New Member
Join Date: Jan 2005
Posts: 4
|
Quote:
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. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|