1

I render a 3D data by setting device.RenderState.AlphaBlendEnable = true

it gives a side view like below: Pic1 shows side view @ solid filled mode

Pic2 shows side view @ wired frame mode

Now my top view looks like this, the outer surface layer covered the underneath layers and resulting only outer layer is displayed at top view.

Pic3 shows top view @ solid filled mode

I would like to view the underneath layer from top view. How do I do this? Is there any setting can be done in Microsoft.DirectX ?

Update: Question is solved by myself

device.RenderState.ZBufferWriteEnable = false;
4

2 回答 2

1
device.RenderState.ZBufferWriteEnable = false;
于 2013-11-13T00:52:56.003 回答
0

没有设置允许这样做。理想情况下,您需要对所有图层进行排序,以便从后到前绘制它们。

如果您无法使用不依赖于订单的“添加剂”混合物之类的东西。

最后有一种称为深度剥离的方法,它允许您进行与顺序无关的透明度。

于 2013-09-05T08:18:13.370 回答