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

[core][rlgl] Raycast system not working properly #35

Closed
raysan5 opened this issue Sep 4, 2015 · 1 comment
Closed

[core][rlgl] Raycast system not working properly #35

raysan5 opened this issue Sep 4, 2015 · 1 comment
Labels
bug This is a bug
Milestone

Comments

@raysan5
Copy link
Owner

raysan5 commented Sep 4, 2015

Raycast system intended for 3d picking is not working properly.

Related raylib example: core_3d_picking.c

Related functions [core.c][rlgl.c]:

Ray GetMouseRay(Vector2 mousePosition, Camera camera);
Vector3 rlglUnproject(Vector3 source, Matrix proj, Matrix view);

After long testing, it seems there is some error inside rlglUnproject() but not completely sure...
rlglUnproject() just resembles gluUnproject() but it doesn't work. Maybe an issue with MatrixInvert() or MatrixMultiply() order?

@raysan5 raysan5 added the bug This is a bug label Sep 5, 2015
@raysan5 raysan5 modified the milestone: raylib v1.4 Sep 5, 2015
@raysan5 raysan5 mentioned this issue Nov 23, 2015
@raysan5
Copy link
Owner Author

raysan5 commented Jan 7, 2016

Fixed via commit 21229aa

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

No branches or pull requests

1 participant