POV-Ray : Newsgroups : povray.newusers : The co-ordinate system Server Time
29 Nov 2024 04:22:09 EST (-0500)
  The co-ordinate system (Message 1 to 6 of 6)  
From: I Chuprov
Subject: The co-ordinate system
Date: 19 Mar 1999 19:21:24
Message: <36f2ea04.0@news.povray.org>
Hi

I'm still having a little difficulty understanding the co-ordinate system in
POV-Ray.
I understand about the X, Y, Z axis and the left hand rotation thingy.
What I don't understand, is how to use the co-ordinate system to place
objects!
I'm always using trial and error to place objects, especially when I want to
centre the object (e.g. a text object).

Is there some easier way of placing objects??

Thanks,
Igor
--
Hinki's Place
http://hinki.8m.com/
Wild Planet
http://wildplanet.8m.com/
Fractalography
http://fractalography.8m.com/


Post a reply to this message

From: Y Tanabe
Subject: Re: The co-ordinate system
Date: 19 Mar 1999 20:54:38
Message: <36F37E6C.8490C8AC@kh.rim.or.jp>
My name is Y.Tanabe
I am using a standard.pov which has X,Y,Z coordinate with marker.
Here is source

// Persistence of Vision Ray Tracer 3.1 Scene Description File
#version 3.1;
#include "colors.inc"
#include "textures.inc"

global_settings { assumed_gamma 2.2 }
// Set a color of the background (sky)
background { color red 0.1 green 0.3 blue 0.8 }

camera
{
    location   <0.0, 0.0, -12.0>
    right       <4/3, 0.0, 0.0>
    up          <0.0,1.0, 0.0>
    direction  <0.0, 0.0,1.0>
}

light_source { <200, 100, -300> colour White }
light_source { <-200, 100, -300> colour White }



//Cylinder
#declare Xaxis =
cylinder
{
   <-1e6, 0, 0>, <1e6, 0, 0>, 0.05
   pigment
   {
      gradient x
      color_map
      {
        [0.0    0.1          color red 1.2 green 1.2 blue 1.2 color red 1.2
green 1.2 blue 1.2]
        [0.1   1.0-0.1   color red 1.2 color red 1.2]
        [1.0-0.1  1.0          color red 1.2 green 1.2 blue 1.2 color red 1.2
green 1.2 blue 1.2]
      }
    quick_color color red 1.2
  }
}

#declare Yaxis =
cylinder
{
  <0, -1e6, 0>, <0, 1e6, 0>, 0.05
  pigment {
    gradient y
    color_map {
      [0 0.1         color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
blue 1.2]
      [0.1 1-0.1  color green 1.2 color green 1.2]
      [1-0.1 1       color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
blue 1.2]
    }
    quick_color color green 1.2
  }
}

#declare Zaxis =
cylinder {
  <0, 0, -1e6>, <0, 0, 1e6>, 0.05
  pigment {
    gradient z
    color_map {
      [0 0.1         color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
blue 1.2]
      [0.1 1-0.1  color blue 1.2 color blue 1.2]
      [1-0.1 1       color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
blue 1.2]
    }
    quick_color color blue 1.2
  }
}

#declare Axis =
union
{
  object { Xaxis }
  object { Yaxis }
  object { Zaxis }
}
#declare UnitAxis =
union
{
   object { Xaxis translate <0,-1,-1>}
   object { Xaxis  translate <0,1,1>}
 object { Yaxis  translate <1,0,1>}
   object { Yaxis  translate  <-1,0,-1>}
 object { Zaxis  translate <1,1,0>}
   object { Zaxis translate <-1,-1,0>}

}

// Show coordinate axes
object {Xaxis}
object {Yaxis}


//object


Y.Tanabe
Kobe,Japan
e-mail : tec### [at] khrimorjp
home : http://www.kh.rim.or.jp/~techflux



I Chuprov wrote:

> I'm still having a little difficulty understanding the co-ordinate system in
> POV-Ray.
> I understand about the X, Y, Z axis and the left hand rotation thingy.
> What I don't understand, is how to use the co-ordinate system to place
> objects!
> I'm always using trial and error to place objects, especially when I want to
> centre the object (e.g. a text object).
>
> Is there some easier way of placing objects??
>


Post a reply to this message

From: Bob Hughes
Subject: Re: The co-ordinate system
Date: 20 Mar 1999 02:45:42
Message: <36F3522B.BA05F8A4@aol.com>
The 'text' object can be setup easier now thanks to a few brave souls
who've made include files to help in just such a thing. Search the
povray.text.scene-files or povray.binaries.scene-files or maybe
povray.utilities for "text" or maybe "text placement" and you might find
something. Or better yet someone who really knows exactly where to get
it will show up here.
The other aspect to object placements in general is pretty much going to
be trial and error, as you said, regardless; since this is usually
positioning things according to a master plan you make. Which is what
scene building is all about.
I believe there may be a few utilities out there to help in primitive
placement relative to another so there's hope.


I Chuprov wrote:
> 
> Hi
> 
> I'm still having a little difficulty understanding the co-ordinate system in
> POV-Ray.
> I understand about the X, Y, Z axis and the left hand rotation thingy.
> What I don't understand, is how to use the co-ordinate system to place
> objects!
> I'm always using trial and error to place objects, especially when I want to
> centre the object (e.g. a text object).
> 
> Is there some easier way of placing objects??
> 
> Thanks,
> Igor
> --
> Hinki's Place
> http://hinki.8m.com/
> Wild Planet
> http://wildplanet.8m.com/
> Fractalography
> http://fractalography.8m.com/

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

From: Steve
Subject: Re: The co-ordinate system
Date: 20 Mar 1999 04:01:25
Message: <36F364A2.37DBD1C1@puzzlecraft.com>
There's a very good tip in the FAQ somewhere. It suggests that you can declare
meters, millimeters, kilometers, feet , inches, whatever so that you have a
sense of scale and you know what the sizes and distances are in your scene.
Then you just use meters instead of POV-units.



I Chuprov wrote:

> Hi
>
> I'm still having a little difficulty understanding the co-ordinate system in
> POV-Ray.
> I understand about the X, Y, Z axis and the left hand rotation thingy.
> What I don't understand, is how to use the co-ordinate system to place
> objects!
> I'm always using trial and error to place objects, especially when I want to
> centre the object (e.g. a text object).
>
> Is there some easier way of placing objects??
>
> Thanks,
> Igor
> --
> Hinki's Place
> http://hinki.8m.com/
> Wild Planet
> http://wildplanet.8m.com/
> Fractalography
> http://fractalography.8m.com/


Post a reply to this message

From: Ken
Subject: Re: The co-ordinate system
Date: 20 Mar 1999 05:38:02
Message: <36F3797D.D674B82D@pacbell.net>
Steve wrote:
> 
> There's a very good tip in the FAQ somewhere. It suggests that you can declare
> meters, millimeters, kilometers, feet , inches, whatever so that you have a
> sense of scale and you know what the sizes and distances are in your scene.
> Then you just use meters instead of POV-units.


  I personaly don't care for that system because of all of the extra
typing involved but if you are interested in this sort of thing then
Sonya Roberts already has a predefined Include file available so you
don't have to go though and make all of the declarations yourself.
I have never looked at it but I think I heard that it is written for
both the American standard and European metric measurement systems.

It is available at:
http://www.geocities.com/SoHo/Lofts/1022/menu2.htm

If you can't find it there try the povabilities articles at:
http://www.spake.org/rtimes/

which should also have a copy since it is used heavely in the
online tutorial there.

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Andrew Cocker
Subject: Re: The co-ordinate system
Date: 21 Mar 1999 11:13:58
Message: <36f51ac6.0@news.povray.org>
A common mistake made by beginners is to translate first, and then rotate. You should
always design and orient your object correctly about the origin, and then translate it
to
where you want it.


--
----------------------
Andy
------------------------------------------------------------------------------------------
-
--The Home Of Lunaland--
--visit my POV-Ray gallery--
--listen to my music--
www.acocker.freeserve.co.uk


Y.Tanabe wrote in message <36F37E6C.8490C8AC@kh.rim.or.jp>...
>My name is Y.Tanabe
>I am using a standard.pov which has X,Y,Z coordinate with marker.
>Here is source
>
>// Persistence of Vision Ray Tracer 3.1 Scene Description File
>#version 3.1;
>#include "colors.inc"
>#include "textures.inc"
>
>global_settings { assumed_gamma 2.2 }
>// Set a color of the background (sky)
>background { color red 0.1 green 0.3 blue 0.8 }
>
>camera
>{
>    location   <0.0, 0.0, -12.0>
>    right       <4/3, 0.0, 0.0>
>    up          <0.0,1.0, 0.0>
>    direction  <0.0, 0.0,1.0>
>}
>
>light_source { <200, 100, -300> colour White }
>light_source { <-200, 100, -300> colour White }
>
>
>
>//Cylinder
>#declare Xaxis =
>cylinder
>{
>   <-1e6, 0, 0>, <1e6, 0, 0>, 0.05
>   pigment
>   {
>      gradient x
>      color_map
>      {
>        [0.0    0.1          color red 1.2 green 1.2 blue 1.2 color red 1.2
>green 1.2 blue 1.2]
>        [0.1   1.0-0.1   color red 1.2 color red 1.2]
>        [1.0-0.1  1.0          color red 1.2 green 1.2 blue 1.2 color red 1.2
>green 1.2 blue 1.2]
>      }
>    quick_color color red 1.2
>  }
>}
>
>#declare Yaxis =
>cylinder
>{
>  <0, -1e6, 0>, <0, 1e6, 0>, 0.05
>  pigment {
>    gradient y
>    color_map {
>      [0 0.1         color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
>blue 1.2]
>      [0.1 1-0.1  color green 1.2 color green 1.2]
>      [1-0.1 1       color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
>blue 1.2]
>    }
>    quick_color color green 1.2
>  }
>}
>
>#declare Zaxis =
>cylinder {
>  <0, 0, -1e6>, <0, 0, 1e6>, 0.05
>  pigment {
>    gradient z
>    color_map {
>      [0 0.1         color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
>blue 1.2]
>      [0.1 1-0.1  color blue 1.2 color blue 1.2]
>      [1-0.1 1       color red 1.2 green 1.2 blue 1.2 color red 1.2 green 1.2
>blue 1.2]
>    }
>    quick_color color blue 1.2
>  }
>}
>
>#declare Axis =
>union
>{
>  object { Xaxis }
>  object { Yaxis }
>  object { Zaxis }
>}
>#declare UnitAxis =
>union
>{
>   object { Xaxis translate <0,-1,-1>}
>   object { Xaxis  translate <0,1,1>}
> object { Yaxis  translate <1,0,1>}
>   object { Yaxis  translate  <-1,0,-1>}
> object { Zaxis  translate <1,1,0>}
>   object { Zaxis translate <-1,-1,0>}
>
>}
>
>// Show coordinate axes
>object {Xaxis}
>object {Yaxis}
>
>
>//object
>
>
>Y.Tanabe
>Kobe,Japan
>e-mail : tec### [at] khrimorjp
>home : http://www.kh.rim.or.jp/~techflux
>
>
>
>I Chuprov wrote:
>
>> I'm still having a little difficulty understanding the co-ordinate system in
>> POV-Ray.
>> I understand about the X, Y, Z axis and the left hand rotation thingy.
>> What I don't understand, is how to use the co-ordinate system to place
>> objects!
>> I'm always using trial and error to place objects, especially when I want to
>> centre the object (e.g. a text object).
>>
>> Is there some easier way of placing objects??
>>
>


Post a reply to this message

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