Rotating OBJ on all three axis

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
furryhell
Posts: 2
Joined: Thu Nov 11, 2021 11:18 pm

Rotating OBJ on all three axis

Post by furryhell »

Hey guys

I was searching for an answer on the web but somehow found zero results so either people don't really work with 3D in moho, or I'm stupid, anyway...

Is it possible to rotate an obj around all three axis (x,y,z)?

Because no matter what only x and y works with layer rotation, which makes sense since a 2d image can only rotate on two directions, but is it possible to do it on the z axis somehow other than rotating the camera (which is bad because it ruins the whole scene especially if you work with both 2d and 3d or at least it generates a lot of extra work) ?
Image

Thank you in advance
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Rotating OBJ on all three axis

Post by SimplSam »

There is a tool called "Rotate Layer XY", it is 3 buttons to the right of the "Layer Transform" tool. This allows you to rotate a Layer / 3D object about the other 2 axis.

For the record 2D images in Moho normally rotate about the Z-Axis, which is Red arrow in your image. X-Axis is Blue and Y-Axis Green.
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
Maestral
Posts: 584
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

Re: Rotating OBJ on all three axis

Post by Maestral »

I believe OP figured rotation on those 2 where Z, the red axis in his depiction, is available on the Layer transform tool / further on the right - Position xyz | Scale xyz | Angle.
Could be inconvenient but all 3 are, in fact, available.

Mind the position of the origin point.
By default, it's either inherited from the model or by Moho, placed in the center of the layer. Depends on your settings but that would determine the center of rotation.
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Rotating OBJ on all three axis

Post by SimplSam »

Yeah - you are probably right. I did make an update ages ago to the Layer Transform tool to have all 3 rotations on the same tool, but then I went crazy with some other mods and messed things up.
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
Greenlaw
Posts: 10383
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Rotating OBJ on all three axis

Post by Greenlaw »

For this sort of thing in a 3D program I often animate rotations on separate parent nulls or locaters. This makes it easier to manage the direction and velocity of each rotational axis, and it avoids the issue of gimbal lock.

Even though Moho does not support null objects, I think you can do the same by nesting the object into multiple groups and rotating each group on a single and different axis. If you create smart bone actions for each group layer, you should have a lot of precise control for the animation.

Let me know if this works for your as I don't think I tried this in Moho myself.
User avatar
slowtiger
Posts: 6237
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Rotating OBJ on all three axis

Post by slowtiger »

I can rotate a layer around all 3 axis. If it's a group layer, it will faithfully rotate everything inside.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
furryhell
Posts: 2
Joined: Thu Nov 11, 2021 11:18 pm

Re: Rotating OBJ on all three axis

Post by furryhell »

Thanks for the help guys,

Somehow the first time I try to rotate it with the transform tool it changed perspective and I got confused, but you were right it works now, the way it should escpecially with bones, however I noticed something not sure if it's intended or a bug but when I move my obj around the middle point of the camera view it slightly changes the perspective, like:
Image
Image
Image


Can I do something against it? (I tried making bones, grouping and other methods but all has this same effect. Like it rotates around the middle of the camera view as there would be a pivot point there
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Rotating OBJ on all three axis

Post by synthsin75 »

Make sure the layers have the same z-depth using orbit view tool.
Post Reply