delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/30/09:04:54

From: "Edmund Horner" <edmund1 AT geocities DOT com>
To: "licaon" <licaon AT go DOT ro>, <djgpp AT delorie DOT com>
Subject: RE: Re[2]: Raytracing
Date: Thu, 31 Aug 2000 01:05:44 +1200
Message-ID: <000001c01283$02e5bc40$ec9e60cb@morgoth>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
In-Reply-To: <1661172111.20000830105311@go.ro>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

My advice would be, start simple!  Your first program would preferably not
even display the image, just calculate it and save it as a PCX or something.
(But if you're using Allegro, I guess it's not much work to display it just
before you save it...)

The simplest shape is probably a sphere.  So when you shoot your ray out of
every pixel, you only need to do a sphere intersection.  The colour of the
pixel depends on what part of the sphere you hit.

Anyway, I'm probably not being much help, am I?

> EH> Well, I guess the pov-ray source would be too big to
> EH> start on.
> i have those sources...what's next....hmmm???
>
> EH> But you will need to know quite a bit about rays and
> EH> their intersections with objects.  As well as how
> EH> lighting works.
> so...i wanted some direction (on the web)....

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019