XbimWebUI icon indicating copy to clipboard operation
XbimWebUI copied to clipboard

Pick event argument's with no data on RenderingMode.XRAY

Open adam9000 opened this issue 3 years ago • 2 comments

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.

adam9000 avatar Apr 12 '21 21:04 adam9000

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

jomijomi avatar Jun 29 '21 10:06 jomijomi

To be fair, picking in any XRAY mode is a bit questionable. Do you want semi-transparent objects to be selectable, or not?

martin1cerny avatar Dec 09 '22 15:12 martin1cerny