Dash icon indicating copy to clipboard operation
Dash copied to clipboard

[Input] Input.mouseObject always returns null

Open PxlBuzzard opened this issue 10 years ago • 9 comments

Something about 0.9.0 broke Input.mouseObject. I have tested in Spectral Robot and Sample-Dash-Game.

PxlBuzzard avatar May 28 '14 04:05 PxlBuzzard

Just did a little debugging ,and I found that the mouse cursor position is correct, however the id here is always 2147483648, hence the null return value.

@zeDoctor any idea what would cause this?

ColdenCullen avatar Jun 30 '14 03:06 ColdenCullen

Can confirm that reversing d3d95169a75d5581974dd989d46c27ac2f2da8f9 resolves the issue.

ColdenCullen avatar Jul 30 '14 03:07 ColdenCullen

Can now confirm that the issue comes from reading from the Alpha channel, which is notoriously impossible.

ColdenCullen avatar Jul 30 '14 04:07 ColdenCullen

Really? That's bizarre. I couldn't find a reason for it before, but I've been pretty swamped this week and last weekend so I hadn't dug too far in. Why is reading from alpha any different than the others I wonder?

wozniakty avatar Jul 30 '14 05:07 wozniakty

Also side note, the cursor position is definitely wrong on my laptop.

ColdenCullen avatar Jul 30 '14 05:07 ColdenCullen

Hey @zeDoctor, any chance of tackling this tonight before 0.10.0 ships?

PxlBuzzard avatar Sep 07 '14 21:09 PxlBuzzard

Ended up with a super busy weekend, so no :/ It looks like it could be that the Alpha channel gets lost when any blending is done, but I didn't think we did any blending on that particular FBO, so I'm pretty stumped as to why it's not working correctly.

wozniakty avatar Sep 08 '14 16:09 wozniakty

To add some confusion to this, Input.mouseObject works on my machine in the labs. Perhaps its an issue at the graphics driver / card level?

PxlBuzzard avatar Sep 09 '14 14:09 PxlBuzzard