Page 1 of 1

Shifting a scene in 3D using translate/rotate

Posted: Thu Apr 08, 2021 9:57 pm
by Zetboi
Are there any guides on how to shift perspective on a 3D model on input, for example on a cube, making it turn to a new face/side on every input you give it using rotate/translate?
I could imagine it would be of help to make use of the Hold modifier on this.

PS: Not sure of double post.

Re: Shifting a scene in 3D using translate/rotate

Posted: Fri Apr 09, 2021 10:36 am
by Sadler
This is fairly simple. Use a trigger on the source of (say) Y rotation. As a trigger increments by one (360 degrees) scale it by the angle you want - 0.25 for a cube. Since the cube will rotate 90 degrees instantly, you won't see the rotation until you add some smoothing.

Re: Shifting a scene in 3D using translate/rotate

Posted: Sun Apr 11, 2021 1:44 am
by Zetboi
Sadler wrote:This is fairly simple. Use a trigger on the source of (say) Y rotation. As a trigger increments by one (360 degrees) scale it by the angle you want - 0.25 for a cube. Since the cube will rotate 90 degrees instantly, you won't see the rotation until you add some smoothing.
Well, not just rotate by input, that's simple, but holding the angle until the input hits again to whatever you have the current angle set to, then adding another 0.25 for the next face, and so on.
So the cube would essentially start off as 0, then when input hits, it will rotate 0.25, then hold the current value (0.25) until input hits again, adding another 0.25 to 0.50.

But yeah, you can get something quite expressive out of just rotate by input.. :)

Re: Shifting a scene in 3D using translate/rotate

Posted: Sun Apr 11, 2021 2:22 am
by Zetboi
I did it!
A step modifier did the trick!
https://i.gyazo.com/7a31a1903418051fc0d ... a635fb.mp4

https://i.gyazo.com/07069d318c5ff49308b ... a8f901.png

Gonna reply with the 3D on an actual cube when i wake up again. :D

Re: Shifting a scene in 3D using translate/rotate

Posted: Sun Apr 11, 2021 11:09 pm
by Zetboi
So here's the final example, pretty straight forward

https://i.gyazo.com/d65752e68894611aada ... 49b763.mp4

Patch:
https://i.gyazo.com/e371cb9682e4b514098 ... 435f3d.png
Using Globals:
https://i.gyazo.com/6d175ce5ff57d2383cb ... d5d3b3.png

Still need to figure out how to make input work as intended but it's mostly there :D