POV-Ray : Newsgroups : povray.general : Object size in pixel Server Time
1 Nov 2024 05:20:03 EDT (-0400)
  Object size in pixel (Message 1 to 6 of 6)  
From: Sven Garbade
Subject: Object size in pixel
Date: 8 Nov 1999 09:18:17
Message: <3826EB81.D06C554F@mpipf.muenchen-mpg.de>
Dear POV-Ray Team,

hope I'm in the right place here.

I'm using POV-Ray under Linux to generate anaglyphic pictures for my
master-thesis and
it works great. But I want to know which size in pixel the objects have
got
in the rendered image.
For example, I placed a die (which is 10 high) in the scene at point <0,
0,0>,
the camera is at <0, 0, 30> (angle 50) and the output format is 800x600
pixel. Is there a way to calculate the size in pixel of the die in the
output image? Sorry, I havn't found information about this in the
postscript-manual.

Thanks,

Sven Garbade


Post a reply to this message

From: Nieminen Juha
Subject: Re: Object size in pixel
Date: 8 Nov 1999 11:21:45
Message: <3826f899@news.povray.org>
There's no way in the current povray for getting this. You can calculate
it yourself with some math, though.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: H E  Day
Subject: Re: Object size in pixel
Date: 8 Nov 1999 20:58:57
Message: <38277FCA.B02DA914@teleport.com>
Of course there is.  Use the selection tool - after the render is finished,
click and hold at the top of the die.  Then drag down to the bottom. A series
of coordinates should appear in the upper left where "Render Window" used to
be. Subtract the lesser vertical point from the lower vertical point. There
you have it! The height of the die!
Hope this helps.

H.E. Day

Nieminen Juha wrote:

>   There's no way in the current povray for getting this. You can calculate
> it yourself with some math, though.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Nieminen Juha
Subject: Re: Object size in pixel
Date: 9 Nov 1999 05:24:34
Message: <3827f662@news.povray.org>
H.E. Day <mil### [at] teleportcom> wrote:
: Of course there is.  Use the selection tool - after the render is finished,
: click and hold at the top of the die.  Then drag down to the bottom. A series
: of coordinates should appear in the upper left where "Render Window" used to
: be. Subtract the lesser vertical point from the lower vertical point. There
: you have it! The height of the die!

  He is using povray for linux.

  And besides, that's a pretty inaccurate method.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: mr art
Subject: Re: Object size in pixel
Date: 9 Nov 1999 11:21:48
Message: <38284A0A.EEE83519@gci.net>
Nieminen Juha wrote:

> H.E. Day <mil### [at] teleportcom> wrote:
> : Of course there is.  Use the selection tool - after the render is finished,
> : click and hold at the top of the die.  Then drag down to the bottom. A series
> : of coordinates should appear in the upper left where "Render Window" used to
> : be. Subtract the lesser vertical point from the lower vertical point. There
> : you have it! The height of the die!
>
>   He is using povray for linux.
>

I use POVRay for Windows and it works for me.

>   And besides, that's a pretty inaccurate method.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ron Parker
Subject: Re: Object size in pixel
Date: 9 Nov 1999 12:03:29
Message: <382853e1@news.povray.org>
On Tue, 09 Nov 1999 07:21:30 -0900, mr.art wrote:
>
>
>Nieminen Juha wrote:
>
>> H.E. Day <mil### [at] teleportcom> wrote:
>> : Of course there is.  Use the selection tool - after the render is finished,
>> : click and hold at the top of the die.  Then drag down to the bottom. A series
>> : of coordinates should appear in the upper left where "Render Window" used to
>> : be. Subtract the lesser vertical point from the lower vertical point. There
>> : you have it! The height of the die!
>>
>>   He is using povray for linux.
>>
>
>I use POVRay for Windows and it works for me.

The problem is that POV for Linux doesn't have that functionality.  It's
Windows-only.


-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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