DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Hosted Sites > TripleBuffer
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-28-2005, 08:32 AM   #1
xanphen
New Member
 
Join Date: Jan 2005
Posts: 4
Thumbs up

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.
xanphen is offline   Reply With Quote
Old 01-28-2005, 02:54 PM   #2
anubis
DevMaster Staff
 
anubis's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 2,328
Default

what is tutorial 12 ?
___________________________________________
If Prolog is the answer, what is the question ?
anubis is offline   Reply With Quote
Old 01-28-2005, 05:11 PM   #3
xanphen
New Member
 
Join Date: Jan 2005
Posts: 4
Default

Quote:
Originally Posted by anubis
what is tutorial 12 ?
[snapback]15509[/snapback]


Tetris 1

http://triplebuffer.devmaster.net/tu.../stepping3.php
xanphen is offline   Reply With Quote
Old 01-29-2005, 03:47 AM   #4
anubis
DevMaster Staff
 
anubis's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 2,328
Default

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 ?
anubis is offline   Reply With Quote
Old 01-30-2005, 01:23 PM   #5
bladder
DevMaster Staff
 
bladder's Avatar
 
Join Date: Sep 2003
Location: Hell
Posts: 1,109
Default

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.
___________________________________________
- TripleBuffer
- Me blog
bladder is offline   Reply With Quote
Old 02-08-2005, 04:37 AM   #6
xanphen
New Member
 
Join Date: Jan 2005
Posts: 4
Default

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.
xanphen is offline   Reply With Quote
Old 02-08-2005, 06:03 AM   #7
bladder
DevMaster Staff
 
bladder's Avatar
 
Join Date: Sep 2003
Location: Hell
Posts: 1,109
Default

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?
___________________________________________
- TripleBuffer
- Me blog
bladder is offline   Reply With Quote
Old 02-09-2005, 12:29 AM   #8
xanphen
New Member
 
Join Date: Jan 2005
Posts: 4
Default

Quote:
Originally Posted by bladder
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?
[snapback]15874[/snapback]

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.
xanphen is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 02:36 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.