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

Reply via email to