Now I want to extend the feature, and use it with maya’s updated render view( float values)..but grabbing just grabs 8 bit..
This is still me theorising, but remember back in Windows 95-98 when you could set your desktop to both resolution and color depth? Well, if you’d set the depth to 1-bit, the entire desktop would be black & white. Even the Maya Render View, and any image within it. I suspect that it is from this very same framebuffer that Qt grabs images from. Like the whole desktop is one big rendered image, and that image is limited to whichever bit-depth the window manager is set to render in. In the case of desktops today, this depth is typically 8-bit per channel which would explain why you’re only getting that depth when grabbing your images. What I am trying to do is getting float pixel values when hovering with the cursor above the image. As a solution, I think you could safely save out the image via the render view as Justin suggests, load that image and get the position and color of that instead of a grabbed image. You would subtract from the local coordinate of the Render View widget and apply it to the actual coordinates of the final image, taking Render View zoom into account. And you might probably want to delay the tooltip, as saving the image might take a second depending on its size, but tooltips typically take a second or two to show anyway so it should still work out. If you could show me what you’ve got so far I might be able to take a closer look. On 4 December 2014 at 23:09, Arvid Schneider <[email protected]> wrote: > Float is only supported in Maya 15 and above. And when saving the image > from the render view as exr its definitely float. > What I am trying to do is getting float pixel values when hovering with > the cursor above the image. > > What I have done so far is grabbing the whole screen image and saving it > as a qimage. Then getting the global mouse x and y to query the pixel rgb > value under the cursor. Its works pretty smooth.. > Now I want to extend the feature, and use it with maya's updated render > view( float values)..but grabbing just grabs 8 bit.. > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/af43fe28-6456-4611-b64d-ec2c09fa9941%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC3oYdNepnsA1sCoYoeOn1BpEtwrt3MfCfZ2-%3D%3DCa5v4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
