Original Post
Hi to all...
Someone can tell me how can I render a mesh on a texture?
I think that I must do in this way:
LPDIRECT3DTEXTURE9 destTex; LPDIRECT3DSURFACE9 destSup; LPDIRECT3DSURFACE9 ts2=NULL; D3DXCreateTexture (device,h,w,0,D3DUSAGE_RENDERTARGET,D3DFMT_UNKNOWN,D3DPOOL_DEFAULT,&destTex); destTex->GetSurfaceLevel(0,&destSup); m_pd3dDevice->SetRenderTarget(0,destSup);Then?? I should do 1)render the mesh on destSup.... 2)Set old render target... 3)to use my new texture destTex.. I''ve forgot something? and can you teach me how do I do?