Mgraphics and 3d objects...

Anthony Palomba's icon

I am trying to write a library that allows one to easily port processing code to Jitter.
In processing you can call box(w, h, d), which creates a 3d cube centered at the origin.
Does mgraphics support this?

Anthony Palomba's icon

If it does not have a similar function, is there a way in mgraphics I can specify points that I can then project/rotate in to the 3d world?

Anthony Palomba's icon
Anthony Palomba's icon

Surely someone at Cycling74 must know the answer to this question.

Rob Ramirez's icon

mgraphics is a 2D drawing api, so no.

you can however use jit.mgraphics to texture 3D gl objects.