POV-Ray : Newsgroups : povray.binaries.images : "Missing" lines Server Time
1 Nov 2024 04:13:58 EDT (-0400)
  "Missing" lines (Message 1 to 3 of 3)  
From: Bald Eagle
Subject: "Missing" lines
Date: 4 Mar 2014 16:34:53
Message: <531646fd@news.povray.org>
See discussion in p.general:

I'm laying out a large facility, and trying to view a tiling grid and 
some layout lines.  I've noticed that when I zoom way out, I lose some 
lines, and get tricked into thinking they're not there, which gives the 
floor tiling grid an effect that fooled me into thinking I'd messed up 
the scaling.
Some of the yellow layout "lines" (and these are HUGE cylinders) also 
inexplicably disappear when I zoom out.  Rotate view y*90, and the other 
lines disappear!


(Skysphere commented out to provide black background for annotations)
It seems to be an ALMOST regular cancellation of the lines...


Post a reply to this message


Attachments:
Download 'facility.png' (161 KB)

Preview of image 'facility.png'
facility.png


 

From: Jaime Vives Piqueres
Subject: Re: "Missing" lines
Date: 4 Mar 2014 17:00:36
Message: <53164d04$1@news.povray.org>

> See discussion in p.general:
>
> I'm laying out a large facility, and trying to view a tiling grid
> and some layout lines.  I've noticed that when I zoom way out, I
> lose some lines, and get tricked into thinking they're not there,
> which gives the floor tiling grid an effect that fooled me into
> thinking I'd messed up the scaling. Some of the yellow layout "lines"
> (and these are HUGE cylinders) also inexplicably disappear when I
> zoom out.  Rotate view y*90, and the other lines disappear!

   That's really typical when you don't use antialiasing and the lines
are less than 1 pixel apart for the render size. Use a bigger render
size and high antialiasing (I had to use +w1200 +h900 +a0.0 +r7 to get a
noticeable grid).

--
Jaime


Post a reply to this message

From: Samuel Benge
Subject: Re: "Missing" lines
Date: 5 Mar 2014 14:10:00
Message: <web.5317756131848b6bc9863de70@news.povray.org>
Bald Eagle <cre### [at] netscapenet> wrote:
> Some of the yellow layout "lines" (and these are HUGE cylinders) also
> inexplicably disappear when I zoom out.  Rotate view y*90, and the other
> lines disappear!

The lines are disappearing under the effects of aliasing. This commonly affects
lines falling along the four cardinal directions (north, south, east, west). For
2D images such as yours, it's best to set the line thickness according to the
image's width or height. This can be done automatically:

  #declare LineThick = 2/image_width;

where "2" is the target thickness, in pixels. To get lines only a pixel in width
to show up, you'll need to slightly translate the line perpendicularly from its
own direction, like so:

  cylinder{
    -x, x, LineThick
    pigment{rgb x+y}
    translate y*1/image_height
  }

For zooming in/out, it's helpful to design your camera a bit differently and
alter the line thickness equation like so:

  #declare CamScale = 2;
  #declare LineThick = 2*CamScale/image_width;

  camera{
    orthographic
    right x*2 up y*2
    location -z*1e5
    look_at z
    scale CamScale
  }

The lines might still disappear if they are only a pixel thick, so it's best to
use thicknesses greater than 1 pixel.

Hope that helps!

Sam


Post a reply to this message

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