r/GraphicsProgramming • u/[deleted] • Jul 21 '22
Question 3D modeller question
Hi! excited to join this subreddit. I had 2 questions - do we need opencascade to program a 3d modeller, or does opengl have all the tools to build it ?
and, im planning to have the ui made with wxWidgets in python and have C modules extentions, so how do i get to display the workspace(3d space) inside the wxWidgets GUI? im so confused
I'm talking a full blown solidworks - like cad app.
thanks a lot guys
3
u/wrosecrans Jul 21 '22
do we need opencascade to program a 3d modeller,
Certainly not. There are many modelling programs that don't use it.
or does opengl have all the tools to build it ?
Also no. OpenGL is ultimately an API for drawing triangles. You'll need to interact with the windowing system, handle input, doing geometry, reading and writing files, etc. How much of that you want to write yourself or get from third party libraries is up to you.
and, im planning to have the ui made with wxWidgets in python and have C modules extentions, so how do i get to display the workspace(3d space) inside the wxWidgets GUI? im so confused
WX has an OpenGL Widget: You draw into that according to the documentation: https://wiki.wxwidgets.org/WxGLCanvas
You seem to be pretty unclear about what the scope of OpenGL is, or how to work with it at all, so I'd just encourage you to start small, and scale down your expectations from something like SolidWorks as your starting point,
1
Jul 22 '22
Yes I'm indeed confused by opengl. Also, I want to use C extension modules for the performance. Obviously I plan to learn about the apis I will need as I work through the project. I felt like knowing how to make a gui and displaying basic shapes in the app in a canvas ought to get me started, but I have so much trouble with how to get to display things. Any more advise is appreciated
1
u/the_Demongod Jul 22 '22
Writing your own GUI from scratch is a huge undertaking, I wouldn't recommend it unless you're already quite experienced in the API and graphics programming in general and are particularly interested in GUI development. Otherwise it's going to be a huge slog.
1
u/ShillingAintEZ Jul 21 '22
It's probably much more realistic to try to use webgl and make something that can select and move points first.
4
u/LivelyLizzard Jul 21 '22
I don't know OpenCascade but from what I gathered from a quick google search, it will make your life a lot easier than doing all by yourself in OpenGL.
Idk what OpenCascade is based on but wx Widgets can draw OpenGL graphics via wxGLCanvas.
Btw as you are
and the way you ask your question seems like you are a beginner, prepare for a long and hard time developing your idea. There is a reason there work more than 5 people at a company like this.