Originally posted by Racoon: Thanks, interestingly on D3D it is possible?
Maybe in a IDirect3DSurface9, but not with a IDirect3DTexture9.
A surface in D3D is kind of (just a little) like a FBO (Frame Buffer Object) in GL. It can contain color info, depth, etc. So maybe you would be interested in using FBOs. Although an FBO can contain multiple color attachments whereas a d3d surface can’t (as far as I know).
[OFF-TOPIC] D3D does not support 16-bit floating point color and depth values in the same surface and/or texture. Even if some third party software does it, it’ll be doing it in software.
Originally posted by Racoon: Ok, but the FBO is like are primary buffers in this sense.
Yes, you render to them. Use them for render to texture (RTT). They are simple enough to use.
To everyone else, I’m sure D3D is wonderdul, but how is this relevant?
It was a bit relevant in this particular case (particularly since the author seems to have used D3D) and it can be quite relevant some other times too, and if need be, i don’t see any crime in making comparisons between OpenGL and D3D on this particular forum (or elsewhere).
Sometimes features in OpenGL specifications (especially recently) are “inspired” from D3D and explicit references are given in some specs (and/or research papers by nVidia and ATI).
Nobody is discussing D3D over here, its just some feature set comparison, and its always good to know your “enemy”.
<speculation> oh god, here comes a flame war </speculation>