POV-Ray : Newsgroups : povray.binaries.images : unit meaning Server Time
14 Nov 2024 12:25:05 EST (-0500)
  unit meaning (Message 1 to 6 of 6)  
From: maria
Subject: unit meaning
Date: 3 May 2009 14:25:01
Message: <web.49fde016c23a6d96c4fcbca0@news.povray.org>
Hello,
I have an image and the total size looks like is 1 unit by 1 unit,
but I could not find why and,
what is the meaning of 1 unit?.
Is 1 unit each square pixel?

Thank you,
Maria


Post a reply to this message


Attachments:
Download 'imageforum.png' (107 KB)

Preview of image 'imageforum.png'
imageforum.png


 

From: Zeger Knaepen
Subject: Re: unit meaning
Date: 3 May 2009 14:50:25
Message: <49fde771@news.povray.org>
"maria" <mar### [at] gmailcom> wrote in message 
news:web.49fde016c23a6d96c4fcbca0@news.povray.org...
> Hello,
> I have an image and the total size looks like is 1 unit by 1 unit,
> but I could not find why and,
> what is the meaning of 1 unit?.
> Is 1 unit each square pixel?

1 unit is whatever you want it to be: 1 meter, 1 mile, 1 lightyear, 1 
nanometer

That being said, your first sentence isn't really clear.  I suppose you mean 
a height_field or an image_map? They're designed to by 1x1 unit in size by 
default.  Why?  Because anything else would be kind of arbitrary.

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: Stephen
Subject: Re: unit meaning
Date: 3 May 2009 14:59:38
Message: <pbqrv4dtcbsdr119fe2gd6f78ofqumo5jj@4ax.com>
On Sun,  3 May 2009 14:22:17 EDT, "maria" <mar### [at] gmailcom> wrote:

>Hello,
>I have an image and the total size looks like is 1 unit by 1 unit,
>but I could not find why and,
>what is the meaning of 1 unit?.
>Is 1 unit each square pixel?
>

Hi Maria and welcome,

A Pov unit is whatever you want it to mean :)
It has no relation to real life units so it can be one meter, one kilometre one
centimetre or even a foot, yard or mile.
There is a problem if you mix very small and large distances so a scale model of
the solar system is a no-no.

If you are using a heightfield then the image fits into a 1 by 1 by 1 cube. So
scale the X-Y axis's by the image resolution and the z axis by the desired
height.
-- 

Regards
     Stephen


Post a reply to this message

From: m a r c
Subject: Re: unit meaning
Date: 3 May 2009 18:22:34
Message: <49fe192a@news.povray.org>

web.49fde016c23a6d96c4fcbca0@news.povray.org...
> Hello,
> I have an image and the total size looks like is 1 unit by 1 unit,

It looks like it is 1x4x9
and ...oh my god it is full of stars !

Marc


Post a reply to this message

From: Kenneth
Subject: Re: unit meaning
Date: 4 May 2009 01:40:01
Message: <web.49fe7e157db93373f50167bc0@news.povray.org>
"maria" <mar### [at] gmailcom> wrote:
> Hello,
> I have an image and the total size looks like is 1 unit by 1 unit,
> but I could not find why and,
> what is the meaning of 1 unit?.
> Is 1 unit each square pixel?
>
> Thank you,
> Maria

Actually, the idea of '1 unit' in POV-Ray is itself kind of arbitrary--a sort of
internal standard; but there are *many* other things in the program that are
also based on that--for example, gradient x (or y or z) pigments and patterns,
etc. They repeat after '1 unit'--which makes the whole system nicely
consistent. Of course, practically anything in POV-Ray can be scaled up or
down, if you like, and over a very wide range--without losing resolution or
quality.

Ken W.


Post a reply to this message

From: Kenneth
Subject: Re: unit meaning
Date: 4 May 2009 01:50:00
Message: <web.49fe81a27db93373f50167bc0@news.povray.org>
"maria" <mar### [at] gmailcom> wrote:

> Is 1 unit each square pixel?

You might be confused about POV-Ray 'units' versus the screen resolution of your
rendered image. They actually have nothing at all to do with each other. In
other words, pixels on the screen have no relation to 'units' in POV-Ray; your
scene, as-is, can be rendered at any resolution. In fact, the larger the final
image in pixels, the nicer and sharper it will look. That's one of the great
things about the program!

KW


Post a reply to this message

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