visnyin / softart

Automatically exported from code.google.com/p/softart
Other
0 stars 0 forks source link

create plane不同的参数渲染不正确 #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
SampleWindow底部的plane,把创建参数改成如下,会出现如图的bug
:

        planar_mesh = create_planar(
            hsr.get(), 
            vec3(-3.0f, -1.0f, -3.0f), 
            vec3(6, 0.0f, 0.0f), 
            vec3(0.0f, 0.0f, 6),
            1, 1, true
            );
原来的参数是
        planar_mesh = create_planar(
            hsr.get(), 
            vec3(-3.0f, -1.0f, -3.0f), 
            vec3(0.5f, 0.0f, 0.0f), 
            vec3(0.0f, 0.0f, 0.5f),
            20, 20, true
            );
原来是20*20个矩形共800个三角形组成一个平面。改成2个三角��
�组成一个平面后出现如图的bug

Original issue reported on code.google.com by mybio...@gmail.com on 14 Mar 2010 at 10:47

Attachments:

GoogleCodeExporter commented 8 years ago
This defect pointed out by anlaysis is caused by titing engine.
Some solutions, taking the clip stage at the front of tiling or changing the 
tiling
algorithm can fix this bug.

Original comment by wuye9036 on 15 Mar 2010 at 11:36

GoogleCodeExporter commented 8 years ago

Original comment by mybio...@gmail.com on 15 Mar 2010 at 1:24

GoogleCodeExporter commented 8 years ago
Fixed after I modified the tiling algorithm.

Original comment by minmin.gong on 16 Apr 2010 at 5:22

GoogleCodeExporter commented 8 years ago

Original comment by wuye9036 on 15 Dec 2011 at 3:32

GoogleCodeExporter commented 8 years ago

Original comment by wuye9036 on 7 Mar 2012 at 2:58

GoogleCodeExporter commented 8 years ago

Original comment by wuye9036 on 7 Mar 2012 at 3:01