Leo Oz

Members
  • Content count

    13
  • Joined

  • Last visited

Community Reputation

84 Neutral

About Leo Oz

  • Rank
    Member
  1. [quote name='MrOMGWTF' timestamp='1347556918' post='4979782'] First, render your model to a texture. Vertex shader: [code] // Authors : Sinje Thiedemann, Niklas Henrich, // Thorsten Grosch, Stefan Mueller varying vec3 P; void main() { // Transform atlas texture coordinate into NDC gl_Position = vec4((gl_MultiTexCoord0.xy * 2.0) - vec2(1.0), 0.0, 1.0); // Pass world-space position to fragment shader P = (gl_ModelViewMatrix * gl_Vertex).xyz; } [/code] Frag shader: [code] varying vec3 P; void main() { // Store world-position in atlas texture gl_FragColor = vec4(P, 1.0); } [/code] Then, for each pixel, to something like this: [code] foreach pixel: addVoxelAtPosition(pixel.color); [/code] Got it? [/quote] Man, I got it, thanks. But how can I use voxel data in program code? Do you read my question? I asked about "c# structure class to store voxel data and be able for further using in code". Capish?
  2. [quote name='MrOMGWTF' timestamp='1347549272' post='4979746'] Make sure your model has uv coordinates. Render your model to a texture. Set each vertex position to its vertex coordinates. Set each vertex color to its position. For each pixel, create a voxel at the position from pixel's color. [/quote] man, I don't catch what you have in mind! Could you show me class structure?
  3. [quote name='Hodgman' timestamp='1347547471' post='4979734'] The above 3 links all have public source code, is that useful? [/quote] Voxelizer is useful, but there is used octrees. I wish realization included arrays.
  4. Man, It will be good if you give any reference or fresh idea. Capish?
  5. [quote name='6677' timestamp='1347476053' post='4979416'] [quote name='PlatinumOz' timestamp='1347292881' post='4978611'] Guy, thanks, but it's not exactly what I need. [/quote] Its exactly what you ASKED for. You never gave us any indication of language, IDE, API or anything. You were given exactly what you asked for [/quote] Man, thanks, agree, It's now right of me. But take it easy man.
  6. [quote name='DracoLacertae' timestamp='1347483978' post='4979454'] Look up the Sparse Voxel Octree. It's probably the best way to squeeze voxel data down to a reasonable size. What's your end goal of the project? What do you want to use the distance fields for? [/quote] DracoLacertae, thanks so. I'm planing to use distance field for definition distance between objects. It's very difficult to build distance field for Sparse Voxel Octree, 3D array is more better I think. If you have another mind about it, please, post me material reference.
  7. No, man. I don't need rendering voxelized object. I need structure of voxelizard object in program code, for exapmle, type - array of byte.
  8. Guy, thanks, but it's not exactly what I need. Because I'm programming in Visual Studio, and maximum what I wish get it's a API or some dll. I need array or grid of voxels as result for further using in my program, not only for rendering and visualization purposes. Do you know any good AP, included functionality using 3D voxel model fields? Thanks one more time.
  9. Come on, ladies and gentlemen !
  10. Voxel API Constructing

    Guys, I need your advise ))
  11. Good afternoon! Please, tell me, how can I convert a 3D mesh model to a voxel field array? Thanks.
  12. Hello, everybody! The 3D scene consist of 20 objects based on polygonal model structure. I wanna convert polygonal objects to voxel data structure (i think it's array 3D map) . And voxel objects will be used for constructing distance field of all environment world. Please, tell me, do you have any ideas about using API to convert polygonal mesh to voxel structure for further using in code (not rendering) or any algorithms and methods? Thanks.
  13. Hello, everybody! The 3D scene consist of 20 objects based on polygonal model structure. I wanna convert polygonal objects to voxel data structure (i think it's array 3D map) . And voxel objects will be used for constructing distance field of all environment world. Please, tell me, do you have any ideas about using c# structure class to store voxel data and be able for further using in code or any algorithms and methods? Do you know any API or wrap that could realize this functionality? Thanks.