The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk ray tracing

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalk ray tracing Posted: Oct 11, 2003 5:47 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk ray tracing
Feed Title: David Buck - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/buck-rss.xml
Feed Description: Smalltalk can do that
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From David Buck - Blog

Advertisement
As some of you may know, I wrote a ray tracer many years ago (1986) called DKBTrace. That ray tracer became the basis of POV-Ray. The original DKBTrace (and even the modern POV-Ray) benefited from some object oriented ideas taken from Smalltalk which I had learned even earlier (1984).

I recently decided to write a very simple Smalltalk raytracer to demonstrate the basic techniques. Even though Smalltalk isn't terribly fast at floating point calculations, this raytracer only runs about 4 times slower than POV-Ray (which isn't bad considering the fact that POV-Ray is heavily optimized in C).

The Smalltalk ray tracer has nowhere near the capabilities of POV-Ray - if you want to do serious raytracing, use POV-Ray. For learning how raytracing works, however, it's a good example. You can get it from the Cincom public store repository under the bundle "Ray Tracing" or from my web site. If you change the code, let me know what you've done and I'll upload it for others to share.

To try it, run:

RayTrace.RayTraceExamples example1

Read: Smalltalk ray tracing

Topic: The Code Grouping Mess Previous Topic   Next Topic Topic: Nifty BOSS Helper

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use