Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Convert 3D modele to voxels

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    11

    Convert 3D modele to voxels

    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

  2. #2
    Member Regular Contributor Nowhere-01's Avatar
    Join Date
    Feb 2011
    Location
    Novosibirsk
    Posts
    251
    Quote Originally Posted by bibi2canon_lmd View Post
    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.

    Quote Originally Posted by bibi2canon_lmd View Post
    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.
    Last edited by Nowhere-01; 07-19-2013 at 09:33 AM.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    739
    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 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.

  4. #4
    Junior Member Regular Contributor
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    185
    Quote Originally Posted by bibi2canon_lmd View Post
    I want to convert 3D model from OBJ file to voxels also into OBJ file?
    Is this the effect you're looking for?

    Click image for larger version. 

Name:	Donut_Smooth.jpg 
Views:	69 
Size:	43.6 KB 
ID:	1079 Click image for larger version. 

Name:	Donut_Voxels.jpg 
Views:	98 
Size:	58.7 KB 
ID:	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.
    Last edited by Carmine; 07-19-2013 at 04:17 PM.

  5. #5
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    11
    I need to put it in the obj format because I look to use the interrior point of a model!

  6. #6
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    739
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •