POV-Ray : Newsgroups : povray.general : Width of line : Width of line Server Time
30 Jul 2024 10:12:54 EDT (-0400)
  Width of line  
From: twister
Date: 8 Apr 2009 07:45:00
Message: <web.49dc8df95dd63425c9ee64130@news.povray.org>
Hello,
I was given a povray script with some predefined settings. I have written a
#macro that draws a line (of some width W) according to scenario:
1. take i-th point of line
2. take (i+1)-th point of line
3. take (i+2)-th point of line
4. caclulate vector V1 from points i, i+1
5. caclulate vector V2 from points i+1, i+2
6. calculate perpendicular right vectors V1p and V2p
7. calculate new right point using point i and vector V1p
8. calculate new right point using point i+1 and vector V2p
9. draw polygon with prism
10. Increment i
11. goto 1.

Basically everything works fine but when a line goes straight and than turns I
can see the bigger width of line in the turn area than in straight area. It
looks something is wrong with the camera settings because when the camera is
located right obove the line and is looking from the top (90 degrees to the
line surface) everything looks good. Usually camera is located in other point
so looking vector is not perpendicular to the line surface.

Camera settings look like this:
camera {
  location  <-5000, 25000,  -40000>
  direction 13 * z
  up        24 * y
  right     36 * x
  look_at   <-5000, -7000, -10000>
}

I know up and right parameters may influence the content of the view they are
set somehow properly for image (600x400 - 1.5 ratio, 36/24 - 1.5 ratio)

Is there a way to check what is going on?

Regards,
twister


Post a reply to this message

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