This project is read-only.
2
Vote

Issues with rendering effects

description

Hi all,

I have 2 issues with regard to rendering effects.

1.
I have a spritebatch.Begin(Deferred, AlphaBlend) call at beginning of my drawing routine. I draw all sprites, text, etc first. The the effects follow (still within the same spritebatch). The effects are rendered behind some sprites and in front of others!!

2.
I created a simple circle emitter using the LensFlare texture using alphablend. When viewing in the editor it appears fine. When rendering during the game it looks like there's no alphablending because the particles have a black bacground.

Any ideas?

Thanks,
Ivan

PS I'm using MPE 3.1 for XNA 4.0

comments

DarkPrisma wrote Sep 30, 2011 at 11:55 AM

same here, its only if u use the spriteBatch like:

SpriteBatchRenderer myRenderer;
....
spriteBatch.Begin();
myRenderer.RenderEffect(myEffect, spriteBatch);
spriteBatch.End();

you can test it with the BasicExplosion. You will get white clouds :(