[Algorithms] mesh to 3D texture?
Brought to you by:
vexxed72
From: Jeff R. <je...@8m...> - 2011-08-25 17:05:26
|
So, suppose that I wanted to voxelize a mesh into a regular 3D grid (a 3D texture on the GPU, fairly low res, something like 64^3). At each point I'd like to have access to color, a (rough) surface normal, and some kind of indicator of whether the space is "empty" or "filled". Is there some clever way I can use GPU rasterization to fill it (ideally keeping the whole process on the GPU)? I thought about rendering the mesh in slices with very narrow front and back clip planes, once for each slice of the 3D texture, but it seems like there could be issues with polygons perpendicular to my z axis not showing up, creating holes... Any advice? -- Jeff Russell Engineer, 8monkey Labs www.8monkeylabs.com |