Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

hollowMedia

Tile Mapping : Sprite or Plain Texture Quad?

This topic is 5143 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve read in the FAQ that the performance of Sprite has increased substantially in the latest Summer Update and I was wondering what your recommendations would be for creating a basic 2d tiled background. Sprite is fairly easy to work with, but I''d like to have the most efficient option for the game. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Well, IMHO, sprites are very fast (after summer update) and very easy.

However, I am trying to go pure textured quad. Why? I want lighting and I don''t know how much lighting effects you can do with sprites. With quads, you can use ambient lights, etc. Very cool. Plus, you can easily do things like "warping" tiles.

cb

~ c o l ec o ~



Rock the cradle of love!
You stupid WANKER!
S i g n a l D E V .com
Metroid Classic

Share this post


Link to post
Share on other sites
Using the Object-Space flag with D3DXSprite is no different than using quads. You will need to set a few render states after Sprite->Begin, to be in total control, though. Not sure why Microsoft decided to leave it uncustomizable.

Share this post


Link to post
Share on other sites
Thanks for the responses, everyone.

I''ve been using basic textured quads and I''m having a little trouble with the overlapping and the textures mirroring. It''s likely oversight on my part, but I''m not sure how to fix it right now. Anyone know of any good articles on D3D tilemapping using a single vertex buffer?


Thanks.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!