Closed Thread Icon

Topic awaiting preservation: A couple of little proggies... (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=22265" title="Pages that link to Topic awaiting preservation: A couple of little proggies... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: A couple of little proggies... <span class="small">(Page 1 of 1)</span>\

 
wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 06-21-2004 17:18

I've realised that I've been being a bit whiney (you know what Im talking about InI ), which is ungracious, especially considering our newcomers. So I thought Id give them the opportunity to see why Im whining - cos of my inferioty

Anyway, this is a quick update to my old raytracer. When I first made it, there was a problem with the diffuse shading on the planes, but I wasn't sure how to fix it. A bit of fiddling and guesswork later, I've fiddled it into working (to an extent)

http://wrayal.4t.com/5KWraytracer.html

*Im tempted to post the code, as freeservers sort of mutates your code, but its pretty large, so I guess not *

Couple of piccies from it:




And before you guys start having a go about the whole 5k thing - the engine was 5k, though Iv fiddled with it a bit, but I think it still is 5k if you dont put in the extra shapes, but a lone sphere is really boring, so Iv arbitrarily decided to call it 5k!

Other proggy:
A really crappy little collision detection thing. I dont think Iv seen this before though it is a bit of a bodge and there are a few bugs in it (keep watching to see!). There are also a few more sets of "walls" in the source code to have a look at.

http://wrayal.4t.com/bounce.html


Now u've seen how bad they are, you can see why Im so paranoid about how bad I am !!

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

(Edited by wrayal on 06-21-2004 17:19)

Iron Wallaby
Bipolar (III) Inmate

From: USA
Insane since: May 2004

posted posted 06-21-2004 17:31

Oh come on, you can't suck too bad if you've made a raytracer. ;p Besides, if you think you suck, practice practice practice!

I have a JS raytracer laying around too... I can't remember if I've posted it here though.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 06-22-2004 14:31

Are you referring to your ascii tracer? Yeah, I saw that. Dont know why you dont convert it to colours though - specular highlights look a lot better in high-qual rgb

BTW, anyone know where I can freely host pictures? freeservers doesnt allow direct linking and those two pictures are mildly interesting...

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

Iron Wallaby
Bipolar (III) Inmate

From: USA
Insane since: May 2004

posted posted 06-22-2004 14:36

Aha, I had converted it to colors. ;p

http://www.rpi.edu/~laporj2/raytracer.html

Also, http://www.freewebs.com/ is good for image storage. They don't allow hotlinking, but you can post links to the images and they should load up just fine.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 06-22-2004 14:42

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Virbatem
Nervous Wreck (II) Inmate

From: Perth Western Australia
Insane since: May 2004

posted posted 06-22-2004 15:02

Iron,

Are those two images still located at the links you posted? I could only see a musical score on the front page which is 'hotlinked' to:


http://www.wrayal.4t.com/cgi-bin/framed/2150/ken.bmp



Not Enough Is Better Than Too Much

Iron Wallaby
Bipolar (III) Inmate

From: USA
Insane since: May 2004

posted posted 06-22-2004 15:28

I don't want to threadjack... so if I need to continue this I'll plop it in another thread. Sorry for the inconveniance, wrayal.

quote:
InI said:

IW, this is quite fast... I assume it has something to do with the b/w colors, but it is..
fast. For a decent resolution.


It's mostly because it A) doesn't use OOP like mad (I mean, JS is in it's entirety OOP, but I just use predefined objects and don't create my own), and B) it doesn't do reflections/supersampling/insert-feature-X-here yet.

Doing colors wouldn't slow it down all that much, actually... I don't believe anyway (I'd guess a 20% speed decrease), though I leave it grayscale because the code is more clear that way.

Also, it's about twice as fast in Opera than it is in MSIE and FF. I can render a 256x256 full-resolution image in about 30 seconds.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

(Edited by Iron Wallaby on 06-22-2004 15:29)

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 06-22-2004 19:43

Woah that is prety fast. I guess mine is so slow because my main function is recursive for reflections + has lots of other random bits. Plus there are various bits of inefficient coding. I should find a way of speeding it up .
Also, IW, stop nicking my credit! "Iron, Are those two images still located at the links you posted? "
(Im referring to the fact that those were from mine verbatim )

Anyway, use this link: http://www.wrayal.4t.com/images.html

Iv got a couple of pictures that look a bit better on my laptop, will transfer them over tomorrow after my history exam. Its only sort of a diversion, though, because Ill be stunned if anyone ever writes a useful raytracer in JS with programs like pov-ray around. BTW, if anyone makes any pics, please upload them - Id be interested to see how people fiddle with it!

Wrayal

EDIT: I know there are problems with the diffuse shading on my planes as you can see from the picture of the red sphere, just not sure whats casuing it

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

(Edited by wrayal on 06-22-2004 19:45)

« BackwardsOnwards »

Show Forum Drop Down Menu