Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I would like to make a 2D tile based game, but, to make it look a bit prettier, I would need to skew textures so that it would look more like a 2.5D game. So I thought maybe I should skew textures to something like this:

enter image description here

So far I only found one topic about it - http://forums.create.msdn.com/forums/p/37143/215098.aspx#215098

But I don't really understand it.. Maybe some of you do, and could give me a more in depth description?

share|improve this question
2  
The link describes two ways to solve this. The "proper" way is to treat this completely in 3D as textured quads, instead of using the SpriteBatch. This way you can just offset the top vertices yourself when creating the quads. The other solution uses a custom pixel shader for SpriteBatch which is provided in the link, sets the texture adress mode to clamp, and it requires that you add a one pixel transparent border around your textures. Personally I would recommend the first solution. –  David Gouveia Jul 15 '12 at 17:07
    
Thank you for reply. Searched google for "textured quads" and found this : msdn.microsoft.com/en-us/library/…. Made modifications to work with xna 4.0 and changed values in View matrix, and, i got trapeze :) Can you aprove this approach? Also i cant see any connection with classic 2D system with x,y - no coordinates, so its hard to connect it to other textures. I guess... Or am i wrong? –  Wish Jul 15 '12 at 19:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.