SlideShare ist ein Scribd-Unternehmen logo
1 von 4
1
Dynamic Batching for VFX
그래픽디자인실 VFX Team : 채문배
동적배칭 기본
• 파티클로 제작된 이펙트만 동적배칭이 된다.
• 동일 메터리얼을 공유한다. ( 텍스처 아틀라스를 사용 )
• 파티클은 하나의 메터리얼에 75개 이하가 되도록 제작에 신경을 쓴다.
( Scene에서 캐릭터, 배경, 몬스터 등 한 씬에 동적배칭 가능한 파티클은 75개 이하 )
• 계산방법 = (900/쉐이더의 attribute수)/파티클정점4
• 오른쪽 그림에서 설정된 attribute는 3개
• 배칭가능 파티클 개수 = (900/3)/4 = 75개
• Transform.Scale은 Inspector에서 1로 설정되어야 한다.
• 불투명한 (blend mode)쉐이더의 RenderQue가 먼저 렌더링이 되도록 설정한다.
동적배칭 유의사항
• 스크립트를 통해 변화를 주면 메터리얼의 복사가 생겨 드로우콜이 실행되지
않는다.
Ex) [Renderer.material](ScriptRef : Renderer-material.html)
스크립트에서 메터리얼의 속성을 접근한다면 [Renderer.SharedMaterial](ScriptRef :
Renderer-SharedMaterial.html)을 사용하도록 한다.
• 유니티 API에서 제한을 두는 정점의 개수는 900개 (particle = 75개)이다.
( 너무 적어서 어떻게 드로우콜을 줄일지 난감….. 배경, 클래스, 적과 아군등 시스템에따라 적절하게 분배하여 적용 )
• 특정효과를 위한 Shader를 사용한다면 동적배칭의 의미가 없을 수 있다. 그
이유는 다음과 같다.
1. Shader에서 UV와 법선정보(normal계산)을 한다면 제한 정점의 개수는 300개 (particle = 75개 )이다.
2. Shader에서 정점위치, 법선, UV0,UV1 탄젠트를 사용한다면 제한 정점의 개수는 180 (particle = 45개)이다.
*************** 유니티의 제한사항은 바뀔 수 있다고 고지가 되어있음 (주기적으로 확인)
• 메쉬 or 인스턴스메쉬로 제작된 이펙트는 동적배칭에서 제외됨
• 그림자 투영, 카메라의 깊이 텍스쳐, GUI 의 경우에는 배칭되지 않음.
• 멀티패스 쉐이더를 사용하지 않는다. ( additional per-pixel lights는 배칭이 되지 않음 )
• 생성이펙트를 캐릭터의 Bone하위에 발생시키지 않는다.
( Transform.Scale의 변화로 배칭이 되지 않음. 해당 객체의 Position값을 받아 출력하도록 설정 )
동적배칭 불가사항

Weitere ähnliche Inhalte

Was ist angesagt?

빠른 렌더링을 위한 오브젝트 제외 기술
빠른 렌더링을 위한 오브젝트 제외 기술빠른 렌더링을 위한 오브젝트 제외 기술
빠른 렌더링을 위한 오브젝트 제외 기술YEONG-CHEON YOU
 
Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들
Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들
Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들Dae Hyek KIM
 
[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법
[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법
[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법강 민우
 
Hierachical z Map Occlusion Culling
Hierachical z Map Occlusion CullingHierachical z Map Occlusion Culling
Hierachical z Map Occlusion CullingYEONG-CHEON YOU
 
15_TextureAtlas
15_TextureAtlas15_TextureAtlas
15_TextureAtlasnoerror
 
진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전
진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전
진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전Sukwoo Lee
 
6 tips to supercharge c++11 vector performance
6 tips to supercharge c++11 vector performance6 tips to supercharge c++11 vector performance
6 tips to supercharge c++11 vector performance금성 고
 
MMOG Server-Side 충돌 및 이동처리 설계와 구현
MMOG Server-Side 충돌 및 이동처리 설계와 구현MMOG Server-Side 충돌 및 이동처리 설계와 구현
MMOG Server-Side 충돌 및 이동처리 설계와 구현YEONG-CHEON YOU
 
09_motionblur
09_motionblur09_motionblur
09_motionblurnoerror
 
Unity performanceoptimzation
Unity performanceoptimzationUnity performanceoptimzation
Unity performanceoptimzationegohim
 
Development AR App with C++ and Windows Holographic API
Development AR App with C++ and Windows Holographic APIDevelopment AR App with C++ and Windows Holographic API
Development AR App with C++ and Windows Holographic APIYEONG-CHEON YOU
 
전형규, Vertex Post-Processing Framework, NDC2011
전형규, Vertex Post-Processing Framework, NDC2011전형규, Vertex Post-Processing Framework, NDC2011
전형규, Vertex Post-Processing Framework, NDC2011devCAT Studio, NEXON
 
NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술
NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술
NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술Ki Hyunwoo
 
IndirectDraw with unity
IndirectDraw with unityIndirectDraw with unity
IndirectDraw with unityJung Suk Ko
 

Was ist angesagt? (18)

빠른 렌더링을 위한 오브젝트 제외 기술
빠른 렌더링을 위한 오브젝트 제외 기술빠른 렌더링을 위한 오브젝트 제외 기술
빠른 렌더링을 위한 오브젝트 제외 기술
 
Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들
Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들
Ndc17 - 차세대 게임이펙트를 위해 알야아할 기법들
 
[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법
[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법
[IGC2018] 유영천 개발자 - Voxel기반 네트워크 게임 최적화기법
 
Hierachical z Map Occlusion Culling
Hierachical z Map Occlusion CullingHierachical z Map Occlusion Culling
Hierachical z Map Occlusion Culling
 
15_TextureAtlas
15_TextureAtlas15_TextureAtlas
15_TextureAtlas
 
진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전
진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전
진화하는 컴퓨터 하드웨어와 게임 개발 기술의 발전
 
6 tips to supercharge c++11 vector performance
6 tips to supercharge c++11 vector performance6 tips to supercharge c++11 vector performance
6 tips to supercharge c++11 vector performance
 
Voxelizaition with GPU
Voxelizaition with GPUVoxelizaition with GPU
Voxelizaition with GPU
 
MMOG Server-Side 충돌 및 이동처리 설계와 구현
MMOG Server-Side 충돌 및 이동처리 설계와 구현MMOG Server-Side 충돌 및 이동처리 설계와 구현
MMOG Server-Side 충돌 및 이동처리 설계와 구현
 
09_motionblur
09_motionblur09_motionblur
09_motionblur
 
Unity performanceoptimzation
Unity performanceoptimzationUnity performanceoptimzation
Unity performanceoptimzation
 
Development AR App with C++ and Windows Holographic API
Development AR App with C++ and Windows Holographic APIDevelopment AR App with C++ and Windows Holographic API
Development AR App with C++ and Windows Holographic API
 
gv004 ver0.1
gv004 ver0.1gv004 ver0.1
gv004 ver0.1
 
전형규, Vertex Post-Processing Framework, NDC2011
전형규, Vertex Post-Processing Framework, NDC2011전형규, Vertex Post-Processing Framework, NDC2011
전형규, Vertex Post-Processing Framework, NDC2011
 
NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술
NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술
NDC2016 프로젝트 A1의 AAA급 캐릭터 렌더링 기술
 
Sw occlusion culling
Sw occlusion cullingSw occlusion culling
Sw occlusion culling
 
IndirectDraw with unity
IndirectDraw with unityIndirectDraw with unity
IndirectDraw with unity
 
Motion blur
Motion blurMotion blur
Motion blur
 

Andere mochten auch

10 Ways to Win at SlideShare SEO & Presentation Optimization
10 Ways to Win at SlideShare SEO & Presentation Optimization10 Ways to Win at SlideShare SEO & Presentation Optimization
10 Ways to Win at SlideShare SEO & Presentation OptimizationOneupweb
 
2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShare2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShareSlideShare
 
What to Upload to SlideShare
What to Upload to SlideShareWhat to Upload to SlideShare
What to Upload to SlideShareSlideShare
 
How To Create A Wiki
How To Create A WikiHow To Create A Wiki
How To Create A WikiSusan Bentley
 
The Science of Laser Therapy and Clinical Applications
The Science of Laser Therapy and Clinical Applications The Science of Laser Therapy and Clinical Applications
The Science of Laser Therapy and Clinical Applications Theralase Technologies Inc.
 
Laser Hair removal. Is it Permanent?
Laser Hair removal. Is it Permanent?Laser Hair removal. Is it Permanent?
Laser Hair removal. Is it Permanent?Osama Moawad
 
Laser Hair Removal
Laser Hair RemovalLaser Hair Removal
Laser Hair RemovalLaserklinic
 
LASER BEAM MACHINING - NON TRADITIONAL MACHINING
LASER BEAM MACHINING - NON TRADITIONAL MACHININGLASER BEAM MACHINING - NON TRADITIONAL MACHINING
LASER BEAM MACHINING - NON TRADITIONAL MACHININGSajal Tiwari
 
Biology of Melanocyte
Biology of MelanocyteBiology of Melanocyte
Biology of MelanocyteIbrahim Farag
 
Top 10 Places To Visit In London
Top 10 Places To Visit In LondonTop 10 Places To Visit In London
Top 10 Places To Visit In LondonBrett Cotham
 
10 of the Biggest Stories in Technology
10 of the Biggest Stories in Technology10 of the Biggest Stories in Technology
10 of the Biggest Stories in TechnologyBrett Cotham
 
Timing system for picosecond laser power point
Timing system for picosecond laser power pointTiming system for picosecond laser power point
Timing system for picosecond laser power pointbncscientific
 
Good practices in combating female genital mutilation
Good practices in combating female genital mutilationGood practices in combating female genital mutilation
Good practices in combating female genital mutilationValentina Acava Mmaka
 
E-Booky, E-Reader & Autorensysteme
E-Booky, E-Reader & AutorensystemeE-Booky, E-Reader & Autorensysteme
E-Booky, E-Reader & AutorensystemeMartin Ebner
 

Andere mochten auch (20)

gv006 ver0.1
gv006 ver0.1gv006 ver0.1
gv006 ver0.1
 
10 Ways to Win at SlideShare SEO & Presentation Optimization
10 Ways to Win at SlideShare SEO & Presentation Optimization10 Ways to Win at SlideShare SEO & Presentation Optimization
10 Ways to Win at SlideShare SEO & Presentation Optimization
 
2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShare2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShare
 
What to Upload to SlideShare
What to Upload to SlideShareWhat to Upload to SlideShare
What to Upload to SlideShare
 
Laser
Laser Laser
Laser
 
How To Create A Wiki
How To Create A WikiHow To Create A Wiki
How To Create A Wiki
 
The Science of Melanin
The Science of MelaninThe Science of Melanin
The Science of Melanin
 
The Science of Laser Therapy and Clinical Applications
The Science of Laser Therapy and Clinical Applications The Science of Laser Therapy and Clinical Applications
The Science of Laser Therapy and Clinical Applications
 
laser ppt..!!
laser ppt..!! laser ppt..!!
laser ppt..!!
 
Laser Hair removal. Is it Permanent?
Laser Hair removal. Is it Permanent?Laser Hair removal. Is it Permanent?
Laser Hair removal. Is it Permanent?
 
Laser Hair Removal
Laser Hair RemovalLaser Hair Removal
Laser Hair Removal
 
LASER BEAM MACHINING - NON TRADITIONAL MACHINING
LASER BEAM MACHINING - NON TRADITIONAL MACHININGLASER BEAM MACHINING - NON TRADITIONAL MACHINING
LASER BEAM MACHINING - NON TRADITIONAL MACHINING
 
Biology of Melanocyte
Biology of MelanocyteBiology of Melanocyte
Biology of Melanocyte
 
Top 10 Places To Visit In London
Top 10 Places To Visit In LondonTop 10 Places To Visit In London
Top 10 Places To Visit In London
 
10 of the Biggest Stories in Technology
10 of the Biggest Stories in Technology10 of the Biggest Stories in Technology
10 of the Biggest Stories in Technology
 
En la conciencia
En la concienciaEn la conciencia
En la conciencia
 
Timing system for picosecond laser power point
Timing system for picosecond laser power pointTiming system for picosecond laser power point
Timing system for picosecond laser power point
 
CV
CVCV
CV
 
Good practices in combating female genital mutilation
Good practices in combating female genital mutilationGood practices in combating female genital mutilation
Good practices in combating female genital mutilation
 
E-Booky, E-Reader & Autorensysteme
E-Booky, E-Reader & AutorensystemeE-Booky, E-Reader & Autorensysteme
E-Booky, E-Reader & Autorensysteme
 

gv002 ver0.1

  • 1. 1 Dynamic Batching for VFX 그래픽디자인실 VFX Team : 채문배
  • 2. 동적배칭 기본 • 파티클로 제작된 이펙트만 동적배칭이 된다. • 동일 메터리얼을 공유한다. ( 텍스처 아틀라스를 사용 ) • 파티클은 하나의 메터리얼에 75개 이하가 되도록 제작에 신경을 쓴다. ( Scene에서 캐릭터, 배경, 몬스터 등 한 씬에 동적배칭 가능한 파티클은 75개 이하 ) • 계산방법 = (900/쉐이더의 attribute수)/파티클정점4 • 오른쪽 그림에서 설정된 attribute는 3개 • 배칭가능 파티클 개수 = (900/3)/4 = 75개 • Transform.Scale은 Inspector에서 1로 설정되어야 한다. • 불투명한 (blend mode)쉐이더의 RenderQue가 먼저 렌더링이 되도록 설정한다.
  • 3. 동적배칭 유의사항 • 스크립트를 통해 변화를 주면 메터리얼의 복사가 생겨 드로우콜이 실행되지 않는다. Ex) [Renderer.material](ScriptRef : Renderer-material.html) 스크립트에서 메터리얼의 속성을 접근한다면 [Renderer.SharedMaterial](ScriptRef : Renderer-SharedMaterial.html)을 사용하도록 한다. • 유니티 API에서 제한을 두는 정점의 개수는 900개 (particle = 75개)이다. ( 너무 적어서 어떻게 드로우콜을 줄일지 난감….. 배경, 클래스, 적과 아군등 시스템에따라 적절하게 분배하여 적용 ) • 특정효과를 위한 Shader를 사용한다면 동적배칭의 의미가 없을 수 있다. 그 이유는 다음과 같다. 1. Shader에서 UV와 법선정보(normal계산)을 한다면 제한 정점의 개수는 300개 (particle = 75개 )이다. 2. Shader에서 정점위치, 법선, UV0,UV1 탄젠트를 사용한다면 제한 정점의 개수는 180 (particle = 45개)이다. *************** 유니티의 제한사항은 바뀔 수 있다고 고지가 되어있음 (주기적으로 확인)
  • 4. • 메쉬 or 인스턴스메쉬로 제작된 이펙트는 동적배칭에서 제외됨 • 그림자 투영, 카메라의 깊이 텍스쳐, GUI 의 경우에는 배칭되지 않음. • 멀티패스 쉐이더를 사용하지 않는다. ( additional per-pixel lights는 배칭이 되지 않음 ) • 생성이펙트를 캐릭터의 Bone하위에 발생시키지 않는다. ( Transform.Scale의 변화로 배칭이 되지 않음. 해당 객체의 Position값을 받아 출력하도록 설정 ) 동적배칭 불가사항