Re: Fw: [Dev-C++] marching cubes (3D)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2004-04-14 15:41:56
|
Have you looked at the Graphics Gems book series? They contain a lot of algorithms, and for some of them there are available code. I would be very surprised if they don't contain an example of the marching cubes algorithm since it is very common for rendering volumetric data. /Per W On Wed, 14 Apr 2004, michele wrote: > > > hi Jan, > if you are interested... > What I have to do is to render a 3D volume from sampled points (certain conditions define that volume)... > > So what I do is to divide the 3D space in a 3D grid and to test each point of this grid to know if it is inside or outside my suface... > Regards > (if you have some suggestions let me know! thanks) > > > > ----- Original Message ----- > From: Jan Ringos > To: michele > Sent: Friday, April 09, 2004 6:44 PM > Subject: Re: [Dev-C++] marching cubes (3D) > > > Very interesting. But honestly I see no use for it. In game I would instead use something like height-map or model with clipping definitons. > But I don't know what specific are you want to do with it. Anyway It shouldn't be too difficult to implement exact use. > > --- > Jan Ringos, Tr...@mx... > http://Tringi.Mx-3.cz > > ----- Original Message ----- > From: michele > To: Jan Ringos ; DEV-C++ > Sent: Friday, April 09, 2004 10:18 AM > Subject: Re: [Dev-C++] marching cubes (3D) > > > Hi... > > "The marching cubes algorithm is used in volume rendering to construct an isosurface from a 3D field of values. > The 2D analog would be to take an image, and for each pixel, set it to black if the value is below some threshold, and set it to white if it's above the threshold. Then smooth the jagged black outlines by skinning them with lines..." [James Sharman] > > if you (and someone else) want to read some interesting articles about marching cubes: > Introduction: > http://www.exaflop.org/docs/marchcubes/ind.html > > Article with some c code: > http://www.cfxweb.net/modules.php?name=News&file=article&sid=199 > (more available at http://matrix.netsoc.tcd.ie/~nash/metaballs/src/ gently by Nicholas: nn...@st...) > |