[Aqsis-commits] SF.net SVN: aqsis:[2732] trunk/testing/regression
Brought to you by:
ltatkinson,
pgregory
From: <c4...@us...> - 2009-02-01 11:16:46
|
Revision: 2732 http://aqsis.svn.sourceforge.net/aqsis/?rev=2732&view=rev Author: c42f Date: 2009-02-01 11:16:41 +0000 (Sun, 01 Feb 2009) Log Message: ----------- Add test case for bug #1829339 fixed in revision 2731 [Artefacts in SDS render (large micropolygons)] Revision Links: -------------- http://aqsis.svn.sourceforge.net/aqsis/?rev=2731&view=rev Modified Paths: -------------- trunk/testing/regression/RIBs/Primitives/Subdivision/jobs.cfg Added Paths: ----------- trunk/testing/regression/RIBs/Primitives/Subdivision/large_micropolygons_bug1829339.rib trunk/testing/regression/reference/large_micropolygons_bug1829339.tif trunk/testing/regression/shaders/show_micropolys.sl Modified: trunk/testing/regression/RIBs/Primitives/Subdivision/jobs.cfg =================================================================== --- trunk/testing/regression/RIBs/Primitives/Subdivision/jobs.cfg 2009-02-01 11:06:48 UTC (rev 2731) +++ trunk/testing/regression/RIBs/Primitives/Subdivision/jobs.cfg 2009-02-01 11:16:41 UTC (rev 2732) @@ -170,17 +170,60 @@ """) RenderJob("", "subdivision_corners_creases_bug938941.rib", - description=""" -<b>Bug 938941: Subdivision corners and creases</b> -<p>This scene renders five subdivision surfaces with identical cube-shaped control meshes. -The upper-left surface uses default parameters to create a sphere-like shape. Moving left-to-right, -the second and third surfaces have "corner" tags assigned to every vertex, with values of 2.0 and 5.0 respectively. -This should produce increasingly "pointy" shapes. -Moving top-to-bottom, the fourth and fifth surfaces have "crease" tags assigned to every edge, with values of 2.0 and -5.0. This should produce increasingly "hard" edges so that the bottom shape should (almost) be a cube. -""", -known_issues="""The two objects with sharp corners have <em>equally</em> sharp corners -as variable-sharpness corners are not yet implemented in Aqsis. -See <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=938941&group_id=25264&atid=383970">http://sourceforge.net/tracker/index.php?func=detail&aid=938941&group_id=25264&atid=383970</a> -""" -) + description=""" + <b>Bug 938941: Subdivision corners and creases</b> + <p>This scene renders five subdivision surfaces with identical cube-shaped control meshes. + The upper-left surface uses default parameters to create a sphere-like shape. Moving left-to-right, + the second and third surfaces have "corner" tags assigned to every vertex, with values of 2.0 and 5.0 respectively. + This should produce increasingly "pointy" shapes. + Moving top-to-bottom, the fourth and fifth surfaces have "crease" tags assigned to every edge, with values of 2.0 and + 5.0. This should produce increasingly "hard" edges so that the bottom shape should (almost) be a cube. + """, + known_issues="""The two objects with sharp corners have <em>equally</em> sharp corners + as variable-sharpness corners are not yet implemented in Aqsis. + See <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=938941&group_id=25264&atid=383970">http://sourceforge.net/tracker/index.php?func=detail&aid=938941&group_id=25264&atid=383970</a> + """ + ) + +RenderJob("", "large_micropolygons_bug1829339.rib", + shaders=["../../../shaders/show_micropolys.sl"], + description=""" + <p><b>Bugfix 1829339: Artefacts in SDS render (large micropolygons)</b></p> + <p> + The Diceable() check for subdivision surfaces previously had difficulty + calculating the correct dice size for some mesh geometries. For subdivision + meshes which have a large polygon next to a very small one, the size of the + small polygon on the limit surface can be larger by an arbitrary amount. + However, the Diceable() function used the positions of the non-limit mesh + vertices to estimate the dicing rate for a subdivision patch. This + sometimes led to huge underestimates of the appropraite dice size with very + large micropolygons as a result. + </p> + <p> + The test mesh has a very small lower-left and right corners which expands + under the subdivision rules to form much larger patchs at the limit + surface. If the bug is in evidence, some very large micropolygons will be + seen in the bottom left and right. + </p> + <p> + A triangular upper-left corner and pentagonal upper-right corner + are also included to further test some of the special cases in the limit + mask code. + </p> + + <p> + Mesh topology: + </p> + +<pre> + +-------+-+ + /| | `+ + +-+-------+---+ + | | | | + | | | | + | | | | + +-+-------+---+ + | | | | + +-+-------+---+ +</pre> + """) Added: trunk/testing/regression/RIBs/Primitives/Subdivision/large_micropolygons_bug1829339.rib =================================================================== --- trunk/testing/regression/RIBs/Primitives/Subdivision/large_micropolygons_bug1829339.rib (rev 0) +++ trunk/testing/regression/RIBs/Primitives/Subdivision/large_micropolygons_bug1829339.rib 2009-02-01 11:16:41 UTC (rev 2732) @@ -0,0 +1,74 @@ +Option "searchpath" "shader" ["../../../shaders/"] + +Display "large_micropolygons_bug1829339.tif" "file" "rgb" "compression" "lzw" +#Display "+large_micropolygons_bug1829339.tif" "framebuffer" "rgb" + +Format 300 300 1 +Projection "perspective" "fov" 45 +Translate 0 0 3 + + +WorldBegin + +ShadingInterpolation "constant" + +Surface "show_micropolys" + +# This mesh has a very small lower-left and right corners which expands under +# the subdivision rules to form much larger patchs at the limit surface. +# +# A triangular upper-left corner and pentagonal upper-right corner are also +# included to further test some of the special cases in the limit mask code. +# +# Mesh topology: +# +# +------------------+-+ +# /| | `+ +# +-+------------------+---+ +# | | | | +# | | | | +# | | | | +# | | | | +# | | | | +# | | | | +# | | | | +# +-+------------------+---+ +# | | | | +# +-+------------------+---+ +# +SubdivisionMesh "catmull-clark" [4 4 4 4 4 4 3 4 5] + [ + 0 1 5 4 + 1 2 6 5 + 2 3 7 6 + 4 5 9 8 + 5 6 10 9 + 6 7 11 10 + 8 9 12 + 9 10 13 12 + 10 11 15 14 13 + ] + ["interpolateboundary"] [0 0] [] [] + "P" [ + -1 -1 0 + -0.95 -1 0 + 0.95 -1 0 + 1 -1 0 + + -1 -0.95 0 + -0.95 -0.95 0 + 0.95 -0.95 0 + 1 -0.95 0 + + -1 0.95 0 + -0.95 0.95 0 + 0.95 0.95 0 + 1 0.95 0 + + -0.95 1 0 + 0.95 1 0 + 0.98 1 0 + 1 0.98 0 + ] + +WorldEnd Added: trunk/testing/regression/reference/large_micropolygons_bug1829339.tif =================================================================== (Binary files differ) Property changes on: trunk/testing/regression/reference/large_micropolygons_bug1829339.tif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/testing/regression/shaders/show_micropolys.sl =================================================================== --- trunk/testing/regression/shaders/show_micropolys.sl (rev 0) +++ trunk/testing/regression/shaders/show_micropolys.sl 2009-02-01 11:16:41 UTC (rev 2732) @@ -0,0 +1,6 @@ +surface show_micropolys() +{ + Ci = random(); + Oi = 1; +} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |