Jump to content

Rayshade

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 24.23.246.249 (talk) at 17:55, 23 July 2018 (Correct origin location.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Rayshade Raytracer

Rayshade is a software application for ray tracing (3D rendering) from a text 3D model description input file into a finished, realistic image.

The first version was written between 1987 and 1988 at Princeton University. It is written by Craig E. Kolb in C, yacc, and lex. It runs on many different Unix platforms, and was also later ported to the DOS operating system. It does not have a graphical user interface.

Screenshots

quickly (seconds) auto-generated scene rendered at low resolution

Example code

   /* just a ball */
   sphere
   surface  ambient .05 .05 .05  diffuse .5 .5 .5 specular .5 .5 .5  specpow 60 reflect .2
   1. 0 0 0
   /* scene setup */
   eyep 1.7 -3.15 2.6
   lookup 0. 0. 0.
   up 0. 0. 1.
   light 0.4 0.4 0.4  directional 1. 0. 1.
   background  1. 1. 1.