for my university project I have implemented the marching cubes algorithm and everything seems to work, the only problem is that I can’t manage the lights and the surface material.
Here is an example:
The size of the grid to create the head is 106 * 256 * 256, the screen size is 700x700.
could someone help me please, thank you very much
Hi! Welcome to the forum! If it’s an assignment please add “homework” tag to the topic.
It’s difficult to give comments without the code as some contexts are missing. How are the boxes rendered? Are you using standard box geometry provided by Processing or did you make a custom shader?
Surface material is technically not implemented in Processing. You can set parameters such as specular, which may do the job, but they are rudimentary. PBR is more common in real time rendering (e.g., standard shaders in Unity) and gives realistic effects. But PBR is not included in Processing so you need to implement your own or use extensions such as: