Sorry, my mind is still stuck in 2004. I meant IMatRenderContext, not IMaterialSystem.
Kind regards, Saul Rennison On 10 September 2012 16:38, Saul Rennison <saul.renni...@gmail.com> wrote: > Have you checked out IMaterialSystem::ReadPixels? You will most likely > need to set your render target with IMaterialSystem::SetRenderTarget > beforehand. > > > Kind regards, > Saul Rennison > > > > On 10 September 2012 16:32, Zbyszek Skowron <zby...@gmail.com> wrote: > >> Hi! >> >> I would like to know if it is possible to read back data from a render >> target, for example _rt_Camera? >> I want to render the scene from the point of view of a point_camera >> entity, and then manually analyze the picture. >> >> ITexture interface doesn't expose any ReadPixels() method. >> IVTFTexture exposes ImageData() method, but: >> - I don't know how to get IVTFTexture interface from a render target >> texture (if even possible), >> - I don't know how to ensure that render target texture is readable. >> >> IMaterial and ISurface interfaces are of no help either. >> D3DDevice or equivalent is not available. >> Procedural textures (ITextureRegenerator) apparently don't work. >> >> Is there any way to read texture data pixel by pixel? >> >> Zbyl >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders >> >> >
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders