POV-Ray : Newsgroups : povray.beta-test : UV Mapping Bug in Bezier Lathes Server Time
29 Jun 2024 11:53:53 EDT (-0400)
  UV Mapping Bug in Bezier Lathes (Message 1 to 2 of 2)  
From: Edouard
Subject: UV Mapping Bug in Bezier Lathes
Date: 16 Jun 2010 21:10:00
Message: <web.4c19758e2d8878da3e4d73ef0@news.povray.org>
Oh - I just tried this again, and the bug is still present in 3.7.

See
http://news.povray.org/povray.binaries.images/thread/%3C48d6bbcb%40news.povray.org%3E
for the original post, and an image of the bug.

Following is the scene that causes it (copied from the p.b.i post)

Cheers,
Edouard.


camera {
 perspective
 location < 0.0, 3, -6>
 right x * 1
 up y * image_height / image_width
 angle 45
 look_at < 0, 0.5, 0>
}

light_source {
 < -20, 15, -15>
 rgb 1
}

plane {
 <0.0, 1.0, 0.0>, 0.0
 pigment { checker rgb 1, rgb 0.8 }
}

#declare linear_lathe =
lathe {
 linear_spline
 7,
 <0.00000, 0.00000>, <0.25000, 0.06699>,
 <0.43301, 0.25000>, <0.50000, 0.50000>,
 <0.43301, 0.75000>, <0.25000, 0.93301>,
 <0.00000, 1.00000>
}


#declare quadratic_lathe =
lathe {
 quadratic_spline
 8,
 <0.00000, 0.00000>, <0.00000, 0.00000>,
 <0.25000, 0.06699>, <0.43301, 0.25000>,
 <0.50000, 0.50000>, <0.43301, 0.75000>,
 <0.25000, 0.93301>, <0.00000, 1.00000>
}


#declare cubic_lathe =
lathe {
 cubic_spline
 9,
 <0.00000, 0.00000>, <0.00000, 0.00000>,
 <0.25000, 0.06699>, <0.43301, 0.25000>,
 <0.50000, 0.50000>, <0.43301, 0.75000>,
 <0.25000, 0.93301>, <0.00000, 1.00000>,
 <0.00000, 1.00000>
}


#declare bezier_lathe =
lathe {
 bezier_spline
 24,
 <0.00000, 0.00000>, <0.08682, 0.00760>,
 <0.17101, 0.03015>, <0.25000, 0.06699>,
 <0.25000, 0.06699>, <0.32139, 0.11698>,
 <0.38302, 0.17861>, <0.43301, 0.25000>,
 <0.43301, 0.25000>,  <0.46985, 0.32899>,
 <0.49240, 0.41318>, <0.50000, 0.50000>,
 <0.50000, 0.50000>, <0.49240, 0.58682>,
 <0.46985, 0.67101>, <0.43301, 0.75000>,
 <0.43301, 0.75000>, <0.38302, 0.82139>,
 <0.32139, 0.88302>, <0.25000, 0.93301>,
 <0.25000, 0.93301>, <0.17101, 0.96985>,
 <0.08682, 0.99240>, <0.00000, 1.00000>
}


#declare uv_pigment =
pigment {
 uv_mapping
 gradient y
 color_map {
  [ 0.0 rgb <1,0,0> ]
  [ 0.333 rgb <0,0,1> ]
  [ 0.666 rgb <0,1,0> ]
  [ 1.0 rgb <1,0,0> ]
 }
}

lathe {
 linear_lathe
 pigment { uv_pigment }
 translate x*-1.8
}

lathe {
 quadratic_lathe
 pigment { uv_pigment }
 translate x*-0.6
}

lathe {
 cubic_lathe
 pigment { uv_pigment }
 translate x*0.6
}

lathe {
 bezier_lathe
 pigment { uv_pigment }
 translate x*1.8
}

sor {
 9
 <0.00000, 0.00000>, <0.00000, 0.00000>,
 <0.25000, 0.06699>, <0.43301, 0.25000>,
 <0.50000, 0.50000>, <0.43301, 0.75000>,
 <0.25000, 0.93301>, <0.00000, 1.00000>,
 <0.00000, 1.00000>
 pigment { uv_pigment }
 translate z*1.8
}


Post a reply to this message

From: clipka
Subject: Re: UV Mapping Bug in Bezier Lathes
Date: 19 Jun 2010 10:49:11
Message: <4c1cd8e7$1@news.povray.org>
Am 17.06.2010 03:08, schrieb Edouard:
> Oh - I just tried this again, and the bug is still present in 3.7.
>
> See
>
http://news.povray.org/povray.binaries.images/thread/%3C48d6bbcb%40news.povray.org%3E
> for the original post, and an image of the bug.

Thanks for bringing this to attention.

Would you mind entering a bug report on <http://bugs.povray.org>?


Post a reply to this message

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