GL Rotate and translate example (OpenFrameworks)

11 Nov GL Rotate and translate example (OpenFrameworks)

I consistently seem to get myself confused by the order of operations when working with ofTranslate and ofRotate in openFrameworks and it feels like I have to re-teach myself each time I have to do something with those transforms.

I made this simple bare bones cheatsheet program for myself to help show the differences between different rotate and translate orders, and I hope it helps others…hopefully will get time to post more low level tutorials like this in the near future with some of the more complicated matrix transforms/homography for projection mapping.

Made with xCode and OF0072 but you should be able to just drop the “src” file into a Visual Studio Empty Example if you need to…enjoy!

[Download not found]