POV-Ray : Newsgroups : povray.newusers : Quaternions and POVray Server Time
5 Nov 2024 01:25:53 EST (-0500)
  Quaternions and POVray (Message 1 to 3 of 3)  
From: spl
Subject: Quaternions and POVray
Date: 17 Jan 2003 19:20:03
Message: <web.3e289ca2cc28d37c28b61af20@news.povray.org>
I'd like to use quaternions to describe rotations within POVray.

I was wondering if anyone else had done so before I launch into
trying to generate macros to do mulitplications, slerps, convert
quaternions to matrices, and so forth.

Has anyone else done this and/or do they have any macros they'd
be willing to share?

I know that there is quaternion support in the Julia fractal object
but that's not what I'm looking for.

Of course, in my heart of hearts, I'd like to see direct quaternion
support in POVray but I realize that may be some time in the future,
if ever.

Thanx.

       spl


Post a reply to this message

From: Warp
Subject: Re: Quaternions and POVray
Date: 17 Jan 2003 19:46:18
Message: <3e28a3da@news.povray.org>
spl <spl### [at] remove-nospamucsdedu> wrote:
> I was wondering if anyone else had done so before I launch into
> trying to generate macros to do mulitplications, slerps, convert
> quaternions to matrices, and so forth.

  I don't remember anyone doing that before.
  It shouldn't be too difficult to make those macros. As POV-Ray supports
5-dimensional vectors, you can use the four first items of such vector
for the quaternion.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: spl
Subject: Re: Quaternions and POVray
Date: 17 Jan 2003 19:50:04
Message: <web.3e28a3e66d74d92428b61af20@news.povray.org>
I wrote:
>I'd like to use quaternions to describe rotations within POVray.

Duh.  Never mind.  I realized I can do what I want with the standard
rotate operator.

       spl


Post a reply to this message

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