Thanks, Martin. Another in a long line of very handy plugins!
Just a couple of bugs to report, and one feature request:
First, I'm running XP SP3, SU 7.1.6860 (free version), and my IE is version 8.0.6001.18702. It seems to have problems when I use it, (which is rarely
Finally, the feature request:
It would be very handy if I could "pan" the camera left and right, relative to the viewport, by a specified value. For example, if I panned it right by about 2.5", it would be like I closed my left eye and opened my right (do you see where I'm going with this?
). I know (for me, anyway) the math would be pretty rough, but if you have the time, (you obviously have the grey-matter
) I would use this feature ALL OF THE TIME!
Anyway, thanks again for the cool plugin!
EDIT: I just had another look at the Camera object API, and I think I know how to do this... Take the cross product of Camera#up and Camera#direction, use the resulting vector (or its negative) to transform Camera#target and Camera#eye, and use Camera#set to put it all back together. Am I close?
Success! After just a bit of tinkering, I got it working!
It's pretty much as I said above, but I had to experiment to find out how the API wants things done (plus I was a bit rusty at Ruby
I'm going to clean this up and make a new thread for it, just in case someone can use it, but here it is if you, Martin, want to incorporate it (not that you need my amateurish code
) or if someone wants to see what I'm blathering about
You might have noticed... I'm a bit of a ferpectionist.