hi everybody,
I have a question about DirectX11, I need to create water and modelize the refraction of the water. So i have a map and i need the texture that represent my map. I think that i must use a render target but I don't know how do that. Can you give me an example of render target please?
Thank you for your help.
Render target?
In DX9, you call IDirect3DDevice9.SetRenderTarget and pass in an IDirect3DSurface9. You can get a surface from an IDirect3DTexture9 with IDirect3DTexture.GetSurfaceLevel. You can also get a surface from a swap chain.
I managed to copy my scene into a texture, but I have a problem... my picture without texture:
http://img534.images...ithoutwater.jpg
and with the texture:
http://img442.images...apwithwater.jpg
the image don't have the good resolution. An idea of this problem?
http://img534.images...ithoutwater.jpg
and with the texture:
http://img442.images...apwithwater.jpg
the image don't have the good resolution. An idea of this problem?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement