기본 콘텐츠로 건너뛰기

2013의 게시물 표시

Unity3D 최적화 - 2012년 6월

1. 프로파일러를 이용해서 병목현상 체크하기.  - Window > Profiler 메뉴를 이용한다. 2. 컬링 기법 이용하기.  - 프러스텀 컬링 (Frustum Culling) : 레이어별로 컬링 거리를 따로 지정 가능하다.  - 오클루전 컬링 (Occlusion Culling) : Window > Occlusion Culling 메뉴를 이용한다. 3. 드로우콜 체크하기.  - 드로우콜은 게임 오브젝트에 설정된 재질의 셰이더 패스당 하나씩 일어난다.  - 렌더러에 사용한 재질의 수만큼 드로우콜이 발생한다.  - 드로우콜의 발생을 최소화하기 위해서는 성질이 동일한 물체들은 하나의 메쉬와 재질을 사용하도록 통합하는 것이다.    (이를 위해 최상위 오브젝트에 사용할 수 있는 CombineChildren 컴포넌트가 Scripts 패키지에서 제공된다.)  - CombineChildren 컴포넌트를 사용할 경우, 하위 오브젝트가 모두 하나가 되어서 빛의 계산을 모두 수행하는 등 불필요한 계산이 발생하는 단점도 있다.  - 같은 셰이더를 사용하더라도 다른 텍스처를 사용하면 드로우콜이 증가한다.  - 위와 같은 경우, 텍스처를 모두 합친 큰 텍스처(텍스처 아틀라스)를 만들어 서로 공유하면 드로우콜을 줄일 수 있다. 4. 배칭기능 사용하기.  - Edit > Project Settings > Player 에서 설정.  - 정적 배칭을 사용할 경우, static으로 설정된 게임 오브젝트에서 동일한 재질을 사용하는 물체가 있는 경우 자동으로 통합한다.  - 정적 배칭을 사용할 경우, CombineChildren처럼 통합되는 오브젝트를 모두 하나의 커다란 메쉬로 만들어서 따로 저장하게 된다. (메모리 사용 증가)  - 동적 배칭은 움직이는 물체를 대상으로 동일한 재질을 사용하는 경우, 자동으로 메쉬를 통합하여 드로우콜을 줄여주는 기능이다.  - 동적 배칭은 계산양이 많으므로, 정
김영세 (@YoungSeKim) 님이 8:10 오전 on 월, 7월 15, 2013에 트윗함: 피카소의천재성이 보이는그림 RT "@hi_min2: "@YoungSeKim: 피카소의 친구가 피카소에게 선 4개로 여자를 그릴수 있냐고 내기를 걸었답니다. 몇분후 피카소가 그린 그림이 바로 이 작품이라네요. http://t.co/mYNs97JT42"" (https://twitter.com/YoungSeKim/status/356551303050178560) https://twitter.com/download 에서 트위터 앱을 받으세요
Anton Kaplanyan (@Kaplanyan) 님이 10:03 오후 on 월, 5월 27, 2013에 트윗함: FMX 2013 slides about artistic light editing (from #SIGGRAPH 2013) are online: http://t.co/2s8Zhhp9IF video-heavy, make sure to play it back (https://twitter.com/Kaplanyan/status/339004049200398336) https://twitter.com/download 에서 트위터 앱을 받으세요
골빈해커 (@golbin) 님이 7:31 오전 on 수, 4월 17, 2013에 트윗함: 오호. 이거 웹 코딩할 때 쓸만하겠네요. PHP/HTML/CSS 에디터. RT @hyunwook: 무료 오픈소스 코드 에디터 Brackets. http://t.co/kanISvcHUU (https://twitter.com/golbin/status/324288874270580736) https://twitter.com/download 에서 트위터 앱을 받으세요
jj (@all2one) 님이 10:42 오전 on 월, 4월 15, 2013에 트윗함: “@Love2Code: corkami - x86 oddities - reverse engineering & visual documentations http://t.co/SLA0bJwFoH” #dev (https://twitter.com/all2one/status/323612219294232577) https://twitter.com/download 에서 트위터 앱을 받으세요
Standard C++ (@isocpp) 님이 8:15 오후 on 화, 4월 09, 2013에 트윗함: Quick Q: How Can Use a Lambda Function as a Hash Function for unordered_map?—StackOverflow http://t.co/zZfHcPWBng (https://twitter.com/isocpp/status/321582069937475585) https://twitter.com/download 에서 트위터 앱을 받으세요
jj (@all2one) 님이 7:09 오전 on 수, 4월 10, 2013에 트윗함: motion-toolkit: https://t.co/TVaX2a5424 C++ template library for 3D geometry, kinematics, and dynamics #gamedev (https://twitter.com/all2one/status/321746785838178306) https://twitter.com/download 에서 트위터 앱을 받으세요
jj (@all2one) 님이 7:11 오전 on 수, 4월 10, 2013에 트윗함: “@Cyan4973: LZ4 Streaming format - Final specifications : http://t.co/Fiq5qBM48W Last call for comments” #dev (https://twitter.com/all2one/status/321747240685301760) https://twitter.com/download 에서 트위터 앱을 받으세요
jj (@all2one) 님이 0:26 오후 on 금, 4월 05, 2013에 트윗함: “@Donzanoid: SmallVCM - A (not too) small physically based renderer: https://t.co/djusx3rycu” #graphics (https://twitter.com/all2one/status/320014454710468608) https://twitter.com/download 에서 트위터 앱을 받으세요
jj (@all2one) 님이 0:45 오후 on 금, 4월 05, 2013에 트윗함: “@princeofcode: Codassium: Online Video Interviews + Real-time Code Editor -- http://t.co/ErCaMOkZk5 (via @johnsheehan) #webrtc” #dev (https://twitter.com/all2one/status/320019299123204096) https://twitter.com/download 에서 트위터 앱을 받으세요
jj (@all2one) 님이 0:46 오후 on 금, 4월 05, 2013에 트윗함: “@LouisBavoil: "Particle Shadows & Cache-Efficient Post-Processing" GDC'13 slides are up! https://t.co/s7yBLXlHS7” #graphics (https://twitter.com/all2one/status/320019659728515072) https://twitter.com/download 에서 트위터 앱을 받으세요
John Carmack (@ID_AA_Carmack) 님이 0:55 오전 on 금, 4월 05, 2013에 트윗함: More Quake lineage code released! http://t.co/uxt7n2XXIe (https://twitter.com/ID_AA_Carmack/status/319840740723286016) https://twitter.com/download 에서 트위터 앱을 받으세요
최재규(Jae-kyu Choi) (@choijaekyu) 님이 3:40 오전 on 목, 3월 28, 2013에 트윗함: http://t.co/laJklipZFp - 마블러스 디자이너2.. 이거 캐릭터 옷 만드는데 사용할 수 있을 것 같았는데.. (만들고 있는 게임은 로폴이라 패스) 코지마 아저씨가 이미 메탈기어솔리드에 활용 중!! (https://twitter.com/choijaekyu/status/316982970353319937) https://twitter.com/download 에서 트위터 앱을 받으세요
Morgan McGuire (@morgan3d) 님이 4:44 오전 on 일, 3월 24, 2013에 트윗함: Rational BRDFs give efficient importance sampling, evaluation, and tight fits to the Matusik database http://t.co/WjZnD7bmEr (https://twitter.com/morgan3d/status/315549591888068608) https://twitter.com/download 에서 트위터 앱을 받으세요
Morgan McGuire (@morgan3d) 님이 7:12 오전 on 금, 3월 22, 2013에 트윗함: I3D13 Real-time photon mapping paper talk (with videos) now online: http://t.co/JfCCS431gq http://t.co/7jBFY80waZ (https://twitter.com/morgan3d/status/314862211711528960) https://twitter.com/download 에서 트위터 앱을 받으세요
Standard C++ (@isocpp) 님이 8:45 오전 on 토, 3월 16, 2013에 트윗함: New paper: N3554, A Parallel Algorithms Library—NVIDIA, Microsoft, Intel http://t.co/oaAwXYmjMz (https://twitter.com/isocpp/status/312711121960304640) https://twitter.com/download 에서 트위터 앱을 받으세요
남희석♥남본좌 (@Brlove12) 님이 0:48 오전 on 금, 3월 15, 2013에 트윗함: ★ RT @chanwoomul: 주먹이 운다 중에서는 이것 또한 버금 레전드 : 경북 사투리의 지존 http://t.co/jxsZuyH6h3 @brlove12 (https://twitter.com/Brlove12/status/312228711212654592) https://twitter.com/download 에서 트위터 앱을 받으세요
남희석♥남본좌 (@Brlove12) 님이 0:48 오전 on 금, 3월 15, 2013에 트윗함: ㅎ★ RT @chanwoomul: 남희석(@Brlove12 )이 분이 진행하던 프로 중에선 이 에피소드가 가장 웃겼던듯 - http://t.co/UgXdFRvx0q "주먹이 운다 - 보수동(부산 다대고 편)" (https://twitter.com/Brlove12/status/312228783094636544) https://twitter.com/download 에서 트위터 앱을 받으세요
Tim Cooper (@stramit) 님이 11:12 오후 on 목, 3월 14, 2013에 트윗함: Cool path finding thingy: http://t.co/S4HAZOFVWR (https://twitter.com/stramit/status/312204592563761153) https://twitter.com/download 에서 트위터 앱을 받으세요
Song Young-Jin (@myevan_) 님이 9:30 오후 on 토, 3월 09, 2013에 트윗함: https://t.co/vLUiAVsFjk 를 사용하면 psd 레이어를 바로 읽어와서 좌표랑 크기 알아내고 png 로 저장까지 할 수 있네요 >ㅁ
Hyoun Woo Kim (@kimsama) 님이 2:57 오후 on 수, 3월 13, 2013에 트윗함: Very clever tool. Check this, ResourceChecker at github. https://t.co/pEIJBGfcM6 #unity3d (https://twitter.com/kimsama/status/311717573437816832) https://twitter.com/download 에서 트위터 앱을 받으세요
Xcode에서 시스템 헤더와 같은 파일 이름의 헤더를 사용할 경우 문제가 생기는데... (math.h 이름 같은) 그럴땐 Build Settings->All->Search Paths->Always Search User Paths를 No로 해주세요. http://twitter.com/choijaekyu/status/303767432714141696

Unity3D - 마우스 화면 좌표에서 월드 좌표 구하기

Vector3 worldPos = Camera.main.ScreenToWorldPoint( new Vector3(e.mousePosition.x, Camera.main.pixelHeight-e.mousePosition.y, Camera.main.nearClipPlane) ); transform.position = new Vector3(worldPos.x, worldPos.y, transform.position.z); Unity3D에서는 좌하단이 (0, 0) 이므로 마우스의 Y 값을 뒤집어 줘야 합니다.

Unity3D - 2D Game 개발 - Camera & Plane 설정

좌표 축 XY 이동, XZ Scale 을 사용합니다. 오른쪽과 위쪽이 Plus 방향입니다. Camera GameObject -> Create Other -> Camera로 Camera 1개를 추가합니다. 아래와 같이 설정합니다. Position : 0 0 -10 Rotation : 0 0 0 Scale : 1 1 1 Projection : Orthographic Size : 10 Plane GameObject -> Create Other -> Plane로 Plane 1개 추가합니다. Position : 0 0 0 Rotation : 90 180 0 Scale : 1 1 1 Camera Size 10 일 경우 Object 크기
RT @gamedev_bot: #H3 개발자 컨퍼런스 2012의 자료집을 PDF로 공개합니다 http://t.co/f9Wo5GzD 올해는 아주 빨리 공개! 참석하지 못하신 분들도 PDF로 받아서 보세요 ;) 500페이지 PDF 단면/양면 e북입니다