POV-Ray : Newsgroups : povray.binaries.images : Fractal (100k) Server Time
4 Oct 2024 07:11:29 EDT (-0400)
  Fractal (100k) (Message 1 to 5 of 5)  
From: Peter Pfahl
Subject: Fractal (100k)
Date: 16 Apr 1999 13:31:43
Message: <3717659B.7DB42E6D@rz-online.de>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I'm not very experienced in raytracing, but i recently wrote a program
that displays fractals. I had the idea of creating a height-map out of
the fractal, but that didnt work out right. Then I tried to use many little
triangles to construct the fractal, and here's how it looks (+some effects
for the optics) If anyone wants to have the program(~350k), just ask, but
I still have to write something like a manual, because its pretty complex
<center>
<p><img SRC="cid:par### [at] rz-onlinede" height=480 width=640>:</center>

<p>--
<br>Linux is like a wigwam - no windows, no gates, apache inside!
<br> </html>


Post a reply to this message


Attachments:
Download 'c:\windows\temp\nsmailal.jpeg.jpg' (104 KB)

Preview of image 'c:\windows\temp\nsmailal.jpeg.jpg'
c:\windows\temp\nsmailal.jpeg.jpg


 

From: Spider
Subject: Re: Fractal (100k)
Date: 16 Apr 1999 16:13:26
Message: <37178ABB.E76929B3@bahnhof.se>
Neat effect.
Hmm, Tried using a smooth_triangle for outpuut? the results will probably look a
bit better.



Peter Pfahl wrote:
> 
> I'm not very experienced in raytracing, but i recently wrote a program that
> displays fractals. I had the idea of creating a height-map out of the fractal,
> but that didnt work out right. Then I tried to use many little triangles to
> construct the fractal, and here's how it looks (+some effects for the optics)
> If anyone wants to have the program(~350k), just ask, but I still have to
> write something like a manual, because its pretty complex
> 
>                                    [Image]:
> 
> --
> Linux is like a wigwam - no windows, no gates, apache inside!
> 

-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: Peter Pfahl
Subject: Re: Fractal (100k)
Date: 16 Apr 1999 21:09:13
Message: <3717D0F3.CA45BE73@rz-online.de>
Yeah, I'll try that...have to think of a way to calculate the normals of the
corners....

Spider schrieb:

> Neat effect.
> Hmm, Tried using a smooth_triangle for outpuut? the results will probably look a
> bit better.
>
> Peter Pfahl wrote:
> >
> > I'm not very experienced in raytracing, but i recently wrote a program that
> > displays fractals. I had the idea of creating a height-map out of the fractal,
> > but that didnt work out right. Then I tried to use many little triangles to
> > construct the fractal, and here's how it looks (+some effects for the optics)
> > If anyone wants to have the program(~350k), just ask, but I still have to
> > write something like a manual, because its pretty complex
> >
> >                                    [Image]:
> >
> > --
> > Linux is like a wigwam - no windows, no gates, apache inside!
> >
>
> --
> //Spider
>         [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
> What I can do and what I could do, I just don't know anymore
>                 "Marian"
>         By: "Sisters Of Mercy"

--
Linux is like a wigwam - no windows, no gates, apache inside!


Post a reply to this message

From: Jerry Anning
Subject: Re: Fractal (100k)
Date: 16 Apr 1999 23:57:28
Message: <3717f4d6.44175699@news.povray.org>
On Sat, 17 Apr 1999 02:08:20 +0200, Peter Pfahl <ppf### [at] rz-onlinede>
wrote:

>Yeah, I'll try that...have to think of a way to calculate the normals of the
>corners....

Suppose that you want to calculate the normal at point a, which is
connected to points b, c, d and e thus:

b____________c
|\                      / |
|  \                  /   |
|    \              /     |
|      \          /       |
|        \      /         |
|          \  /           |
|           a            |
|          /  \           |
|        /      \         |
|      /          \       |
|    /              \     |
|  /                  \   |
|/                      \ |
d___________e

Where X stands for the (vector) cross product, calculate:
N = ((b-a) X (c-a)) + ((c-a) X (e-a)) + ((e-a) X (d-a)) + ((d-a) X
(b-a))
Then calculate the (scalar) length of N where n.x means the
x-component of N, etc.:
L = sqrt(N.x * N.x +N.y * N.y + N.z * N.z)
Then normalize N (set it's length to 1) thus
N = <N.x / L, N.y / L, N.Z / L>
assuming, of course, that L != 0
The cross product is a simple calculation that I am omitting for
reasons of laziness.  You can find it in any vector algebra text or
mail me and I'll send it.  Be sure to keep the direction of
calculation around points (that is clockwise or counterclockwise)
consistent.

Jerry Anning
clem "at" dhol "dot" com


Post a reply to this message

From: Peter Pfahl
Subject: Re: Fractal (100k)
Date: 17 Apr 1999 12:43:09
Message: <3718ac0d.0@news.povray.org>
Thanks...but since I didn't do vector algebra in school yet (we'll start in
a few weeks :-( ), that doesn't help much...I'd really appreciate it if
you'd send me some kind of term that I can use in delphi directly. do i need
any information other that the height of the points above "0"?

Jerry Anning <nos### [at] despamcom> schrieb in im Newsbeitrag:
3717f4d6.44175699@news.povray.org...
> On Sat, 17 Apr 1999 02:08:20 +0200, Peter Pfahl <ppf### [at] rz-onlinede>
> wrote:
>
> >Yeah, I'll try that...have to think of a way to calculate the normals of
the
> >corners....
>
> Suppose that you want to calculate the normal at point a, which is
> connected to points b, c, d and e thus:
>
> b____________c
> |\                      / |
> |  \                  /   |
> |    \              /     |
> |      \          /       |
> |        \      /         |
> |          \  /           |
> |           a            |
> |          /  \           |
> |        /      \         |
> |      /          \       |
> |    /              \     |
> |  /                  \   |
> |/                      \ |
> d___________e
>
> Where X stands for the (vector) cross product, calculate:
> N = ((b-a) X (c-a)) + ((c-a) X (e-a)) + ((e-a) X (d-a)) + ((d-a) X
> (b-a))
> Then calculate the (scalar) length of N where n.x means the
> x-component of N, etc.:
> L = sqrt(N.x * N.x +N.y * N.y + N.z * N.z)
> Then normalize N (set it's length to 1) thus
> N = <N.x / L, N.y / L, N.Z / L>
> assuming, of course, that L != 0
> The cross product is a simple calculation that I am omitting for
> reasons of laziness.  You can find it in any vector algebra text or
> mail me and I'll send it.  Be sure to keep the direction of
> calculation around points (that is clockwise or counterclockwise)
> consistent.
>
> Jerry Anning
> clem "at" dhol "dot" com


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.