POV-Ray : Newsgroups : povray.newusers : Newbie syntax problem : Re: Newbie syntax problem Server Time
4 Nov 2024 21:25:21 EST (-0500)
  Re: Newbie syntax problem  
From: LibraryMan
Date: 11 Nov 2002 16:37:19
Message: <3DD0220B.1B5F76C3@att.net>
BTW, what are uv vectors (RANK newbie here!)

Wow, it's hard to believe something simple enough for _ME_ to come up
with it isn't actually possible 
to do!!  I mean, in principle it ought to work, right?  POV's SDL can do
so many other things (that I sure DON'T understand! ;-)  )

I was allowed to declare the following vectors, no problem, :
#declare v_01 =  <0.5, 0, 0>;
#declare v_02 =  vrotate(<0.5, 0, 0>,y*30);
#declare v_03 =  vrotate(<0.5, 0, 0>,y*60);
#declare v_04 =  <0, 0, -0.5>;
#declare v_05 =  vrotate(<0, 0, -0.5>,y*30);
#declare v_06 =  vrotate (<0, 0, -0.5>,y*60);
#declare v_07 =  <-0.5, 0, 0>;
#declare v_08 =  vrotate(<-0.5, 0, 0>,y*30);
#declare v_09 =  vrotate(<-0.5, 0, 0>,y*60);
#declare v_10 =  <0, 0, 0.5>;
#declare v_11 =  vrotate(<0, 0, 0.5>,y*30);
#declare v_12 =  vrotate(<0, 0, 0.5>,y*60);

But when it came to actually using them in the prism, like so:

prism {
linear_sweep
linear_spline
0,
1,
13,
v_01, v_02, v_03, v_04, v_05, v_06, v_07, v_08, v_09, v_10, v_11, v_12,
v_01
pigment { Green }
}

POV choked on it!  AARRGGGH!  It's SO simple!  Why isn't it possible?!
--Mark


"hughes, b." wrote:
>
> I don't think anything written up for POV so far does something with the uv
> kind of vectors such as prism uses. Checking out vrotate for that here got
> me nowhere even though I tried to use the dot operator in an attempt to
> limit the usual 3 float vectors to two floats but POV will not allow it into
> the prism.
> 
> I had a feeling you knew a prism wasn't going to do a dodecahedron but I
> didn't catch on about the dodecagon name and jumped ahead that you were
> confused about the prism. My fault, sorry.
> 
> If anyone tells of a way to work with the uv vector, as described above, I'm
> all ears too.


Post a reply to this message

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