프로그래밍(58)
-
UNITY NGUI MissingReferenceException 문제점 해결
ERROR : MissingReferenceException: The object of type 'UILabel' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UIWidget.MarkAsChanged () (at Assets/NGUI/Scripts/Internal/UIWidget.cs:522) UILabel.MarkAsChanged () (at Assets/NGUI/Scripts/UI/UILabel.cs:773) ======================================== NGUI를 잘..
2013.12.11 -
유니티 쉐이더의 구조
일단 유니티의 쉐이더는 세가지를 지원한다. T&L 파이프라인, 서페이스쉐이더, 쉐이더(프로그래머블 파이프라인) 1) 다이렉트9버전까지의 그래픽지원은 T&L파이프라인만을 지원했다. 이것은 그냥 짜여진 순서에 의지하여 그래픽을 계산해내는 것으로 프로그래머가 직접 개입할수 없는 쉐이더다. (이제는 쉐이더라고 부르기 어려운 ...) InputData -> Transformation and Lighting -> Primitive Setup -> Resterizeation ->Pixel/FragmentProcessing ->Frame Buffer Bland (T&L파이프라인의 진행구조) 하드웨어적으로 제한되어 있어서 가감처리가 어려운 환경에서 사용하던 방식이라, 여러가지 효과를 위해서는 프로그래밍에서 트릭적인 테크..
2013.11.14 -
fatal error C1189
fatal error C1189 이 에러는 뭔가 헤더버전이 중첩될때 나타난는 듯하다. d3d10.h is included before d3d10_1.h, and it will confuse tools that honor SAL annotations. If possibly targeting d3d10.1, include d3d10_1.h instead of d3d10.h, or ensure d3d10_1.h is included before d3d10.h 라는 메세지가 나왔는데 d3d10을 인크루드하고 있는데, d3d10_1 의 이전버전이다 라는 내용인듯... 이 때 사용하는 라이브러리에서 d3d10_1을 헤더로 코어에서 사용하고 있었기 때문에 나는 두가지 가설을 생각해보았다. 1. 라이브러리와 동일한 헤..
2013.08.20