Humor Random Comments Thread

Continuing work on a Java raytracer. (for fun and as a learning experience)



Currently implemented:
  • Ambient light
  • Omnidirectional light (currently only one)
  • Reflections
  • Shadows
  • Very simple antialiasing by 'supersampling'
To be implemented in 'near-future':
  • Multiple lights
  • Refraction
  • More shapes (probably starting with a geometric plane for everything to rest on)
At the moment, the only objects are spheres. Also, there are probably a number of bugs I haven't caught yet. I just tonight got multiple objects with reflections. My code is VERY messy after tonight but at least it works. :thumbup:
I currently have it draw one line at a time. It uses a for loop for each pixel in the line, and then goes on to the next line in the next 'timestep'. Once all lines are drawn, it does basically the same thing to draw the smaller 'antialiased' image. On my computer (which is a bit old), in a scene with just two objects, it draws an 800x600 image and then an antialiased 400x300 image in just over 20 seconds. On the computers at my school, I think it's under 10 seconds. I didn't set a limit on the number of reflections and I can see about five reflections back and forth at one spot on one of the spheres.

Long-term goal:
Something similar to this image which was also made with a Java raytracer.
http://en.wikipedia.org/wiki/File:Recursive_raytrace_of_a_sphere.png
 
Last edited:
ulimwengu means universe in suahili :D
 
Hahaha, my computer sucks so much. I just tried the same raytrace program on my newer duel core computer and it only takes about 3 seconds. And just 8 seconds for to draw a 1600x1200 image and then the smaller 800x600 image.
EDIT: Wow. On my good computer, I can draw a huge 3200x2400 then highly antialiased 800x600 image in only 20 seconds. (compare that to my other computer taking 20 seconds to draw 800x600 and 400x300)

---------- Post added at 05:29 PM ---------- Previous post was at 05:12 PM ----------

Here's a pic. 1900x1000, 'antialiased' from an image with width and height four times larger. ~110 seconds to draw.
You can see several very faint reflections in the blue sphere. In the red one, you can see a reflection including a reflection of a shadow.
raytrace.png
 
Last edited:
A blog record with pictures of a Foxtrot class submarine turned into a naval museum (berthed at Vytegra):

http://russos.livejournal.com/679304.html#cutid1

On the inside, it is really 1:1 copy of the German XXI submarine. :lol: Thought the differences have been bigger, since it looked much more different on the outside (compared for example to the USS Nautilus, which looked still like a XXI on the outside, despite having a nuclear reactor installed). But except the labels, all is looking the same, the only big change is in the torpedo room, it lacks the electric reloading mechanism, and instead uses a manual system.
 
On the inside, it is really 1:1 copy of the German XXI submarine. :lol: Thought the differences have been bigger, since it looked much more different on the outside (compared for example to the USS Nautilus, which looked still like a XXI on the outside, despite having a nuclear reactor installed).

It's not a big surprise, I believe, the transition from 641 to 641B (Foxtrot to Tango) is where the similarity with the XXI was finally dropped. I'm not really a big submarine geek, so I may be wrong here.

But except the labels, all is looking the same, the only big change is in the torpedo room, it lacks the electric reloading mechanism, and instead uses a manual system.

Perhaps you do know why the diesel at this picture is this small? http://russos.ru/img/trip/2009-kolskiy/b440-27.jpg And how does is compare with what the XXI had? It has surprised the blogger how small the triple diesels of this sub were, compared to older designs.

In my plans for these years is to penetrate inside D-2, S-189, and B-396. The last two, on my trip to St. Petersburg.
 
Perhaps you do know why the diesel at this picture is this small? http://russos.ru/img/trip/2009-kolskiy/b440-27.jpg And how does is compare with what the XXI had? It has surprised the blogger how small the triple diesels of this sub were, compared to older designs.

My problem is that it doesn't even at all look like a Diesel, but rather like the top oil tank/air compressor of one. Maybe the rest of the engine was installed below the deck.

Look here, how the Diesels are installed in a "XXI", the Wilhelm Bauer test submarine had a slightly different Diesel engine as the original XXI:

http://www.ipmsstockholm.org/magazine/2003/11/detail_uboot_xxi_06.htm
 
My problem is that it doesn't even at all look like a Diesel, but rather like the top oil tank/air compressor of one. Maybe the rest of the engine was installed below the deck.

But somehow it's titled "Diesel t. 2D-42M Starboard" with a paint on it. :shrug:

Look here, how the Diesels are installed in a "XXI", the Wilhelm Bauer test submarine had a slightly different Diesel engine as the original XXI:

http://www.ipmsstockholm.org/magazine/2003/11/detail_uboot_xxi_06.htm

I see. I'm looking forward to see what the Diesels are like on a Tango.
 
But somehow it's titled "Diesel t. 2D-42M Starboard" with a paint on it. :shrug:

Still possible, but this what you see is no complete Diesel engine - it seems to be only the top parts of one, with the bulk of the engine being hidden under the floor. The German submarine had the floor lower than for the sections forward of the Diesel engines maybe the Foxtrot was modified for simpler walking of the visitors.

Look here, there is a tiny photograph of a Foxtrot, that shows the complete Diesel Engine Room.

http://www.heiszwolf.com/subs/foxtrot/Zulu.html
 
Looks like my feeling was right...we have a strong mesocyclone here today, It all just went literally black above me. Looks like I will drive home later, my car is not suitable for storm chasing as long as the lambda sensor is defect.

In case you want to watch things "live", here is the webcam of the palace.

http://www.braunschweig.de/kultur_t...chweiger_ansichten/webcam/webcam_schloss.html

(In the attached radar image, note the distinct hook shaped pattern under the label "Hannover")
 

Attachments

  • RadarBildMesoCyclon.jpg
    RadarBildMesoCyclon.jpg
    274.5 KB · Views: 10
Last edited:
Hahaha, my computer sucks so much. I just tried the same raytrace program on my newer duel core computer and it only takes about 3 seconds. And just 8 seconds for to draw a 1600x1200 image and then the smaller 800x600 image.
EDIT: Wow. On my good computer, I can draw a huge 3200x2400 then highly antialiased 800x600 image in only 20 seconds. (compare that to my other computer taking 20 seconds to draw 800x600 and 400x300)

---------- Post added at 05:29 PM ---------- Previous post was at 05:12 PM ----------

Here's a pic. 1900x1000, 'antialiased' from an image with width and height four times larger. ~110 seconds to draw.
You can see several very faint reflections in the blue sphere. In the red one, you can see a reflection including a reflection of a shadow.
raytrace.png

:thumbup:
I once had a project like that when I was really bored. In fact, my ray tracer was implemented in QBasic. Internally, it used 24-bit colors, and the display output was 640*480 with 16 colors and randomized dithering.

Unfortunately it had a bug I couldn't find, so I abandoned the project.
 
Are you the vessel in which it is flying, or is it aboard your significant other ?

Congrats, either way. :cheers:
 
It's aboard mu significant other :D. For now we've got about 6 months to blast-off
 
Back
Top