I don’t use the ExtraTex here. Tell me if I’m wrong, but in my case, as you can see above, the SamplerInfoTex (left image) previews vectors (black areas with negative values). And the SamplerInfo (render elements, right image) displays RGB color (but the eyedropper still shows negative values). I’m not saving through the Separate render channel but directy from the Vray frame buffer window (but maybe it’s all the same).
Not sure how you’re baking the VRaySamplerTex then, but that doesn’t matter since you can reproduce the behavior without baking as well (SamplerTex in ExtraTex RE). Both images have identical pixel values (you can easily confirm by just comparing the ExtraTex with the SamplerInfo elements).
By preview, I mean how the pixels are displayed (and what they represent). That being said, it’s actually the other way around as mentioned earlier. An easy way to determine this is by looking at the (0,0,0) background which in RGB terms represents pure black, unlike vector values. Also, when previewing elements in the VFB - the RGB color value are colored, whereas data (vector) values are grey.
However, it seems that I can save a signed EXR without the multi-channel enabled: when the SamplerInfoTex is rendered by the Bake to texture tool (the left image of my 1st post). If I open the EXR with Photoshop, the negative values are still there.
I find it strange that the frame buffer displays negative values with the eyedropper but convert these to positive values when saving to a floating point format. It’s confusing, no?
Well, yes, because the VRaySamplerTex is already in RGB values. Whereas the VRaySamplerInfo element needs to be converted to a certain range (either [0 - 1] or [-1 - 1]) for it to be saved as color data.
Is there no way to force the frame buffer to display (in black) and save negative values, like the same frame buffer does perfectly when SamplerInfoTex is rendered with the Bake to texture ?
My EXR file is for Unity. I’m not sure multi-channel works in this case. And yes I could remap it directly in my shader, but it it will add some extra work to the GPU, that’s why I would like to get it directly from Vray. But I’ll go this way if there is no other solution.
I don’t think so. It is how such “data” elements (i.e. VRayVelocity, VRayZDepth, VRayNormals, etc.) are previewed in the VFB. Well, you can use the VRayExtraTex plus VRaySamplerInfoTex method instead.