BasicEffect.Projection을
(1) Matrix.CreateOrthographicOffCenter(0.0f, graphicsDevice.Viewport.Width, graphicsDevice.Viewport.Height, 0.0f, 0.0f, 1.0f);
이렇게 주면 (0, 0)이 screen의 좌상단이 되고,
(2) Matrix.CreateOrthographicOffCenter(0.0f, graphicsDevice.Viewport.Width, 0,0f, graphicsDevice.Viewport.Height, 0.0f, 1.0f);
이렇게 주면 (0, 0)이 좌하단이 되는데...
이후 TriangleStrip 옵션으로 DrawUserPrimitives() 함수를 이용해 삼각형을 그리면
(1)번은 안 보이고, (2)번은 잘 보임-_-
혹시나 싶어 MSDN에 있는 예제를 가지고 해 봤는데 마찬가지;;;
단지 기준 좌표만 바뀐 것 뿐인데 결과가 왜 다른지 이유 아시는 분 답변 좀... ㅠ
혹시 WP7 버그인가;;;
written by jungdal...
(1) Matrix.CreateOrthographicOffCenter(0.0f, graphicsDevice.Viewport.Width, graphicsDevice.Viewport.Height, 0.0f, 0.0f, 1.0f);
이렇게 주면 (0, 0)이 screen의 좌상단이 되고,
(2) Matrix.CreateOrthographicOffCenter(0.0f, graphicsDevice.Viewport.Width, 0,0f, graphicsDevice.Viewport.Height, 0.0f, 1.0f);
이렇게 주면 (0, 0)이 좌하단이 되는데...
이후 TriangleStrip 옵션으로 DrawUserPrimitives() 함수를 이용해 삼각형을 그리면
(1)번은 안 보이고, (2)번은 잘 보임-_-
혹시나 싶어 MSDN에 있는 예제를 가지고 해 봤는데 마찬가지;;;
단지 기준 좌표만 바뀐 것 뿐인데 결과가 왜 다른지 이유 아시는 분 답변 좀... ㅠ
혹시 WP7 버그인가;;;
written by jungdal...
망글엔 컬링 방향
아.. 방향이 문제가 되는 거였구나;;; 규! 쌩유~