POV-Ray : Newsgroups : povray.newusers : scale in Mesh2 Server Time
26 Nov 2024 17:33:59 EST (-0500)
  scale in Mesh2 (Message 1 to 5 of 5)  
From: Gawel
Subject: scale in Mesh2
Date: 7 Mar 2004 10:58:41
Message: <404b46b1$1@news.povray.org>
My mesh2 file looks like this :

mesh2
{
  vertex_vectors
  {
    n+1,
    <x0, y0, z0>,
     ...
   <xn, yn, zn>
  }
 normal_vectors
{
    n+1,
    <x0, y0, z0>,
     ...
   <xn, yn, zn>
  }
.....
 scale <1, 10, 1> <----- QUESTION
}

I wonder if scale affect only vertex_vectors or both : vertex_vectors and
normal_vectors.

Tahnks in advance


Gawel
-------------------------------


Werner Heisenberg


Post a reply to this message

From: Warp
Subject: Re: scale in Mesh2
Date: 7 Mar 2004 11:57:12
Message: <404b5467@news.povray.org>
Gawel <gawelekREMOVE @ itgazeta.pl> wrote:
> I wonder if scale affect only vertex_vectors or both : vertex_vectors and
> normal_vectors.

  It doesn't affect either. Transformations do not modify the mesh, they
just modify the incoming ray.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Gawel
Subject: Re: scale in Mesh2
Date: 7 Mar 2004 12:30:27
Message: <404b5c33@news.povray.org>
>   It doesn't affect either. Transformations do not modify the mesh, they
> just modify the incoming ray.

Hmmmm, it means that If I multiply by 10 in scale statement then during
rendering the postion of ray is divided by 10 ?

Gawel


Post a reply to this message

From: Warp
Subject: Re: scale in Mesh2
Date: 7 Mar 2004 16:52:35
Message: <404b99a3@news.povray.org>
Gawel <gawelekREMOVE @ itgazeta.pl> wrote:
> Hmmmm, it means that If I multiply by 10 in scale statement then during
> rendering the postion of ray is divided by 10 ?

  Not the position, the ray vector itself, but basically yes.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Gawel
Subject: Re: scale in Mesh2
Date: 8 Mar 2004 01:28:44
Message: <404c129c$1@news.povray.org>
>   Not the position, the ray vector itself, but basically yes.

Ok, that was my way of thinking.

Gawel


Post a reply to this message

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