Voxelers / mcthings

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

Implement the flip_x operation #112

Closed acs closed 3 years ago

acs commented 4 years ago

In order to fix the flip issue, the best approach is to implement the flip operation in mcthings.

What is to flip? You can flip with X (right side to the left), Y (close side to further side) and Z (up side to down side).

Screenshot from 2020-06-30 06-46-10 Screenshot from 2020-06-30 06-50-32 Screenshot from 2020-06-30 06-50-44 Screenshot from 2020-06-30 06-50-58 Screenshot from 2020-06-30 06-51-12

acs commented 4 years ago

Let's focus in flip x that it the initial issue we have when importing vox files to minecraft (the x positive in MV is the opposite in MC).

wool_wall

acs commented 4 years ago

All done for flip_x. If we need to implement flip_y or flip_z I will do it. It is pretty easy.

acs commented 4 years ago

Screenshot from 2020-06-30 08-33-17

acs commented 4 years ago

Let's implement it also for flip_y and flip_z and let's also add tests to be sure all is working in the future.

acs commented 3 years ago

Added tests for flip_x and used with reposition at https://github.com/Voxelers/mcthings_scenes/blob/develop/apps/scene_magicavoxel.py#L68

If we need other flips, I will add them. Time to close this issue.