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.

GenMeshCubicmap() parameter description

Hello all,

While trying to reaquaint myself with OpenGL, I came across your library. Raylib seems like a very good place to start!

While looking into the models module, I noticed that LoadCubicmap() calls GenMeshCubicmap with a second parameter (Vector3 cubeSize). I'm curious what the interpretation of this parameter is. It's clear that cubeSize.y specifies the wall height, but I'm not so sure about the other two members (x & z). Common sense tells me that they are the width and breadth of a single map cell.

Is my intuition correct, or am I way off?

Thanks,
demonu.ro

Comments

  • Hello demonu.ro! Welcome to raylib forum! :smile:

    Yes, you're right, x and z sizes refer to a single cube of the cubicmap mesh.

    Just as a detail, notice that generated mesh only includes visible faces of the cubicmap, it's optimized on creation.
  • Hello raysan!

    Unfortunately there's a bug that renders an incorrect cubicmap when the cube parameters (x & z) are not 1.0f.

    I think I've fixed it on my local copy of raylib. Shall I create a pull request?
  • Hi demonu.ro!

    Fixes are always welcome! Just make sure to sync to latest develop branch and PR to develop branch.

    Thank you very much for detecting the issue! :D
Sign In or Register to comment.