POV-Ray : Newsgroups : povray.newusers : delare a matrix ? Server Time
25 Nov 2024 17:52:54 EST (-0500)
  delare a matrix ? (Message 1 to 3 of 3)  
From: James Buddenhagen
Subject: delare a matrix ?
Date: 15 May 2005 19:14:28
Message: <4287d7d4@news.povray.org>
I have a matrix which doesn't change.  I need 
to apply it to several objects.  Right now I 
type out the matrix after each object, and this 
works.

But it would be easier if I could do something 
like:

#declare M = matrix <...numbers...>

and then:

MyObject M

(or maybe:   MyObject matrix {M} )

Anyway, I can't get this to work, but there must 
be an easier way than retypeing all 12 matrix entries 
each time I need to use it.

Obviously, I pretty new to POV.  Any pointers to 
how to do this better would be appreciated.
--
Jim Buddenhagen  jbuddenh at gmail dot com


Post a reply to this message

From: JYR
Subject: Re: delare a matrix ?
Date: 15 May 2005 19:40:00
Message: <web.4287dd064483c1eb6a3607400@news.povray.org>
"James Buddenhagen" <jbu### [at] REMOVEtexasnet> wrote:
> But it would be easier if I could do something like:
>
> #declare M = matrix <...numbers...>

#declare M = transform {matrix <...numbers...>}

> and then:
> MyObject M
> (or maybe:   MyObject matrix {M} )

object {MyObject transform {M}}

This should do the trick (cf. POV-Ray manual, 2.2.7.1.4 and 2.2.7.4)

JYR


Post a reply to this message

From: James Buddenhagen
Subject: Re: delare a matrix ?
Date: 15 May 2005 20:07:30
Message: <4287e442@news.povray.org>
"JYR" <jyr### [at] hotmailcom> wrote in message
news:web.4287dd064483c1eb6a3607400@news.povray.org...
> "James Buddenhagen" <jbu### [at] REMOVEtexasnet> wrote:
> > But it would be easier if I could do something like:
> >
> > #declare M = matrix <...numbers...>
>
> #declare M = transform {matrix <...numbers...>}
>
> > and then:
> > MyObject M
> > (or maybe:   MyObject matrix {M} )
>
> object {MyObject transform {M}}
>
> This should do the trick (cf. POV-Ray manual, 2.2.7.1.4 and 2.2.7.4)
>
> JYR

Many thanks! That did the trick.  I looked in the manual before
posting but somehow didn't find it.

--
Jim


Post a reply to this message

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