POV-Ray : Newsgroups : povray.general : 3.1r1 BUG REPORT : 2-d vectors, uv Server Time
5 Nov 2024 11:18:16 EST (-0500)
  3.1r1 BUG REPORT : 2-d vectors, uv (Message 1 to 7 of 7)  
From: Dan Connelly
Subject: 3.1r1 BUG REPORT : 2-d vectors, uv
Date: 25 Sep 1998 12:29:06
Message: <360BB6AC.99DFBFB6@flash.net>
Note on 3.1, bug reports have gone from email to news,
so I am posting mine here.

The component operators don't work on 2-d vectors.  This
problem has existed 3.02 (at least).   A sample file :

----------------------------------------
light_source { 3 color rgb 1 }
camera { location 2 look_at 0 }
sphere { 0, 1 pigment { color rgb 1 } }

#declare uv = <1, 2>;
#debug concat("uv.u = ", str(uv.u, 0, -1), "\n")
#debug concat("uv.v = ", str(uv.v, 0, -1), "\n")
----------------------------------------

Dan Connelly
Version 3.1r1 W95
PII 128MB

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: 3.1r1 BUG REPORT : 2-d vectors, uv
Date: 25 Sep 1998 12:56:26
Message: <360bbd2a.0@news.povray.org>
In article <360BB6AC.99DFBFB6@flash.net> , Dan Connelly <djc### [at] flashnet>  wrote:
>Note on 3.1, bug reports have gone from email to news,
>so I am posting mine here.

Of course I know you are talking about Windows, but this note is important:

As far as I know this only goes for the *Windows* version (only?), currently Eduard
and I accept bug reports for the Mac version via the regular (listed in the Mac docs!)
e-mail address pov### [at] compuservecom and of course via POVRAY forum (on CSi)
messages.


Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://www.povray.org


Post a reply to this message

From: Ron Parker
Subject: Re: 3.1r1 BUG REPORT : 2-d vectors, uv
Date: 25 Sep 1998 13:20:11
Message: <360bc2bb.0@news.povray.org>
On Fri, 25 Sep 1998 10:28:44 -0500, Dan Connelly <djc### [at] flashnet> wrote:
>Note on 3.1, bug reports have gone from email to news,
>so I am posting mine here.

Dan, you might want to get a new newsgroup list.  There's a 
newly-created newsgroup for bug reports.  Did nobody submit 
this bug by email to the official address for reporting bugs 
in the renderer, or what?


Post a reply to this message

From: Dan Connelly
Subject: Re: 3.1r1 BUG REPORT : 2-d vectors, uv
Date: 25 Sep 1998 13:42:11
Message: <360BC7CD.F0461396@flash.net>
Ron Parker wrote:
> 
> On Fri, 25 Sep 1998 10:28:44 -0500, Dan Connelly <djc### [at] flashnet> wrote:
> >Note on 3.1, bug reports have gone from email to news,
> >so I am posting mine here.
> 
> Dan, you might want to get a new newsgroup list.  There's a
> newly-created newsgroup for bug reports.

Thanks for the note!  I'll check it out.


>  Did nobody submit
> this bug by email to the official address for reporting bugs
> in the renderer, or what?

I submitted it during the beta period, but perhaps it got lost
in the shuffle.  Other bugs I submitted were handled promptly
and I received personal responses.

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

From: Ron Parker
Subject: Re: 3.1r1 BUG REPORT : 2-d vectors, uv
Date: 25 Sep 1998 13:49:20
Message: <360bc990.0@news.povray.org>
On Fri, 25 Sep 1998 11:41:49 -0500, Dan Connelly <djc### [at] flashnet> wrote:
>Ron Parker wrote:
>>  Did nobody submit
>> this bug by email to the official address for reporting bugs
>> in the renderer, or what?
>
>I submitted it during the beta period, but perhaps it got lost
>in the shuffle.  Other bugs I submitted were handled promptly
>and I received personal responses.

Ditto.  Overall, I have to say I'm very pleased with the responses
I got to the bug reports I submitted.  I think the POV-Team did a
great job handling all of them.


Post a reply to this message

From: John VanSickle
Subject: Re: 3.1r1 BUG REPORT : 2-d vectors, uv
Date: 25 Sep 1998 19:55:18
Message: <360C0F0E.7F131770@erols.kosher.com>
Dan Connelly wrote:
> 
> Note on 3.1, bug reports have gone from email to news,
> so I am posting mine here.
> 
> The component operators don't work on 2-d vectors.  This
> problem has existed 3.02 (at least).   A sample file :
> 
> ----------------------------------------
> light_source { 3 color rgb 1 }
> camera { location 2 look_at 0 }
> sphere { 0, 1 pigment { color rgb 1 } }
> 
> #declare uv = <1, 2>;
> #debug concat("uv.u = ", str(uv.u, 0, -1), "\n")
> #debug concat("uv.v = ", str(uv.v, 0, -1), "\n")

The vector uv probably got promoted to a 3-dimensional vector.  When POV
expects a <u,v> vector and it is given an <x,y,z> vector, strange things
happen.  If you declare it this way:

  #declare uv= u + 2*v;

it might work differently.

Hope this helps,
John
-- 
"He has the power to rear-project major cities!" -- Mike Nelson


Post a reply to this message

From: Dan Connelly
Subject: Re: 3.1r1 BUG REPORT : 2-d vectors, uv
Date: 25 Sep 1998 20:15:40
Message: <360C2401.305C0951@flash.net>
John VanSickle wrote:
> 
> Dan Connelly wrote:
> > ----------------------------------------
> > light_source { 3 color rgb 1 }
> > camera { location 2 look_at 0 }
> > sphere { 0, 1 pigment { color rgb 1 } }
> >
> > #declare uv = <1, 2>;
> > #debug concat("uv.u = ", str(uv.u, 0, -1), "\n")
> > #debug concat("uv.v = ", str(uv.v, 0, -1), "\n")
> 
> The vector uv probably got promoted to a 3-dimensional vector.  When POV
> expects a <u,v> vector and it is given an <x,y,z> vector, strange things
> happen.  If you declare it this way:
> 
>   #declare uv= u + 2*v;
> 
> it might work differently.
> 
> Hope this helps,
> John
> --
> "He has the power to rear-project major cities!" -- Mike Nelson

Actually, I see no difference.... if <1,2> would get promoted,
so would <u + 2*v>.... the expression parser would substitute
the values of u and v, then parse the result.

In any case, the suggested fix makes the same error.

But promotion shouldn't matter, since v works with 3-d vectors and
y fails on 2-d vectors.

The code fix for this bug has previously been reported by someone
else.  I will see if I can track it down in the source myself.


Dan


-- 
http://www.flash.net/~djconnel/


Post a reply to this message

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