POV-Ray : Newsgroups : povray.programming : Implementing new objects Server Time
28 Jun 2024 01:51:02 EDT (-0400)
  Implementing new objects (Message 1 to 3 of 3)  
From: Helix
Subject: Implementing new objects
Date: 21 May 2004 19:45:00
Message: <web.40ae93a4f8131bc2a5c747920@news.povray.org>
Tanglecube quartic equation:
x^4 - 5*x^2 + y^4 - 5*y^2 + z^4 - 5*z^2 + 11.8 = 0

We inject the ray's parametric equation (P + D * depth) inside it.

Polynomial: a*x^4 + b*x^3 + c*x^2 + d*x + e

Coefficients are:
a = Dx^4 + Dy^4 + Dz^4
b = 4.0 * (Px*Dx^3 + Py*Dy^3 + Pz*Dz^3)
c = 6.0 * (Px^2*Dx^2 + Py^2*Dy^2 + Pz^2*Dz^2) - 5.0 * (Dx^2 + Dy^2 + Dz^2)
d = 4.0 * (Px^3*Dx + Py^3*Dy + Pz^3*Dz) - 10.0 * (Px*Dx + Py*Dy + Pz*Dz)
e = Px^4 + Py^4 + Pz^4 - 5.0 * (Px^2 + Py^2 + Pz^2) + 11.8

The normal is:
N[X] = 4*x^3 - 10*x
N[Y] = 4*y^3 - 10*y
N[Z] = 4*z^3 - 10*z

The scene result isn't right, so I'm asking myself if my formulas'
coefficients
are correct or not...


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Implementing new objects
Date: 22 May 2004 07:01:20
Message: <40af3300$1@news.povray.org>
In article <web.40ae93a4f8131bc2a5c747920@news.povray.org> , "Helix" 
<nomail@nomail> wrote:

> The scene result isn't right, so I'm asking myself if my formulas'
> coefficients are correct or not...

How about an even more cryptic message?  You could have written no text and
subject line and we would have understood even less about your problem than
one can guess from this one...

What is your question?  What is your problem?  What does your post have to
do with "Implementing new objects"?  And do you expect can anybody make any
sense out of a few formulas and a statement like "The scene result isn't
right"?

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Slime
Subject: Re: Implementing new objects
Date: 22 May 2004 16:32:00
Message: <40afb8c0$1@news.povray.org>
> Tanglecube quartic equation

Have you considered just using the quartic object?

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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