PDA

View Full Version : Convert 3D modele to voxels



bibi2canon_lmd
07-19-2013, 09:54 AM
Hello,

I want to convert 3D model from OBJ file to voxels also into OBJ file?
I looked in internet, I didn't find any thing!

Think you

Nowhere-01
07-19-2013, 10:16 AM
Hello,
I want to convert 3D model from OBJ file to voxels also into OBJ file?


obj is for polygon data, you'll need a separate file format to store voxelized data.



I looked in internet, I didn't find any thing!


really? did you look behind the fridge? there's a lot of internet.
or at least, try google "voxelization algorithm", "mesh voxelization" etc.. even googling "Convert 3D model to voxels" gives some useful results. there's plenty of information. but i really doubt you're going to be able to use it. anyway, read some literature about voxelization, and if you're gonna have specific implementation questions relevant to opengl - ask here, and someone might answer.

carsten neumann
07-19-2013, 10:23 AM
The OBJ format stores geometry as polygonal faces, so unless you want to represent each voxel by it's six faces you should pick a different output format. Cyril Carassin (http://maverick.inria.fr/Members/Cyril.Crassin/) does a lot of interesting research with voxel data structures, his papers or references therein should contain descriptions how to generate a voxel representation of an object or scene.
Also, with all the minecraft and clones excitement a while ago, it's really hard to believe there is nothing on the net - yep, here's one tool: minecraft voxel generator (http://www.patrickmin.com/minecraft/).

Carmine
07-19-2013, 10:56 AM
I want to convert 3D model from OBJ file to voxels also into OBJ file? Is this the effect you're looking for?

1079 1080

This was done with a geometric modeler called 'modo'. It could probably be done
with any good geometric modeler or CAD program. modo can import and export
files in .obj format. I think it would be quite difficult to do this in OpenGL.

bibi2canon_lmd
07-19-2013, 12:10 PM
I need to put it in the obj format because I look to use the interrior point of a model!

carsten neumann
07-19-2013, 01:18 PM
I look to use the interrior point of a model!


Hmm, I'm afraid I don't understand what you mean by this. Also, to me it's not clear how the file format (used to store the data) has an effect on what you can do with the data (provided that the format can store all the information you need). Anyway, if the replies you got so far do not provide enough information you'll have to go into more details about what you want to do and what your constraints are.