I wish to write a c++ program with the goal of "baking" a 3D normal texture map. A user…
- User
I wish to write a c++ program with the goal of "baking" a 3D normal texture map. A user must input a low poly and high poly model with the option to add a 3d cage mesh model. The program will run once the user press "run".
What is the best approach to get started? What libraries can I use to speed up the process? What data types are needed to handle in order to build such a program?
- Assistant
Please note that there are many libraries to accomplish what you asked some of them get updated quite frequently others get deprecated, so based on when my weights were frozen I may or may not recommend up to date libraries, please keep that in mind.
The program will run once the user press "run".
This implies that the program has some sort of graphical user interface (although not strictly necessary) for that you will need a GUI library like FLTK, Dear ImGui or wxWidgets.
What is the best approach to get started?
I would start by loading and decoding the high polygonal model, extracting it's surface normals by calculating the cross product of two vectors spanning the plane that contains the surface and then storing the components of those vectors as RGB values of an image.
What libraries can I use to speed up the process?
I would recommend a graphics library like DirectX or Vulkan an image decoding library like ImageMagick and a model loading library like Open Asset Import (assimp).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.