|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> When I try to find that according to the
> formula mentioned in that section, "direction_length = 0.5 * right_length
/
> tan(angle / 2) where right_length is the length of the right vector", I
come
> up with about 'direction 0.56' which is just more than half of what it
ought
> to be.
Really? I come up with 1.00722346241. The exact value for angle is 2 atan
(2/3), or about 67.38013502.
Anders
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Speaking of this, in doc sections 6.4.1.5.1 and 6.4.1.5.2, it says that the
default value for right is <1.33, 0, 0>. Shouldn't this be <4/3, 0, 0>, as
stated in section 6.4.1.5?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Anders K." <and### [at] f2scom> wrote in message
news:3bcc5632$1@news.povray.org...
> Speaking of this, in doc sections 6.4.1.5.1 and 6.4.1.5.2, it says that the
> default value for right is <1.33, 0, 0>. Shouldn't this be <4/3, 0, 0>, as
> stated in section 6.4.1.5?
Hmm, AFAIK 4/3 cannot be expressed accurately in either dec. or bin. - both
therefore look like approximations - or did you just mean for consistency's
sake?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Tom Melly wrote:
>
> Hmm, AFAIK 4/3 cannot be expressed accurately in either dec. or bin. - both
> therefore look like approximations - or did you just mean for consistency's
> sake?
To clarify things, the default right vector is 1.33*x so this is what the
docs should say too IMO.
Christoph
--
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Anders K." <and### [at] f2scom> wrote in message
news:3bcc53ab$1@news.povray.org...
> > When I try to find that according to the
> > formula mentioned in that section, "direction_length = 0.5 *
right_length
> /
> > tan(angle / 2) where right_length is the length of the right vector", I
> come
> > up with about 'direction 0.56' which is just more than half of what it
> ought
> > to be.
>
> Really? I come up with 1.00722346241. The exact value for angle is 2 atan
> (2/3), or about 67.38013502.
Right. Well, apparently tan 67/2 isn't a good way to go about calculating
it. I left off the parentheses in my quick attempt :-)
Bob H.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> To clarify things, the default right vector is 1.33*x so this is what the
> docs should say too IMO.
If the default right vector is really 1.33*x and not 4/3*x then that is a
program bug (or design flaw, or whatever), since the aspect ratio of the
images it normally produces is *exactly* 4 to 3 and not 1.33 to 1.
Of course, I realize that 1.33 is an "approximation" to 4/3, but IMO it's a
pretty bad approximation, especially for large images. And in this case
there is no need to approximate at all (other than the internal floating
point rounding error, which is going to be much, much less than .01). So I
think that both the program and the docs should use 4/3.
Anders
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:3BCC633C.FFF910D0@gmx.de Christoph Hormann wrote:
> To clarify things, the default right vector is 1.33*x so this is
> what the docs should say too IMO.
If this value comes from the source, I'll match the documentation.
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ingo wrote:
>
> If this value comes from the source, I'll match the documentation.
>
It does (in Povray 3.1)
Christoph
--
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ingo <ing### [at] homenl> wrote:
: If this value comes from the source, I'll match the documentation.
Also I think that it's the source which should be fixed (to 4.0/3.0).
--
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:3bcddd29@news.povray.org Warp wrote:
>: If this value comes from the source, I'll match the documentation.
>
> Also I think that it's the source which should be fixed (to
> 4.0/3.0).
>
Could The Team take a position on this so I can make the appropriate
changes?
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |