Qt Quick 3D - 앤티앨리어싱 예시
Qt Quick 3D 에서 앤티앨리어싱 모드를 시연합니다.
안티앨리어싱 예제는 Qt Quick 3D 에서 안티앨리어싱을 제어하는 방법을 보여줍니다. 여기에는 안티앨리어싱 아티팩트가 표시되는 간단한 장면이 나와 있습니다. 간단한 Qt Quick 사용자 인터페이스를 통해 앤티앨리어싱 유형을 선택하고 이를 제어하는 옵션을 설정할 수 있습니다.
테스트 장면
이 예는 구와 회전된 큐브 두 개가 포함된 간단한 장면을 보여줍니다. 이 장면은 앤티앨리어싱이 활성화되지 않은 경우 가장자리가 들쭉날쭉하게 표시되도록 설정되어 있습니다.
앤티앨리어싱 제어하기
앤티앨리어싱은 SceneEnvironment 개체에 의해 제어됩니다. 값은 사용자 인터페이스에서 선택한 내용에 따라 설정됩니다.
antialiasing mode 을 NoAA
으로 설정하여 앤티앨리어싱을 비활성화하거나 다음 중 하나로 설정할 수 있습니다:
SSAA
슈퍼샘플 안티앨리어싱의 경우MSAA
멀티샘플 앤티앨리어싱의 경우ProgressiveAA
프로그레시브 앤티앨리어싱의 경우
antialiasing quality 은 Medium
, High
또는 VeryHigh
으로 설정할 수 있습니다.
또한 temporal antialiasing 을 독립적으로 활성화할 수 있습니다.
environment: SceneEnvironment { id: sceneEnvironment clearColor: "#002b36" backgroundMode: SceneEnvironment.Color antialiasingMode: modeButton1.checked ? SceneEnvironment.NoAA : modeButton2.checked ? SceneEnvironment.SSAA : modeButton3.checked ? SceneEnvironment.MSAA : SceneEnvironment.ProgressiveAA antialiasingQuality: qualityButton1.checked ? SceneEnvironment.Medium : qualityButton2.checked ? SceneEnvironment.High : SceneEnvironment.VeryHigh temporalAAEnabled: temporalModeButton.checked temporalAAStrength: temporalStrengthSlider.value }
앤티앨리어싱에 대한 자세한 내용은 에셋 컨디셔닝 섹션의 앤티앨리어싱 페이지를 참조하세요.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.