POV-Ray : Newsgroups : povray.general : Invisible prism Server Time
17 Nov 2024 23:17:45 EST (-0500)
  Invisible prism (Message 1 to 3 of 3)  
From: LibraryMan
Subject: Invisible prism
Date: 11 Dec 2002 15:10:14
Message: <3DF79BB6.8157A2F8@att.net>
What's wrong with this code?

        prism {
        #local v3 = vrotate(<0, 2.91>, y*3.5);
        #local v4 = vrotate(<0, 3.03>, y*3.5);
        linear_sweep
        linear_spline
        0,
        0.6,
        4,
        <0, 2.91>, <0, 3.03>, <v4.x, v4.z>, <v3.x, v3.z> pigment { Green
}
        }

It should get me a quadrilateral which is somewhat keystone-shaped.  I'm
getting nothing, but it the rendering slows down perceptibly at the spot
where I should see something.  (I had had a torus passing through the
middle of it (its major radius 2.97), which I left out here.  Also left
out camera & lighting for expediency.

Thanks!
Mark


Post a reply to this message

From: Slime
Subject: Re: Invisible prism
Date: 11 Dec 2002 15:16:46
Message: <3df79d2e$1@news.povray.org>
>         #local v3 = vrotate(<0, 2.91>, y*3.5);
>         #local v4 = vrotate(<0, 3.03>, y*3.5);


This is the same as

>         #local v3 = vrotate(<0, 2.91,0>, y*3.5);
>         #local v4 = vrotate(<0, 3.03,0>, y*3.5);

and both the X and Z of the resulting vectors are zero.

what you meant to do was

>         #local v3 = vrotate(<0, 0, 2.91>, y*3.5);
>         #local v4 = vrotate(<0, 0, 3.03>, y*3.5);

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


Post a reply to this message

From: LibraryMan
Subject: Re: Invisible prism
Date: 11 Dec 2002 15:19:24
Message: <3DF79DDD.921CE1C9@att.net>
Slime wrote:
> 
> >         #local v3 = vrotate(<0, 2.91>, y*3.5);
> >         #local v4 = vrotate(<0, 3.03>, y*3.5);
> 
> This is the same as
> 
> >         #local v3 = vrotate(<0, 2.91,0>, y*3.5);
> >         #local v4 = vrotate(<0, 3.03,0>, y*3.5);
> 
> and both the X and Z of the resulting vectors are zero.
> 
> what you meant to do was
> 
> >         #local v3 = vrotate(<0, 0, 2.91>, y*3.5);
> >         #local v4 = vrotate(<0, 0, 3.03>, y*3.5);
> 
>  - Slime
> [ http://www.slimeland.com/ ]



--Mark


Post a reply to this message

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