1 / 25

The Art of Texturing Using The OpenGL Shading Language

The Art of Texturing Using The OpenGL Shading Language. 목 차. Multi Texturing Alpha Maps Bump Maps Gloss Maps. Multi Texturing?. Multi Texturing?. Multi Texturing [Vertex Shader ]. Multi Texturing [Fragment Shader ]. Multi Texturing [OpenGL Code]. Result. Alpha Maps?.

evania
Download Presentation

The Art of Texturing Using The OpenGL Shading Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Art of Texturing Using The OpenGL Shading Language

  2. 목 차 • Multi Texturing • Alpha Maps • Bump Maps • Gloss Maps

  3. Multi Texturing?

  4. Multi Texturing?

  5. Multi Texturing [Vertex Shader]

  6. Multi Texturing [Fragment Shader]

  7. Multi Texturing [OpenGL Code]

  8. Result

  9. Alpha Maps?

  10. Alpha Maps [Vertex Shader]

  11. Alpha Maps [Fragment Shader]

  12. Alpha Maps[OpenGL Code]

  13. Result

  14. Bump Maps? • 텍스쳐에 기록한 법선으로 픽셀당 음영을 변경해주는 기술 • Normal Mapping 이라고도 불림 • 로우폴리곤으로 굴곡을 처리할 수 있는 장점

  15. Bump Maps?

  16. Alpha Maps [Vertex Shader]

  17. Tangent Space? • 텍셀을 정의하는 3차원 좌표계를 의미 • 노말맵은 텍스쳐의 RGB정보에 노말벡터 XYZ를 인코딩 • 노말맵은 2차원 이기 때문에 조명계산이 불가능 (노말 좌표들은 모두 탄젠트 스페이스 기준으로 작성되어 객체 공간으로 변환시켜 N, T, B 벡터를 필요로 함)

  18. Tangent Space Computing

  19. Bump Maps [Vertex Shader]

  20. Bump Maps [Fragment Shader]

  21. Bump Maps[OpenGL Code]

  22. Result

  23. Gloss Map? • 빛이 반사되는 영역을 텍스쳐 맵핑을 통해 보여줌

  24. Gloss Maps [Vertex Shader]

  25. Gloss Maps [Fragment Shader]

More Related