This program converts 3D models in OBJ format into a voxelized representation using an octree-based algorithm. It is able to:
- Read 3D models from OBJ files
- Voxelize them using determined tree depths
- Visualize the results with an interactive 3D viewer
- Export the voxelized data
The program is built in Java with a GUI for visualization and supports concurrent processing for efficient voxelization.
Java Runtime Environment (JRE) 8 or higher
Not needed because the program is already compiled and ready to run. The .class files are located in the bin/ folder.
-
Open Command Prompt/Terminal and navigate to the project directory:
cd Tucil2_13524006 -
Run the program:
java -cp bin Main
-
Follow the instructions:
- Enter the path to your OBJ file
- Enter the maximum tree depth (use a positive integer)
- OBJ file path: Provide the full path to your 3D model file
- Maximum depth: Specify the maximum depth for the octree voxelization
- Higher depth = finer voxelization (slower)
- Lower depth = coarser voxelization (faster)
- Typical range: 3-10
After processing, the program provides you with informations about:
- number of voxels
- number of vertices
- number of faces
- number of nodes created per depth
- number of nodes unexplored per depth
- octree depth
- processing time
- path to the result .obj file
then opens an interactive viewer where you can:
- Rotate: Click and drag
- Zoom: Use the scroll wheel to zoom in/out
Gabriella Botimada Lubis
13524006
Institut Teknologi Bandung