![]() |
|
|
#1 (permalink) |
|
VIPIVIPIV
|
It's based off the idea of rendering using raymarching on distance functions, except I bastardized it to render metaballs. Take a look if you like, the magic is in dffs.txt. I should probably rewrite it to use the newton-rapheson method for root finding, but oh well.
Disclaimer: No warranty implied. If it destroys your computer, tough luck :p |
|
|
|
|
#4 (permalink) | |
|
VIPIVIPIV
|
Quote:
I code it's based on comes from this program http://www.pouet.net/prod.php?which=49796 So if that works, then I'm at a loss as to why this one doesn't. Oh, it also requires PS3.0, so if you have a GPU older than Geforce 6000 or Radeon x1000 series, it won't work. |
|
|
|
|
|
#6 (permalink) |
|
VIPIVIPIV
|
Ok, I checked exactly what dlls the program loads, and I've changed it to statically link the ones people might not have. If someone could be so kind as to try it.
![]() Also, because of this, it's now too big to attach here, try this link: http://www.mediafire.com/?wgmh3j2mnjc Last edited by Incomplete Dude; 14-10-2008 at 01:15 AM. |
|
|
|
|
#8 (permalink) |
|
VIPIVIPIV
|
ok, well, the PrtScn button simply refuses to work while OpenGL is running. I think it's a Vista thing. Either way, I used the corona image library to manually take a screenshot, and here it is.
Some explaination. The background is simply abs(viewDirectionNormal), but on the object green indicate a greater number of iterations used in evaluating the surface, while red is standard phong lighting. You might also notice some slight banding on the object, but that's simply because my algorithm is a major hack lacking in accuracy and precision. EDIT: Change the photo host to imageshack because the forum bastardizes the image too much. ImageShack - Hosting :: imagenv7.png |
|
|
|
|
#9 (permalink) |
|
VIPIVIPIV
|
Ok, I did some improvements. I drastically improved the performance and accuracy by using newton's method. There is no longer a penalty for finding edges, computation expense is pretty uniform. The previous version was doing in 64 steps what I now do in 16. I've also added shadowing, ambient occlusion, more complex geometry and screenshot capability. Attached are some screenshots, again green indicating the number of iterations required to find the surface.
ImageShack - Hosting :: image2hk4.png ImageShack - Hosting :: image9nk2.png |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rosetta Stone Program | Pramrider | Computers and Games | 17 | 30-06-2008 07:15 PM |
| This is a silly reason to start a thread, but... | Kovalchuk | Off-topic | 19 | 23-06-2008 07:42 PM |
| QuickBasic - Roulette Program Help | DarkSunDS | Computers and Games | 0 | 12-06-2008 08:56 PM |