pouët.net

Go to bottom

3D model to volume

category: general [glöplog]
trace: I love solutions like that. I've written a couple of maxscripts to do my prec...uhm... datasets in similar ways before :)
added on the 2008-02-18 20:28:34 by kusma kusma
very good. very clever solution to do it with boolean.

unfortunately my 3dsmax knowledge can only get me to render a static cube on a textured plane.
added on the 2008-02-18 21:22:35 by Navis Navis
kusmabite - sounds exactly like the algorithm implemented by nvidia for their volume-rendering stuff

http://developer.download.nvidia.com/books/gpu_gems_3/samples/gems3_ch30.pdf
added on the 2008-02-18 21:30:42 by hornet hornet
Uh. GPU noodling seems like fun, gotta try doing that some time.
Navis: also here.
Of course trace's method seems the best / more straightforward.
added on the 2008-02-18 23:27:47 by bdk bdk
kamls solution is a good one. when you have the voxel filled with the triangles, searching for filled surfaces is trivial.

And, if you need antialiasing (like a ct scan) you can do it with a big voxel and the resizing down...

added on the 2008-02-18 23:43:39 by texel texel
*then
added on the 2008-02-18 23:44:22 by texel texel
i'm sure this is an absolutely stupid question, but what would you want to do all this for?
added on the 2008-02-19 08:20:48 by skrebbel skrebbel
skrebbel: Hopefully Navis will turn it into yet another kick-ass effect in yet another kick-ass demo! :)
added on the 2008-02-19 09:31:25 by ekoli ekoli
skrebbel: because we can!
Quote:
Niels, did you use this technique while developing 'My Horsey & Me'? ;)


i knew it -- porting that game was gonna get me into trouble sooner or later
added on the 2008-02-19 09:54:36 by superplek superplek
Or modify a bit some kd-tree traversal code to get *all* intersection points between the ray and a mesh, setup your rays for orthographic projection on one of the sides of your bounding box, and there you go. It's both easy and fast.
added on the 2008-02-19 09:57:41 by nystep nystep
actually this is not for a demo but to construct a very 'weird' volume dataset. I can't say more but when I finish I'll show you..

(IF it works !)
added on the 2008-02-19 10:04:55 by Navis Navis
Quote:
i knew it -- porting that game was gonna get me into trouble sooner or later

More than you know - I bet Rasmus owns a copy.
added on the 2008-02-19 10:50:05 by Shifter Shifter
probably already mentioned is this 2d method.. you (software)rasterize the
mesh the usual way but for every pixel you store all of the depths written to that pixel.. now you can simple get a silouhette graphics by filling every z span in every pixel in every row taking the z depth as y and the x position as x of the sliced image.. if the mesh is solid and not intersecting this should work. i suppose that the spans not overleap, but maybe that is wrong.
btw ofcourse you must sort the z depths for the spans and take 0,1 for the first span 2,3 for second and soon. its the first thing which came into my mind and that probably it doesnt work.
added on the 2008-02-19 13:10:31 by mad mad
Aesterozoa does this. The algorithm is effectively 3d-equivalent of the one used in dose and vihreät.
added on the 2008-02-19 18:58:04 by 216 216
mad: do you mean taking the Z-depth of the back- and front-faces so you get some sort of "volumetric" rendering?
added on the 2008-02-19 19:14:27 by Gargaj Gargaj
back front face rendering isnt really required (infact there is the possibility to render intersecting objects by this approach). store for every pixel all z values of every polygon accessing this pixel.. then sort this list contained in every pixel.. and draw the zspans contained in every pixel (consisting of the multiple z values you stored in every pixel).
added on the 2008-02-20 09:53:18 by mad mad
BB Image
BB Image
added on the 2008-02-20 10:15:26 by doomdoom doomdoom
Is that it?
added on the 2008-02-20 10:15:39 by doomdoom doomdoom
lol. one of the most unsexy things I have ever seen... except early FLIC pr0n animations probably.
added on the 2008-02-20 12:37:39 by raer raer
hah voxlap pr0n... ftw or wtf?
added on the 2008-02-21 00:59:56 by bdk bdk
suxlap
added on the 2008-02-21 10:06:43 by superplek superplek

login

Go to top