123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <!DOCTYPE html>
- <html lang="ko">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:Object3D] → [page:Camera] →
- <h1>[name]</h1>
- <p class="desc">
- [link:https://en.wikipedia.org/wiki/Orthographic_projection orthographic projection]을 사용하는 카메라입니다.<br /><br />
- 이 투영 모드에서는, 렌더링된 이미지에서 객체의 크기는 카메라와의 거리에 관계없이 일정하게 유지됩니다.<br /><br />
- 이 기능은 무엇보다도 2D 장면과 UI 요소를 렌더링하는 데 유용합니다.
- </p>
- <h2>코드 예제</h2>
- <code>
- const camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 1, 1000 );
- scene.add( camera );
- </code>
- <h2>예제</h2>
- <p>
- [example:webgl_camera camera ]<br />
- [example:webgl_interactive_cubes_ortho interactive / cubes / ortho ]<br />
- [example:webgl_materials_cubemap_dynamic materials / cubemap / dynamic ]<br />
- [example:webgl_postprocessing_advanced postprocessing / advanced ]<br />
- [example:webgl_postprocessing_dof2 postprocessing / dof2 ]<br />
- [example:webgl_postprocessing_godrays postprocessing / godrays ]<br />
- [example:webgl_rtt rtt ]<br />
- [example:webgl_shadowmap shadowmap ]
- </p>
- <h2>생성자</h2>
- <h3>[name]( [param:Number left], [param:Number right], [param:Number top], [param:Number bottom], [param:Number near], [param:Number far] )</h3>
- <p>
- left — 카메라 절두체 좌평면.<br />
- right — 카메라 절두체 우평면.<br />
- top — 카메라 절두체 상평면.<br />
- bottom — 카메라 절두체 하평면.<br />
- near — 카메라 절두체 근평면.<br />
- far — 카메라 절두체 원평면.<br /><br />
- 이 설정을 통해 카메라의 [link:https://en.wikipedia.org/wiki/Viewing_frustum viewing frustum]를 정의합니다.
- </p>
- <h2>프로퍼티</h2>
- <p>
- 일반 프로퍼티는 기본 [page:Camera] 클래스를 참고하세요.<br>
- 이러한 속성을 변경한 후 변경 내용을 적용하려면 [page:OrthographicCamera.updateProjectionMatrix .updateProjectionMatrix]를 호출해야하는 점을 주의해주세요.
- </p>
- <h3>[property:Float bottom]</h3>
- <p>카메라 절두체 하평면.</p>
- <h3>[property:Float far]</h3>
- <p>
- 카메라 절두체 원평면. 기본값은 *2000*입니다.<br /><br />
- [page:.near near](근평면)의 현재 값보다 항상 더 커야합니다.
- </p>
- <h3>[property:Boolean isOrthographicCamera]</h3>
- <p>
- Read-only flag to check if a given object is of type [name].
- </p>
- <h3>[property:Float left]</h3>
- <p>카메라 절두체 좌평면.</p>
- <h3>[property:Float near]</h3>
- <p>
- 카메라 절두체 근평면. 기본값은 *0.1*입니다.<br /><br />
- 유효한 값의 범위는 0부터 [page:.far far](원평면) 값 사이입니다.
- [page:PerspectiveCamera]와 달리, OrthographicCamera의 근평면은 *0*도 유효한 값입니다.
- </p>
- <h3>[property:Float right]</h3>
- <p>카메라 절두체 우평면.</p>
- <h3>[property:Float top]</h3>
- <p>카메라 절두체 상평면.</p>
- <h3>[property:Object view]</h3>
- <p>[page:OrthographicCamera.setViewOffset setViewOffset]를 참고하세요. 기본값은 *null*입니다.</p>
- <h3>[property:number zoom]</h3>
- <p>확대 요소를 가져오거나 설정합니다. 기본값은 *1*입니다.</p>
- <h2>메서드</h2>
- <p>일반적인 메서드는 기본 [page:Camera] 클래스를 참고하세요.</p>
- <h3>[method:undefined setViewOffset]( [param:Float fullWidth], [param:Float fullHeight], [param:Float x], [param:Float y], [param:Float width], [param:Float height] )</h3>
- <p>
- fullWidth — 멀티뷰 설정 최대 너비<br />
- fullHeight — 멀티뷰 설정 최대 높이<br />
- x — 서브 카메라의 가로 오프셋<br />
- y — 서브 카메라의 가로 오프셋<br />
- width — 서브 카메라의 너비<br />
- height — 서브 카메라의 높이<br /><br />
- 보다 큰 [link:https://en.wikipedia.org/wiki/Viewing_frustum viewing frustum]의 오프셋을 설정합니다.
- 멀티윈도우, 멀티모니터/멀티머신 설정에 유용합니다.
- 사용 예제는 [page:PerspectiveCamera.setViewOffset PerspectiveCamera]를 참고하세요.
- </p>
- <h3>[method:undefined clearViewOffset]()</h3>
- <p>
- .setViewOffset 메서드로 설정된 오프셋을 모두 제거합니다.
- </p>
- <h3>[method:undefined updateProjectionMatrix]()</h3>
- <p>
- 카메라 투영 매트릭스를 업데이트합니다. 파라미터 변경 후에 반드시 호출해야 합니다.
- </p>
- <h3>[method:Object toJSON]([param:Object meta])</h3>
- <p>
- meta -- 객체의 자식들의 이미지와 텍스쳐같은 메타데이터를 담고 있는 객체입니다.<br />
- 카메라를 three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format]으로 변환합니다.
- </p>
- <h2>소스 코드</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|