Previous topicNext topic

Shifting a scene in 3D using translate/rotate

Questions, comments, feedback, etc.
Post Reply
Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

Shifting a scene in 3D using translate/rotate

Post 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.
Sadler
Posts: 1125
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

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

Post 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.
Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

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

Post 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.. :)
Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

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

Post 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
Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

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

Post 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
Post Reply