Git Product home page Git Product logo

Comments (7)

topskychen avatar topskychen commented on August 20, 2024

Thanks for trying the voxelizer. I have a quick try and it works for me, as shown in the below information. Especially we can see the solid mode has much more voxels are written out than surface mode (13176 vs 3656).

Solid Mode:

./bin/voxelizer --input=../data/sphere.obj --output=../playground/sphere_solid.binvox --verbose=true --grid_size=28
voxelizer init...
mesh number: 1
faces : 960
vertices : 679
voxel size: 1.428579, 1.428579, 1.428579
grid size: 28, 28, 28
space: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
mesh bound: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
voxel bound: (0 0 0), (27 27 27)
init output bound done.
Init done.
voxelizer initialization consumes 340 ms.
-------------------------------------------
surface voxelizing...
done.
surface voxelization consumes 1 ms.
-------------------------------------------
solid voxelizing...
round 1...
round 2...
done.
solid voxelization consumes 1 ms.
-------------------------------------------
writing voxels to file...
dim : 28 x 28 x 28
wrote 13176 set voxels out of 21952, in 2346 bytes
bounds are: (0 0 0), (27 27 27)
writing file consumes 2 ms.

Surface mode:

./bin/voxelizer --input=../data/sphere.obj --output=../playground/sphere_surface.binvox --mode=surface --verbose=true --grid_size=28
voxelizer init...
mesh number: 1
faces : 960
vertices : 679
voxel size: 1.428579, 1.428579, 1.428579
grid size: 28, 28, 28
space: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
mesh bound: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
voxel bound: (0 0 0), (27 27 27)
init output bound done.
Init done.
voxelizer initialization consumes 332 ms.
-------------------------------------------
surface voxelizing...
done.
surface voxelization consumes 1 ms.
-------------------------------------------
writing voxels to file...
dim : 28 x 28 x 28
wrote 3656 set voxels out of 21952, in 4526 bytes
bounds are: (0 0 0), (27 27 27)
writing file consumes 2 ms.

May I have more information?

  1. What is the command line you used to run the voxelizer?
  2. What is the log information produced by the voxelizer?
  3. Do you use the testing file in this project? If no, could you give the test file to me for further testing?

Archive.zip Attached is the binvox files the voxelizer generated.

from voxelizer.

HEROhaoyu avatar HEROhaoyu commented on August 20, 2024

Thank you for your answer! When I try, I just follow readme step by step without special commands. In addition, I checked the files you provided and found that both output files are hollow. What I want to achieve is that voxels are filled into the interior of physics, not just the surface.

from voxelizer.

topskychen avatar topskychen commented on August 20, 2024

May I know which software you are using to check the output binvox file?

from voxelizer.

HEROhaoyu avatar HEROhaoyu commented on August 20, 2024

I refer to this project https://github.com/EchoTHChen/binvox_vox_obj first convert binvox format to Vox format, and then use magicavoxel to convert it into obj file.

from voxelizer.

topskychen avatar topskychen commented on August 20, 2024

Do you mean that you are viewing the obj file? If you are, usually it is a mesh object (only the surface is left).

from voxelizer.

HEROhaoyu avatar HEROhaoyu commented on August 20, 2024

Thank you for your reminding. I didn't realize this problem before. Then I'll study it further.

from voxelizer.

topskychen avatar topskychen commented on August 20, 2024

Cool. I will close this issue. Welcome to reopen if there is still an issue.

from voxelizer.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.