POV-Ray : Newsgroups : povray.newusers : Pov-Ray Render Windows? Server Time
5 Sep 2024 00:17:41 EDT (-0400)
  Pov-Ray Render Windows? (Message 1 to 5 of 5)  
From: maheshtd
Subject: Pov-Ray Render Windows?
Date: 25 Jun 2002 13:57:50
Message: <3d18af1e@news.povray.org>
I created an still image in PovRay. The Render Window is 120 by 160 pixels
wide, when i render the scene it looks fine but as soon i switch to higher
screen size such as 320 by 340 pixels. The image in the scene becomes
distorted and messy. Would I have to change the code for the new window
size. How do i fix this problem.

Also the text casts a shadow how do i get rid of the shadow cast by the
text. In case you were wondering it is a randering of a pool ball on a green
plane.

Thanks in advance.


Post a reply to this message

From: Warp
Subject: Re: Pov-Ray Render Windows?
Date: 25 Jun 2002 15:03:22
Message: <3d18be7a@news.povray.org>
maheshtd <mah### [at] onetelnetuk> wrote:
> I created an still image in PovRay. The Render Window is 120 by 160 pixels
> wide, when i render the scene it looks fine but as soon i switch to higher
> screen size such as 320 by 340 pixels.

  I wonder if you meant 320 by 240.

> Also the text casts a shadow how do i get rid of the shadow cast by the
> text. In case you were wondering it is a randering of a pool ball on a green
> plane.

  Reading the documentation usually helps.
  Use no_shadow

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: Pov-Ray Render Windows?
Date: 25 Jun 2002 15:14:35
Message: <3d18c11b@news.povray.org>
"maheshtd" <mah### [at] onetelnetuk> schrieb im Newsbeitrag
news:3d18af1e@news.povray.org...
> I created an still image in PovRay. The Render Window is 120 by 160 pixels
> wide, when i render the scene it looks fine but as soon i switch to higher
> screen size such as 320 by 340 pixels. The image in the scene becomes
> distorted and messy. Would I have to change the code for the new window
> size. How do i fix this problem.

Hi!

If you change the ratio between the image width and height, than you have to
modify your camera statement respectively. I.e. if you render 120 by 160
pixel, that is a ratio of 3/4. You would specify this by something like

right 4/3*x

in your camera statement.
320 by 340 Pixel is a totally different ratio. So, you have to change the
camera, too (f.e. right 17/16*x if I do not mix something up).

I hope I got your question right and could be of some help.

Marc-Hendrik


Post a reply to this message

From: bob h
Subject: Re: Pov-Ray Render Windows?
Date: 27 Jun 2002 04:36:26
Message: <3d1ace8a@news.povray.org>
"Marc-Hendrik Bremer" <Mar### [at] t-onlinede> wrote in message
news:3d18c11b@news.povray.org...
> "maheshtd" <mah### [at] onetelnetuk> schrieb im Newsbeitrag
> news:3d18af1e@news.povray.org...
> > I created an still image in PovRay. The Render Window is 120 by 160
pixels
> > wide, when i render the scene it looks fine but as soon i switch to
higher
> > screen size such as 320 by 340 pixels. The image in the scene becomes
> > distorted and messy. Would I have to change the code for the new window
> > size. How do i fix this problem.
>
> If you change the ratio between the image width and height, than you have
to
> modify your camera statement respectively. I.e. if you render 120 by 160
> pixel, that is a ratio of 3/4. You would specify this by something like
>
> right 4/3*x
>
> in your camera statement.

Unless of course 120 wide by 160 high was intended.

> 320 by 340 Pixel is a totally different ratio. So, you have to change the
> camera, too (f.e. right 17/16*x if I do not mix something up).
>
> I hope I got your question right and could be of some help.

Nothing wrong with using the exact same numbers taken from the resolution,
ie. right 320/340. Reducing fractions isn't always something you might want
to be taking time to do for uncommon ones.  ;-)  In fact, remember, POV-Ray
3.5 will do this with the new keywords like so: right
image_width/image_height. Then there isn't even any confusion over which is
which.

bob h


Post a reply to this message

From: Warp
Subject: Re: Pov-Ray Render Windows?
Date: 27 Jun 2002 07:30:50
Message: <3d1af769@news.povray.org>
bob h <omn### [at] charternet> wrote:
> In fact, remember, POV-Ray
> 3.5 will do this with the new keywords like so: right
> image_width/image_height. Then there isn't even any confusion over which is
> which.

  Be aware that if you do this and you change the aspect ratio, the rendered
image will *not* be the same as with another aspect ratio. Depending on
which way you change the aspect ratio of the image, part of the original
scene will be left out of the image, or a part of the scene not visible
in the original image will appear.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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