Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adam9000 opened this issue Apr 12, 2021 · 2 comments
Open

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

adam9000 opened this issue Apr 12, 2021 · 2 comments

Comments

@adam9000
Copy link

adam9000 commented Apr 12, 2021

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.

@jomijomi
Copy link

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

@martin1cerny
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants