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

[Input] Input.mouseObject always returns null #203

Open
PxlBuzzard opened this issue May 28, 2014 · 9 comments
Open

[Input] Input.mouseObject always returns null #203

PxlBuzzard opened this issue May 28, 2014 · 9 comments
Assignees

Comments

@PxlBuzzard
Copy link
Member

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

@ColdenCullen
Copy link
Member

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
Copy link
Member

Can confirm that reversing d3d9516 resolves the issue.

@ColdenCullen
Copy link
Member

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

@wozniakty
Copy link
Member

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?

@ColdenCullen
Copy link
Member

@ColdenCullen
Copy link
Member

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

@PxlBuzzard
Copy link
Member Author

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

@wozniakty
Copy link
Member

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.

@PxlBuzzard
Copy link
Member Author

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?

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

No branches or pull requests

3 participants