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

how to add a sprite in replace of the cursor? #255

Open
houcy opened this issue Apr 30, 2020 · 1 comment
Open

how to add a sprite in replace of the cursor? #255

houcy opened this issue Apr 30, 2020 · 1 comment

Comments

@houcy
Copy link

houcy commented Apr 30, 2020

First of all, thanks for the great 3D project, it's awesome!
I'd like to add a sprite, say a boy or robot into the stage to replace the default cursor, so the boy can move and controlled like in minecraft.
How to make it?
Thanks!

@twetzel59
Copy link

twetzel59 commented May 8, 2020

Well, Craft uses GLFW, so you might be able to use this.

Another option could be to render two triangles directly with OpenGL, and texture them with a simple shader, using alpha blending.

I would opt for the first solution since it's native to the library.

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

2 participants