Hello, I’m rewriting my app to use Juce framework and faced with an issue.
I’m drawing simple pitch wheel control.
- I have for this background image
- 60 lines on the center. One of the line with white color (see screenshot)
- I need to rotate each line in 3d like this does CATransform3DRotate
here is part of my code in iOS swift. I used CALayer.
// Rotate Layer in 3d
var l = CALayer();
var t = CATransform3DIdentity
t = CATransform3DRotate(t, [0-360] value, 1.0, 0.0, 0.0)
t = CATransform3DTranslate(t, 0.0, 0.0, height)
l.transform = t
Do I need to use OpenGL for that? If yes then is there any example of how I can do this?
Seems g.addTransform(AffineTransform::rotation(angle)); Is not suitable, it’s just rotate in 2d.
Thank you for help. I’m new with that, and stuck for a week on that.