开发者

Enabling Direct3D-specific features (transparency AA)

I am trying to enable transparency antialiasin开发者_如何学编程g in my Ogre-Direct3D application, but it just won't work.

HRESULT hres = d3dSystem->getDevice()->SetRenderState(D3DRS_ADAPTIVETESS_Y, (D3DFORMAT)MAKEFOURCC('S', 'S', 'A', 'A'));
/// returned value : hres == S_OK !

This method is taken from NVidia's technical report.

I can enable transparency AA manually through the NVIDIA Control Panel, but surely I can't ask my users to do it like this. Anyone has any idea?

Thank you for your time,

Bill


Next time you have this kind of a problem, be sure to debug what states are currently active et al.

For example you could enable direct3D debug mode and enable state changes logging. As shown here: http://blog.rthand.com/post/2010/10/25/Capture-DirectX-1011-debug-output-to-Visual-Studio.aspx

Hope that helps, Cheers, Roel

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜