Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export 3D pointcloud as a rendered Voxel grid?

Tags:

meshlab

I have a scene consisting of several colorized voxels. When opening it in meshlab all points are plotted as 2 dimensional squares. Is it possible to render a scene where the squares are replaced by 3D cubes with additional lightning / reflectivity in meshlab?

This is what I'm getting so far:

enter image description here

I rather want something like this:

enter image description here

like image 593
mcExchange Avatar asked Jan 11 '18 19:01

mcExchange


People also ask

What is a 3D voxel grid?

A voxel grid geometry is a 3D grid of values organized into layers of rows and columns. Each row, column, and layer intersection in the grid is called a voxel or small 3D cube.

How do you Voxelize a 3D model?

To convert a 3D model into voxels you must first export your 3D model as the . OBJ type. Then you will import the 3D model into the MagicaVoxel editor using the built-in mesh to voxel converter to make a voxel model.


1 Answers

I wrote a voxel plot script for blender. https://github.com/cagcoach/BlenderPlot/

BlenderPlot takes .mat files as input and generates a scene containing the voxel blocks. Afterwords you can render a worderfull image of your data. FYI you most probably need to adjust the camera position, and the rotation as well as the enlightment by hand.

This is an output created from random data. BlenderPlot

like image 69
cagcoach Avatar answered Oct 19 '22 17:10

cagcoach