This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
augustas656's profile picture

How could I create cinematic zoom with command blocks?

Started by augustas656, 15 January 2015 - 05:11 PM
augustas656 #1
Posted 15 January 2015 - 06:11 PM
First I'll describe my scenario:
I'm trying to make an adventure map and I've enabled command blocks. If anyone ever played AdventureCraft maps for Minecraft Beta 1.7 you might know what I mean. So let's say a person is walking down a path and I want to play a little cinematic when he reaches certain points where the camera view flies smoothly to display what's ahead. I don't want the player to just fly straight, a more curvier path perhaps. First, I know this will have to include math that creates curves, but I have no idea how I could do this, all I know is that it'll involve quadratics. This might be a little off-topic but alternatives to math are also suitable for me, I want to know how I could do this using computercraft. I can use the command block to teleport the player at certain points, and the /tp command accepts decimals but it's not very smooth or atleast I don't know how I can make it very cinematic. Absolutely any help is appreciated even advise to go somewhere to learn something related to generating curves with algorithms, but thing is I don't know where to search, so err. Help?

Kind Regards,
augustas656
KingofGamesYami #2
Posted 15 January 2015 - 07:22 PM
You could use the command block to manipulate blocks: http://minecraft.gamepedia.com/Commands#fill

As for the actual math: Curves and stuff aren't all that hard to calculate, people have made circle drawing scripts that even account for CC pixels being rectangular. It's the actual image warping thats going to be hard.
Lemmmy #3
Posted 15 January 2015 - 09:42 PM
I can't really tell but if you want to move the camera you could try using the speed effect to change the player's FOV. The /tp command is only as smooth as you specify it to be, i.e. 42.1 to 42.2 wouldn't be very good. Maybe more like 42.1, 42.105, 42.11, 42.115 etc.

Could you provide some context so that we can help you a little more for your situation?