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

windows environment seems cannot run binox #21

Closed
TowerTowerLee opened this issue Jul 8, 2019 · 3 comments
Closed

windows environment seems cannot run binox #21

TowerTowerLee opened this issue Jul 8, 2019 · 3 comments

Comments

@TowerTowerLee
Copy link

TowerTowerLee commented Jul 8, 2019

When running the function binvox(), DataSetPrep.py reports an error saying that some buffers can be used under Linux only. I copied the specific command just to solve the path problem, but now I'm not sure if it can still succeed under Window environment.

Here is the code I write:

command = "binvox -d 100 -pb data/objects/chair/6db2255a51caf84e823e7e244bf84209.obj"
os.system('%s %s' % (command, ''))

And here is part of the error report:

......
Read 6840 faces, 1774 vertices.
Mesh memory use is 17888 KB (17 MB)
Mesh::normalize, bounding box: [-0.224797, -0.421669, -0.147179, 1] - [0.224797, 0.421669, 0.147179, 1]
longest length: 0.843338
normalization transform:
(1) translate [0.224797, 0.421669, 0.147179, 1], (2) scale 1.18576, (3) translate [0, 0, 0]
got mesh bounding box [-0.224797, -0.421669, -0.147179, 1] - [0.224797, 0.421669, 0.147179, 1]

voxel model dimension: 200
Error: sorry, off-screen buffers can be used under Linux only

@TowerTowerLee TowerTowerLee changed the title binvox seems can only windows environment seems cannot run binox Jul 8, 2019
@TowerTowerLee TowerTowerLee reopened this Jul 8, 2019
@mallorbc
Copy link

mallorbc commented Jul 8, 2019

what happens when you try the command giving the complete path to the binvox binary? Such as C:\binvox_download\binvox -d 100 -pb data/objects/chair/6db2255a51caf84e823e7e244bf84209.obj

@TowerTowerLee
Copy link
Author

what happens when you try the command giving the complete path to the binvox binary? Such as C:\binvox_download\binvox -d 100 -pb data/objects/chair/6db2255a51caf84e823e7e244bf84209.obj

I have tried to use this method like you said,but it still doesn't work and problem is also that problem.

@TowerTowerLee
Copy link
Author

what happens when you try the command giving the complete path to the binvox binary? Such as C:\binvox_download\binvox -d 100 -pb data/objects/chair/6db2255a51caf84e823e7e244bf84209.obj

I just solved this issue by replace the command 'pb' by 'c' like this:
'F:/laboratory/3Dpaper/3D-IWGAN-master/3D-Reconstruction-Image/binvox -d 100 -c data/objects/chair/6db2255a51caf84e823e7e244bf84209.obj'
And the binvox file can be created.
Thank you again for checking my questions and answering them patiently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants