Let's start working with 3D by creating a sphere surface and drawing it as a wireframe model.
A wireframe model is a type of graphical representation of a 3D object on the screen where only its edges are drawn. It appeared in the early era of 3D graphics as a simple way to draw objects in 3D. Now, it is used in 3D modeling software to control the structure of the created objects and as a special effect in films, games, and experimental graphics.
We will achieve this using the
ofSpherePrimitive class in the following way:
ofAppclass, as follows:
Here, the first argument,
250, is the radius of the sphere. ...