Hey! raylib forum is closing!

After a year with not much movement in the forum I decided to close it.

The cost of maintaining the hosting is a bit high for the usage of the platform, updating the forum and managing it is also a bit cumbersome and the truth is that I'm already trying to maintain multiple other networks pretty more active than this forum.

I'll recommend you to move to the other raylib networks:

- For a forum style, use Reddit: https://www.reddit.com/r/raylib/
- For direct messaging and questions, use Discord: https://discord.gg/VkzNHUE
- To report issues, use GitHub: https://github.com/raysan5/raylib

- Also, remember you can contact me personally on Twitter: https://twitter.com/raysan5 or directly by mail to ray[at]raylib.com

If you feel generous, you can also contribute to the project on my Patreon: https://www.patreon.com/raylib

Thanks to you all for joining the project and help to improve it with your questions. Keep it up! :)

Best Regards,

Ray

PD. Closing will be effective by October 31th.

2d viewport/camera?

Hey how would i go about moving a 2d camera in raylib?
I see stuff in the cheatsheet for 3d camera and all but nothing for 2d.

Thanks!

Comments

  • Hi mouldysammich,

    Right now there is no 2D camera system, you have to move/scale/rotate all screen elements at drawing or use the new experimental function included in raylib 1.4:

    void BeginDrawingEx(int blendMode, Shader shader, Matrix transform);

    With this function you can use a custom blendMode, shader and transform matrix to be applied to all the draw elements. Using a custom transform matrix you can translate-rotate-scale all the screen elements and create a 2D camera.

    I know this method is far from desired so I'm adding "2D camera system" to my TODO list.
  • Great, thanks very much! Should be fun trying to figure out transform matrix.
    Really love raylib so far! It gives me a nice way to practice my C skills!
  • Hi mouldysammich,

    Just added an issue on GitHub for it: https://github.com/raysan5/raylib/issues/94

    I'll try to implement it an provide an example as soon as posible.
Sign In or Register to comment.