큰 headhache 렌더링 호기심 깊이 (내게로) : 이미 유사한 문제에 대한 많은 답을 발견했습니다
XNA 4.0 풀리지 깊이 문제와 관련된 XNA 4.0
,하지만 하나의 작업 나를 위해 ...
장치는 다음과 같이 설정됩니다
잔인한 문제 해결로xnaPanel1.Device.BlendState = BlendState.Opaque;
xnaPanel1.Device.DepthStencilState = DepthStencilState.Default;
xnaPanel1.Device.PresentationParameters.DepthStencilFormat = DepthFormat.Depth24Stencil8;
[...]
Projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, 4.0f/3.0f, 0.1f, 1000f);
, 내가 시도 대부분의 DepthStencilFormat 및 DepthStencilState 가능성 ... 아무도 내가 원하는 것처럼 작동하지 않습니다.
투영 매트릭스에 대해서는 많은 nearclip 및 farclip 값도 시도했습니다. (큐브 너비 : 10f) 올바른 결과를 얻을 수 없습니다.
나는 많은 불투명 한 텍스처로 이것을 테스트 해 보았습니다.
BasicEffect는 사용하지 않지만 텍스처 + 노멀 맵을 사용하는 효과는 문제의 원인이 될 수 있습니까?
CubeEffect.fx
[...]
sampler2D colorMap = sampler_state
{
Texture = <colorMapTexture>;
MagFilter = Linear;
MinFilter = Anisotropic;
MipFilter = Linear;
MaxAnisotropy = 16;
};
sampler2D normalMap = sampler_state
{
Texture = <normalMapTexture>;
MagFilter = Linear;
MinFilter = Anisotropic;
MipFilter = Linear;
MaxAnisotropy = 16;
};
[...]
편집 : 나는 BasicEffect로 시도하고 문제는 ... 어떤 도움을 주셔서 감사합니다
그래서 동일)
Btw, 자신의 질문에 대답 해 주시면 정답으로 표시하셔야합니다. – dowhilefor
필자는 모든 PresentationParameters 항목이 제 대답에서 어떻게 작동하는지에 대한 설명을했습니다. –