[Burichan] [Futaba] [Gurochan] [Photon] - [Home]

[Return]
Reply mode
Name
Link
Subject
Comment
File
Verification
Password (for post and file deletion)
Leave empty (spam trap):
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 1000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.

File: 1186216144158.png -(3493 B, 1024x1024) Thumbnail displayed, click image for full size.
3493 No.1   [Reply]

So I'm trying to write a raytracer..
Something is wrong!

>> No.4  
File: 1186216317419.png -(4942 B, 1024x1024) Thumbnail displayed, click image for full size.
4942

That's better!

>> No.5  
File: 1186216338914.png -(6825 B, 1024x1024) Thumbnail displayed, click image for full size.
6825

Colors!

>> No.6  
File: 1186216469863.png -(3566 B, 800x640) Thumbnail displayed, click image for full size.
3566

Something's not quite right with my specular lighting..

>> No.7  
File: 1186218778904.png -(13504 B, 800x640) Thumbnail displayed, click image for full size.
13504

\o/

>> No.8  
File: 1186272093027.png -(37734 B, 800x800) Thumbnail displayed, click image for full size.
37734

Colored lights!

>> No.9  
File: 1186318955079.png -(33697 B, 800x800) Thumbnail displayed, click image for full size.
33697

Strange looking shadows!

>> No.11  
File: 1186359214894.png -(35046 B, 800x800) Thumbnail displayed, click image for full size.
35046

Broken procedural textures!

>> No.12  
File: 1186360348882.png -(31493 B, 800x800) Thumbnail displayed, click image for full size.
31493
>> No.13  

>>12
now make it red :D

>> No.14  
File: 1186460286136.png -(42613 B, 800x800) Thumbnail displayed, click image for full size.
42613

>>13

>> No.15  
File: 1186471629272.png -(56200 B, 800x800) Thumbnail displayed, click image for full size.
56200

Antialiasing!

>> No.17  
File: 1186705516381.png -(98934 B, 640x480) Thumbnail displayed, click image for full size.
98934

I doodled with writing a raytracer once. Shitty it was, but I did it in Haskell and with minimal knowledge of how it's properly supposed to be done.

Pic related.

>> No.18  

Mine's in Haskell too!

>> No.19  

You're in luck then. CSG is surprisingly simple to do in Haskell. As you can see from the green sphere in my shot -- it's been carved up with two more spheres. Fancy detail: the change in shape can be seen in one of its shadows...

>> No.20  

Just out of interest -- how long does yours take to produce a 640x480 image? Mine took around five seconds for the test scene in >>17, singlethreaded (don't know how to parallelize Haskell programs) on a socket 939 AMD64 X2 4400.

Amusingly enough it takes like twenty seconds to compile the Main module with the "-O" flag on. Haskell is serious bizness.

>> No.21  

>>20
5 seconds without antialiasing, 23 seconds with, on a 2.33GHz core2duo.
How many lines of code is yours? Mine is around 280 right now..

>> No.22  

987, but I use two newlines between toplevel definitions and the thing is split up into five or six modules.



Delete Post []
Password