XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

spriteBatch vs simple vertex shader

Last post 4/5/2009 7:06 PM by daminator. 3 replies.
  • 4/4/2009 11:26 PM

    spriteBatch vs simple vertex shader

    I am working on a 3D game, and need to generate/update bumpmap.
    I know what needs to be in the pixel shader, but in my research i found that SpriteBatch vertex shader is complex and could slow system down by using SaveState.

    So my question is:
    For simple 2D texture manipulation is it better to stick with SpriteBatch or create a simple vertex shader?
  • 4/5/2009 12:02 AM In reply to

    Re: spriteBatch vs simple vertex shader

    SpriteBatch is well optimized, you shouldn't have an performance issues if you're using it. Check out the sprite effects sample if you'd like to know how to use SpriteBatch along side a custom shader.
  • 4/5/2009 12:49 AM In reply to

    Re: spriteBatch vs simple vertex shader

    Im working on the same problem.. I think the texture manipulation is a bit restricted with a normal spritebatch, are you doing more than rotate, scale and flip, you should probably consider a shader..
  • 4/5/2009 7:06 PM In reply to

    Re: spriteBatch vs simple vertex shader

    decided to go with simple vertex shader. it was easier to setup.

    thanks
Page 1 of 1 (4 items) Previous Next