POV-Ray : Newsgroups : povray.general : Zoomin_inc.inc, mod, int, help needed : Zoomin_inc.inc, mod, int, help needed Server Time
29 Jul 2024 02:31:57 EDT (-0400)
  Zoomin_inc.inc, mod, int, help needed  
From: StephenS
Date: 21 Apr 2013 10:25:01
Message: <web.5173f68e47741b706477c72f0@news.povray.org>
I would like to print a 3' x 7' door at a 1 to 1 scale.
My printer outputs 203mm x 270mm, about 1.3300 ratio.

Useing Slime's Zoomin_inc.inc I can chop up a camera statement into 7x7 printed
papers, resulting into about a 1 to 1 scale.

---
#declare Camera7x7 =
#if (frame_number>0 | frame_number<50)
Set_Zoom_Area(
 CameraLocation,
 CameraLookAt,
 concat("+sc",str(mod(frame_number-1,7)/7,1,4),
        " +sr",str(int((frame_number-1)/7)/7,1,4),
        " +ec",str(mod(frame_number,7)/7,1,4),
        " +er",str(int(frame_number/7+1)/7,1,4)
       )
)
Update_Camera_Zoom()
#end
---

Since the ratio of door to printed output is not the same, at this scale I don't
use the last column of pictures. Which is good because the last column is wrong!

I want to go from
0.0 to 1/num.... num-1/num to 1.0
for each column
and then repeat for each row

Suggestions?

Stephen S


Post a reply to this message

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