Hi guys,
Wow, so many answers
![Smile :)](./images/smilies/icon_smile.gif)
Where to begin ? draw2DImageBatch() seems a really good idea.
I thought about the quad solution actually, wondering if the gain would be significant.
Just to clarify if I'm mistaken, It would mean I should :
- set a render-texture-target by calling
Code: Select all
videoDriver->addRenderTargetTexture()
and
- draw2DImage / draw2DImageBatch -> same job I'm currently doing in 2D.
- set the RTT as texture of the quad
- clear the RTT with
Code: Select all
videoDriver->setRenderTarget(NULL);
- render the scene
I wonder how doing those extra operations (rendering "twice") could actually be faster than just one draw2DImageBatch() (not that I'm doubting it, just wondering what makes it faster). Apart from performance, I imagine that using Irrlicht's 3D capabilities would allow me to use other neat features (shaders, animators for projectiles, particles...)
@chronologicaldot :
I agree that separate textures would be easier to maintain, but that's not a problem for the moment. My graphist friend is okay with the tileset idea
![Wink ;)](./images/smilies/icon_wink.gif)
And yes, I'm using OpenGL as driver.