POV-Ray : Newsgroups : povray.newusers : Ortho camera help needed Server Time
1 Nov 2024 17:21:02 EDT (-0400)
  Ortho camera help needed (Message 1 to 4 of 4)  
From: NullVoid
Subject: Ortho camera help needed
Date: 6 Apr 2005 10:35:00
Message: <web.4253f2d97553ced11f34f480@news.povray.org>
I am currently trying to create a set of graphics with a certain
step along the edges. Using a square tile, I want to rotate the
camera, in ortho view, so that the tile will look like this:

000000000011110000000000
000000001111111100000000
000000111111111111000000
000011111111111111110000
001111111111111111111100
001111111111111111111100
000011111111111111110000
000000111111111111000000
000000001111111100000000
000000000011110000000000

As you can see, this would allow for a perfect fit between the tiles.
Unfortunately, after many tries, I have been unable to get this done.
If anyone can help me get the right camera settings, I would be
thankful indeed :-)


Post a reply to this message

From: Warp
Subject: Re: Ortho camera help needed
Date: 6 Apr 2005 10:36:24
Message: <4253f3e8@news.povray.org>
NullVoid <nomail@nomail> wrote:
> As you can see, this would allow for a perfect fit between the tiles.
> Unfortunately, after many tries, I have been unable to get this done.
> If anyone can help me get the right camera settings, I would be
> thankful indeed :-)

  Did you try with a 'rotate' command at the end of the camera block?

-- 
#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: NullVoid
Subject: Re: Ortho camera help needed
Date: 6 Apr 2005 11:55:00
Message: <web.4254061f95e2a3f311f34f480@news.povray.org>
I've been trying just that, unfortunately, it seems I can't find just the
right angle. Also, I made a mistake in the above diagram. One of the middle
lines ought to be removed, as such:

000000000011110000000000
000000001111111100000000
000000111111111111000000
000011111111111111110000
001111111111111111111100
000011111111111111110000
000000111111111111000000
000000001111111100000000
000000000011110000000000

These are my current camera settings:

camera {
  orthographic
  location <0,0,1>
  look_at  <0,0,0>
  right 1*x
  up 1*y
  rotate <52, 0, 45>
}

I've only been rotating the first number, and the closest I got so far
was as the first diagram was, but after I realized my mistake, I kept
changing
the rotation, with no luck.


Post a reply to this message

From: Mike C
Subject: Re: Ortho camera help needed
Date: 10 Apr 2005 10:12:24
Message: <42593448@news.povray.org>
"NullVoid" <nomail@nomail> wrote in
news:web.4254061f95e2a3f311f34f480@news.povray.org: 

[snip]
> 
> 000000000011110000000000
> 000000001111111100000000
> 000000111111111111000000
> 000011111111111111110000
> 001111111111111111111100
> 000011111111111111110000
> 000000111111111111000000
> 000000001111111100000000
> 000000000011110000000000
> 
[snip]
> 
> I've only been rotating the first number, and the closest I got so far
> was as the first diagram was, but after I realized my mistake, I kept
> changing
> the rotation, with no luck.

I have no experience with ortho cameras, so don't shoot me if this 
doesn't work, but maybe you want to try:

camera {
  orthographic
  location <0,1,0>  // change the y value to be higher if you want a
      //picture from farther away
  look_at  <0,0,0>
  right 1*x
  up 1*y
  rotate <0,45,0>
}

Maybe it works?

Just my two cents.
-Mike C


Post a reply to this message

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