I’m working on a program that reads data over USB(solved those problems) and displays it as instruments. Specifically, I have a compass and an attitude indicator. I borrowed the compass and it’s really pretty. It uses png images of the compass face, compass ring, and it has a nice image that is transparent with some opaque squares that when overlayed, looks like glass reflecting light. It adds realism.
What I’ve done is draw an attitude indicator using a sphere in shapes3d. I have a transparent image that I draw as an outer sphere. I want to draw some opaque squares, like the compass uses, and draw them on the transparent sphere so that the attitude indicator has a similar look as the compass.
The question is how do I draw opaque white onto an image using Shapes3D library?
I experimented a bit with drawing squares on a sphere which is not that easy because the further you go to the north or south the more they become triangles. So you have to use quad(), and depending on the size of the rectangle, maybe multiple quads to avoid the sides become too round (following the latitude lines). On the equator, you can even use rectangles.
Thanks, noel. I’ve been playing with tint and DISABLE_DEPTH_TEST. What’s got me stupified is that I once did something similar with Shapes3d and then that library got updated and the methods are different now. I’ll get something basic working and post it.
Just for the record, here’s what it looks like now.