2 is similar to the behavior that blender uses if you press 'r' once.
Going into instance menu I get strange numbers on xyz axis rotation that don´t seem to correspond to degrees or radians or anything I know.
It is represented in Euler angles (in radians).
Code: Select all
osg::Quat xr = osg::Quat(-euler, osg::Vec3f(1,0,0));
osg::Quat yr = osg::Quat(-euler, osg::Vec3f(0,1,0));
osg::Quat zr = osg::Quat(-euler, osg::Vec3f(0,0,1));
return zr * yr * xr;
The version we use is first rotated around the x-axis, then the y-axis, then the z-axis.
Question though. Can I set it to rotation mode, set it to z coordinate and then punch in the number 45 (degrees)? I would like the option of punching in numbers instead of dragging mouse because this allows for precision in placing a lot of things... Same with object movement. I sometimes click in the wrong place I guess and the object doesn´t get dragged along the correct axis. I would love to be able to select an instance, lock it to Z axis and drag it down.
I think it may be a good idea to add some shortcuts for moving/rotating with or around a specific axis. The ability to punch in numbers sounds nice, but to be honest, I don't think it would be simple to implement because you would have to change the way input currently works (which is not something I want to do again).
This feature is currently under development with along with instance scaling.