Replies: 1 comment
-
Hello @Huda-sh, Even though I've never came across CSG, I liked the idea. I believe that the native OpenGL API does not support CSG, therefore, I can give you a permission to use any library that implements CSG methods. Note: I've checked OpenCSG repository on GitHub, I've read the example, it uses legacy OpenGL API.. never mind, I want to tell you that you can mix your code with both legacy and modern OpenGL code (but I wonder if using GLUT (or FreeGLUT) will cause any technical issues with your existing code, I hope it will not). Good luck. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings✨,
I am trying to draw a specific shape in the project, but I am finding it difficult to get the vertices and indices of it, so I am if thinking of making it out of simple shapes (cube and sphere).
I have seen that in the theoretical lectures Dr. Ammar talked about Constructive Solid Geometry Methods (CSG), where we can apply the union, intersect, and difference operations on simple shapes to create more complex ones.
can you please tell me how to apply that in modern OpenGL, or recommend a resource so I can check it
I came across a discussion on StackOverFlow here where someone mentioned the OpenCSG library, but I don't know if it is allowed to use it in the project, if it is allowed please tell me.
thank you in advance 🙏🏻
Beta Was this translation helpful? Give feedback.
All reactions