Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .binvox files being saved with the inverse scale #4710

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Unreal/Plugins/AirSim/Source/WorldSimApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ bool WorldSimApi::createVoxelGrid(const Vector3r& position, const int& x_size, c
output << "#binvox 1\n";
output << "dim " << ncells_x << " " << ncells_z << " " << ncells_y << "\n";
output << "translate " << -x_size * 0.5 << " " << -y_size * 0.5 << " " << -z_size * 0.5 << "\n";
output << "scale " << 1.0f / x_size << "\n";
output << "scale " << x_size << "\n";
output << "data\n";
bool run_value = voxel_grid_[0];
unsigned int run_length = 0;
Expand Down