XbimWebUI
XbimWebUI copied to clipboard
Pick event argument's with no data on RenderingMode.XRAY
Hi folks
Has anyone experienced problems with this type of usage?
For me, the 'pick' are giving me args with no data, when XRAY rendering mode is on...
Tnx in advance.
Picking seems to be broken with RenderingMode.XRAY. RenderingMode.XRAY_ULTRA will work (with picking), but will give slightly different visuals. Reasons for picking not working seems to be that back-face culling is turned ON for RenderingMode.XRAY, which will then make picking not work. If you make sure that back-face culling is turned OFF before rendering to pick-buffer, everything works. However, this is very strange, as back-face culling on/off should not affect pick-buffer on scenes that have most of the triangles correctly oriented. Will investigate further (it is almost as if the winding order gets reversed due to negative scaling or something...) /Mikael
To be fair, picking in any XRAY mode is a bit questionable. Do you want semi-transparent objects to be selectable, or not?