Original Post
I was previously using the directx 8 function calls regarding text display (no sprite objects) to render some text to a texture and then apply that texture to an object. It was working fine. I recently updated it to use the directx 9 text rendering function which incorporates sprites when rendering text, and text generation on my textures stopped working. I can get text to display fine straight to the frame buffer (using the new directx 9 calls), but when I try to render to a texture, no text seems to be displayed. My general process for rendering text to textures is as follows - Any ideas? Any help would be appreciated. Cheers.
// set the render target
g_pD3DDevice->SetRenderTarget(0, g_pTextureSurface);
// clear the target to a particular colour
g_pD3DDevice->Clear(0, 0, D3DCLEAR_TARGET, STARTNODECOLOUR, 1.0f, 0 );
// render the text out to the object
g_pD3DDevice->BeginScene();
renderTextureText(nodeToUpdate);
g_pD3DDevice->EndScene();
// renderTextureText section --
g_pD3DXTextureSprite->Begin(D3DXSPRITE_ALPHABLEND);
// render my text using a few of these calls
g_pD3DXTextureFont->DrawTextA(g_pD3DXTextureSprite, pTextTotal, -1, ▭, DT_LEFT, D3DCOLOR_XRGB(200, 200, 200));
g_pD3DXTextureSprite->End();