이것 때문에 머 할 때 마다 시간 날라간다 가장 최근의 문제는, texture register number 문제였다. location을 미리 얻어놓고 유무 체크 않하고 해당 locatino에 바로 업데이트하는 코드를 테스트했는데 void LightingTechnique::setShadowMap(const GraphicsTexturePtr& texture) { m_shader.bindTexture(m_texShadowLoc, texture, 0); } void LightingTechnique::setTexWood(const GraphicsTexturePtr& texture) { m_shader.bindTexture(m_texWoodLoc, texture, 0); } textureWood 를 쓸 땐 shad..
ShadingTransparent 테스트 Water algorith 보기 Algorithm 복습 1개 Dynamic (다음에 midpoint) 카메라 함수 쓸만한 구현으로 교체 CSM 테스트 나중에 shader xml tag로 build pass 상태와 결합하여 pass로 변경 pmx 와 연결하여 pipeline 으로 변경 parser 구조로 변경 단순 객체 instancing 으로 변경 (mikudayo 에서 어떻게 했더라?) sampler 추가 및 pipeline 구성
ShadingOpacity IBL 테스트 ShadingTransparent 테스트 순서 상관없는 alpha rendering 보고 연결 https://hrmrzizon.github.io/2018/05/27/how-to-represent-transparency-object/ http://zerogram.info/?p=2071 http://zerogram.info/?p=2102 https://developer.nvidia.com/content/transparency-or-translucency-rendering Diffuse, Specular IBL 생성 Water algorith 보기 Algorithm 복습 1개 Dynamic (다음에 midpoint) 카메라 함수 쓸만한 구현으로 교체 cmake 프로젝트..
atan vs atan2 texture에 검은선이 나와서 먼지 찾았다. clamp 로 했으니 검은선은 텍스쳐 범위를 벗어났다는 건데 https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/atan.xhtml http://egloos.zum.com/indra207/v/4856054 우선 Direct9 기준으론 atan2 의 경우 x가 작은경우에도 작동한다 논의는 아래 있었고 https://stackoverflow.com/questions/26070410/robust-atany-x-on-glsl-for-converting-xy-coordinate-to-angle 좀더 정리된 것은, https://qiita.com/7CIT/items/ad76cfa67716419..
전체화면에서 비교하니 거의 dot 몇개만 차이났는데 확대해보니 차이가 커서 정리 https://aras-p.info/texts/CompactNormalStorage.html#method04spheremap Aniso filtering은 적용안함 1번째 케이스로 888 unorm bit, Specular Cubemap Ray-MMD 특별히 잘못된건 못찾겠는데, 가운데가 문제 각 방법들 2*normal - 1 Sphereical 이었나? 4번째 5번 방법 2번째 케이스로 101010 unorm bit, Specular Cubemap Ray-MMD 소스의 경우 0 div와 sqrt 음수 문제 해결을 위해 eps 더하니 많이 괜찮아 졌다.
ShadingOpacity IBL 테스트 ShadingTransparent 테스트 순서 상관없는 alpha rendering 보고 연결 Diffuse, Specular IBL 생성 Water algorith 보기 Algorithm 복습 1개 Dynamic (다음에 midpoint) 카메라 함수 쓸만한 구현으로 교체 cmake 프로젝트에 glsl 추가하도록 변경 https://github.com/Kitware/CMake/blob/master/Tests/VSWinStorePhone/CMakeLists.txt https://stackoverflow.com/questions/43739539/cmake-avoid-compilation-of-hlsl-shader-files-on-visual-studio/467409..
코드 통합도 있겠고, 여러 목적이 있지만 가장 먼저 찾은건, Ray-MMD의 Ray의 Ray 프로젝트 대략적 중간 언어 > GLSL > GLSL Optimizer (github) 문제는 optimizer가 compute 처리가 안됨; 어짜피 OSX가 CS 지원을 안해서, 골치 아픔; 윈도우는 다 지원, OSX는 open GL 도 쥐꼬리만큼 요즘 나온 툴체인 소개 https://github.com/KhronosGroup/glslang/issues/1417 XShaderCompiler http://shader-playground.timjones.io/e3992560499e60815aa0fb68a1d42c30 v0.10-alpha 이지만 쓸만한 결과를 준다 struct PSInput { float4 color..
- Total
- Today
- Yesterday