查看单个帖子
旧 2009-05-05, 11:57 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】hatch render above below

hatch render above/ below
hatch render above/ below
hi,
i was wondering how i can know what the rules are on when a hatch is rendered.
ie - two hatches on top of each other, which one do i render first. the first one i find in the file?, is there a flag indicating render order? something else i am missing ?
cheers
jason
it depends.
first, it works differently in 2d wireframe and 3d render modes.
in 3d modes it all depends on position of 2 entities (which one is closer to the camera). if entities are in the same plane the result is unpredictable.
in 2d wireframe render mode all depends on drawing order. by default entity which appeared in file first is rendered first.
but this order can be changed using oddbsortentstable methods.
the sort table is returned by oddbblocktablerecord::getsortentstable() method (it makes sense for layout blocks).
if the sorttable is taken into account or not also depends on value of sortents variable.
btw, oddbblocktablerecord::newiterator() can return "sorted" iterator which takes into account the sort table.
sergey slezkin
last edited by mmuratov; 29th january 2007 at 03:56 amfff">.
thank you.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)