mesh to 3D texture?
Jeff Russell <[email protected]> Thu, 25 Aug 2011 12:04:58 -0500
| Newsgroups | gmane.games.devel.algorithms |
|---|---|
| Message-ID | <CANLWWykAUyCZGmS__Y=TSMUPZ0Xk-e_d46512ZSCCv06q1SKmw@mail.gmail.com> |
--===============7482097577405867545== Content-Type: multipart/alternative; boundary=00504502d47bf461ee04ab576e50 --00504502d47bf461ee04ab576e50 Content-Type: text/plain; charset=ISO-8859-1 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 --00504502d47bf461ee04ab576e50 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So, suppose that I wanted to voxelize a mesh into a regular 3D grid (a 3D t= exture on the GPU, fairly low res, something like 64^3). At each point I= 9;d like to have access to color, a (rough) surface normal, and some kind o= f indicator of whether the space is "empty" or "filled"= .<br> <br>Is there some clever way I can use GPU rasterization to fill it (ideall= y 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 p= erpendicular to my z axis not showing up, creating holes...<br> <br>Any advice?<br clear=3D"all"><br>-- <br>Jeff Russell<br>Engineer, 8monk= ey Labs<br><a href=3D"http://www.8monkeylabs.com" target=3D"_blank">www.8mo= nkeylabs.com</a><br> --00504502d47bf461ee04ab576e50-- --===============7482097577405867545== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev --===============7482097577405867545== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ GDAlgorithms-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list --===============7482097577405867545==--