POV-Ray : Newsgroups : povray.general : Zoomin_inc.inc, mod, int, help needed Server Time
26 Dec 2024 22:29:22 EST (-0500)
  Zoomin_inc.inc, mod, int, help needed (Message 1 to 4 of 4)  
From: StephenS
Subject: Zoomin_inc.inc, mod, int, help needed
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

From: StephenS
Subject: Re: Zoomin_inc.inc, mod, int, help needed
Date: 21 Apr 2013 11:35:01
Message: <web.517406e2a4309fa36477c72f0@news.povray.org>
"StephenS" <nomail@nomail> wrote:
....
> #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
> ---
....
for comparison, 3x3 works with this

---
#declare Camera3x3 =
#if (frame_number=1)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.0 +sr0.0 +ec0.3333 +er0.3333")
Update_Camera_Zoom()
#end
#if (frame_number=2)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.3333 +sr0.0 +ec0.6666
+er0.3333")
Update_Camera_Zoom()
#end
#if (frame_number=3)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.6666 +sr0.0 +ec1 +er0.3333")
Update_Camera_Zoom()
#end
#if (frame_number=4)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.0 +sr0.3333 +ec0.3333
+er0.6666")
Update_Camera_Zoom()
#end
#if (frame_number=5)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.3333 +sr0.3333 +ec0.6666
+er0.6666")
Update_Camera_Zoom()
#end
#if (frame_number=6)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.6666 +sr0.3333 +ec1
+er0.6666")
Update_Camera_Zoom()
#end
#if (frame_number=7)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.0 +sr0.6666 +ec0.3333 +er1")
Update_Camera_Zoom()
#end
#if (frame_number=8)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.3333 +sr0.6666 +ec0.6666
+er1")
Update_Camera_Zoom()
#end
#if (frame_number=9)
Set_Zoom_Area(CameraLocation, CameraLookAt, "+sc0.6666 +sr0.6666 +ec1 +er1")
Update_Camera_Zoom()
#end
#if (frame_number = 0 | frame_number >= 10)  // use unmodified camera
 camera {Camera3x3};
#end
---
carefull of word wrap

I would like a more easy to change way of presenting the information:-)

Stephen S


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Zoomin_inc.inc, mod, int, help needed
Date: 21 Apr 2013 12:55:30
Message: <51741a02@news.povray.org>
StephenS wrote:
> 
> 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.

I don't know about this include, but couldn't you simply render
one large image and split the result for printing afterwards? Either
manually or using image processing software such as image magick.


Post a reply to this message

From: StephenS
Subject: Re: Zoomin_inc.inc, mod, int, help needed
Date: 21 Apr 2013 15:45:01
Message: <web.5174414aa4309fa352d6acf0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
....
> I don't know about this include, but couldn't you simply render
> one large image and split the result for printing afterwards? Either
> manually or using image processing software such as image magick.

I have done this for sizes up to 3x3 printed pages.
The memory footprint stays the same with each bigger print size, the render
animation just runs longer.

Both work, I would like to have a choice which to choose.

Stephen S


Post a reply to this message

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