Voxelers / mcthings

A Python framework for creating 3D scenes in Minecraft and Minetest
Apache License 2.0
57 stars 10 forks source link

Animate some of the vox models in our demo world #118

Closed acs closed 3 years ago

acs commented 3 years ago

We need to do it before mid August when a podcast about it appears.

acs commented 3 years ago

We need to start from #114 and select 1 model to rotate it. Once we have it, we can try to do the same with some random selection so it is a kind of surprise the models that rotate.

Or we can just select the best models in order to rotate them.

acs commented 3 years ago

First results:

vox_rotating

Already uploaded to:

https://github.com/Voxelers/mcthings_scenes/commit/b8d232fe54da2c4c2ded6ffdacac1cf15130ba1f#diff-bbf4bbb577fd449f3c1bec54841ba931R47

using version 0.52.2 of mcthings which includes some fixes.

acs commented 3 years ago

Next steps:

acs commented 3 years ago

We can not rotate, at least easily and with good results, several models at the same time. But we can do it in a sequence:

vox_rotating_2

acs commented 3 years ago

To deploy the animation the best thing is to create a a venv and install in it the dependencies and then execute the script.

It is interesting to explore the execution of several script at the same time. But at some place they will be serialized to reflect in the scene the results. So I am not sure about the results of that. And it depends on how the raspberry pi mod has been implemented.

The results executing two times the scene:

vox_rotating_4

acs commented 3 years ago

My guess is that we must avoid trying to move at the same time several models, so we can do all the animation in the same script. We can select a region of the world that will be animated. Probably, just selecting 10 models (the most attractive ones and with details front, back and at sides, so the rotation shows all the details).

I will do it in a specific region because those models will need more space between them so they can rotate without collisions.

acs commented 3 years ago

Ok, next step is:

During the testing we will check that the raspberry pi mod works with 1.16.1

acs commented 3 years ago

Ok, we have now the API working in 1.16.1. So we just need to start the plugin in the server in a venv.

acs commented 3 years ago

script installed and running. All done using pip packages and pretty easy.

vox_rot_2_server

The script is running in a screen. I will monitor it, but probably it will work without issues for long periods of time (the logic is pretty simple).

acs commented 3 years ago

I will check later that all is ok later and close this issue!

acs commented 3 years ago

Ok, let's check that the animation continues and the state of the server with it running.

It is running without issues.

Screenshot from 2020-08-08 00-40-40

Screenshot from 2020-08-08 00-42-04