ADISC  
Answers Wiki Galleries Live Chat Links Referrals

Go Back   ADISC > Happy New Steer > Off-topic > Computers and Games
Register Blogs FAQ Members List Social Groups Mark Forums Read

Closed Thread Post New Thread
 
LinkBack Thread Tools Display Modes
Old 05-10-2008   #1 (permalink)
VIPIVIPIV
 
Incomplete Dude's Avatar
 
Join Date: Mar 2008
Location: Brampton, Ontario, Canada
Age: 22
Posts: 773
Threads: 37
Gallery Uploads: 16
Wiki Edits: 3
Blog Entries: 2
Default Silly OpenGL Shader Program I Wrote

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
Attached Files
File Type: zip Chocolate.zip (71.1 KB, 13 views)
Incomplete Dude is offline  
Old 05-10-2008   #2 (permalink)
Regular
 
kevintje's Avatar
 
Join Date: Jan 2008
Location: Belgium
Age: 21
Posts: 291
Threads: 3
Gallery Uploads: 43
Wiki Edits: 8
Blog Entries: 7
Reputation: 2
Default

can`t open it...

it sais the application configuration is not correct, and that reinstalling the program MIGHT solve the problem...

are you sure it`s winXP compatible?
kevintje is offline  
Old 05-10-2008   #3 (permalink)
mm3
Metal Militia
 
mm3's Avatar
 
Join Date: Mar 2008
Location: New York
Age: 17
Posts: 1,011
Threads: 62
Gallery Uploads: 3
Wiki Edits: 3
Default

O___O It BSOD'd one of my laptops. Not gonna try it on another one! x_x
mm3 is offline  
Old 05-10-2008   #4 (permalink)
VIPIVIPIV
 
Incomplete Dude's Avatar
 
Join Date: Mar 2008
Location: Brampton, Ontario, Canada
Age: 22
Posts: 773
Threads: 37
Gallery Uploads: 16
Wiki Edits: 3
Blog Entries: 2
Default

Quote:
Originally Posted by kevintje View Post
can`t open it...

it sais the application configuration is not correct, and that reinstalling the program MIGHT solve the problem...

are you sure it`s winXP compatible?
Of course it is, I didn't do anything special to it. I really don't know why it doesn't work.

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.
Incomplete Dude is offline  
Old 05-10-2008   #5 (permalink)
Regular
 
kevintje's Avatar
 
Join Date: Jan 2008
Location: Belgium
Age: 21
Posts: 291
Threads: 3
Gallery Uploads: 43
Wiki Edits: 8
Blog Entries: 7
Reputation: 2
Default

I tried it again on my own computer at home, same problem, can't open it cuz the configuration the program is not correct, reinstalling the application might solve the problem.

I guess you need additional software/libraries to open it :s
kevintje is offline  
Old 06-10-2008   #6 (permalink)
VIPIVIPIV
 
Incomplete Dude's Avatar
 
Join Date: Mar 2008
Location: Brampton, Ontario, Canada
Age: 22
Posts: 773
Threads: 37
Gallery Uploads: 16
Wiki Edits: 3
Blog Entries: 2
Default

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.
Incomplete Dude is offline  
Old 06-10-2008   #7 (permalink)
Not your typical kid
 
chevre's Avatar
 
Join Date: Jan 2008
Location: US
Age: 24
Posts: 941
Threads: 25
Wiki Edits: 37
Default

post some screenshots? We Linux users can't try it
chevre is offline  
Old 06-10-2008   #8 (permalink)
VIPIVIPIV
 
Incomplete Dude's Avatar
 
Join Date: Mar 2008
Location: Brampton, Ontario, Canada
Age: 22
Posts: 773
Threads: 37
Gallery Uploads: 16
Wiki Edits: 3
Blog Entries: 2
Default

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
Incomplete Dude is offline  
Old 07-10-2008   #9 (permalink)
VIPIVIPIV
 
Incomplete Dude's Avatar
 
Join Date: Mar 2008
Location: Brampton, Ontario, Canada
Age: 22
Posts: 773
Threads: 37
Gallery Uploads: 16
Wiki Edits: 3
Blog Entries: 2
Default

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
Incomplete Dude is offline  
Old 08-10-2008   #10 (permalink)
Regular
 
kevintje's Avatar
 
Join Date: Jan 2008
Location: Belgium
Age: 21
Posts: 291
Threads: 3
Gallery Uploads: 43
Wiki Edits: 8
Blog Entries: 7
Reputation: 2
Default

is that flubber? O.o

anyway, I still can't open the compiled version (it opens, but gives a white screen and stops responding), also, you included main.c, but to compile it myself, it needs to have GL/glew.h too, wich is not included

seems nice tho'
kevintje is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

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


All times are GMT. The time now is 08:07 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Site content is Copyright ADISC.org 2008.
Content from this site may not be reproduced anywhere else
without the advance written permission of the webmaster, or author.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16