Ok this would be a simple problem if I had half a clue about rotation math. BUt since I don't hopefully someone out there can help. I"m trying to create what amounts to an attitude indicator.
It needs to do two things:
1. Set a texture rotation based on roll such that the texture itself is always oriented to 0,0,0 (blue side up).
2. Set a texture offset based on pitch with 0 offset representing level.
Complication: Object itself is rotated 30 degrees on the Y axis to the root prim of the ship. That is why I can't just move the object itself. I had it working fine as a sphere when the thing was oriented to 0,0,0 on the root. But having to have it 30 degrees offset messed up the process. And the math of degrees, radians and rotations makes my head spin.
Any simple approach out there?