All Posts
- Alpha-Tested Ray-Traced Shadows with Ray Queries —
Foliage and fences often use alpha-tested textures to cut holes in a small number of triangles. A shadow ray intersects the full triangle, so the renderer must decide whether th...
- OMM Survey —
Opacity Micro Map for Ray Tracing Survey Background: Why OMM? RTCore is dedicated hardware for ray-scene intersection. In practice, however, the visible shape of many objects is...
- Vulkan CTS —
A quick reference for running dEQP-VK Ray Tracing tests on Windows / Android. 1. Ray Tracing Test Groups Vulkan CTS has two main ray tracing test groups: Test Group Description ...
- analysis a android tombstone crash —
拉取 tombstone 文件: adb pull /data/tombstones/ Build fingerprint: 'Xiaomi/lhasa/lhasa:17/CP2A.260605.016/OS4.0.260921.1.XPNCNXM.PRE:userdebug/test-keys' Kernel Release: '6.18.21-an...
- Vulkan Ray Tracing Acceleration Structure —
加速结构(AS)通过空间层次组织场景,减少射线求交测试。Vulkan 将其分为两层:BLAS 组织几何,TLAS 组织实例。 示例使用 Vulkan-Hpp,省略初始化和错误检查。createBuffer()、destroyBuffer()、submitAndWait() 为应用封装;buffer 封装负责分配、绑定和对齐,提供 .buffer 与 ....
- Tackling PSO Explosion in Vulkan: From Pipeline Caches to Shader Objects —
A renderer may use only a modest number of shaders and still end up managing thousands of graphics pipelines. Different combinations of shader stages, vertex formats, attachment...
- Self Intersection —
Ray Tracing Gems: A Fast and Robust Method for Avoiding Self- Intersection 在光线追踪中,从表面交点继续发射阴影、反射或折射光线时,新光线有时会立刻再次命中当前表面,从而产生异常黑斑、条纹等自遮挡现象。这通常不是真实的遮挡,而是浮点数误差引起的自相交(Self-Intersect...
- Normal Fix —
实时光线追踪:法线修正和平滑 在玻璃光追中,法线处理的第一个问题是:Mesh 通常只记录朝向物体外部的法线,但光线既可能从空气进入玻璃,也可能从玻璃内部射向空气。 因此,每次命中表面时,都要先根据光线方向与几何法线的关系判断当前处于入射还是出射状态,再统一修正法线方向和折射率比例: // 光线射入物体 dir_refl = reflect(r, n);...
- SVGF —
SVGF Demodulation 计算光照时忽略 BRDF 中的材质信息,避免引入高频变化。以 diffuse 为例: \[\text{diffuse} = L \cdot \rho \cdot n \cdot l / \pi\] \[\text{demodulate albedo} = L \cdot n \cdot l / \pi\] Tempo...
- Q2RTX codepath —
#define MATERIAL_KIND_MASK 0xf0000000 #define MATERIAL_KIND_INVALID 0x00000000 #define MATERIAL_KIND_REGULAR 0x10000000 #define MATERIAL_KIND_CHROME 0x20000000 #define MATERIAL_...
- UE CPU Cooler —
Unreal Engine’s frame limiter avoids sleeping all the way to the target frame time. It first sleeps for most of the wait: SleepNoStats(WaitTime - 0.002f); This leaves about 2 ms...
- DistanceField Generation of Unreal —
// Runtime\Engine\Private\StaticMesh.cpp void UStaticMesh::Serialize(FArchive& Ar) then // Runtime\Engine\Private\StaticMesh.cpp FStaticMeshRenderData::Cache { ... static co...
- UE4 LightMap Directionality —
From UE4 Lightmap Format Analysis, Unreal encodes a direction channel in the lower half of the lightmap to interact with the pixel normal. With directionality: Without direction...
- (WIP)Unreal Diffuse Indirect Light Explain —
LightMap SH ILC VLM IRRADIANCE VOLUME
- penantumbrathegame —
generate by gemini
- Analysis Android Game Crash —
some times the game crash, and don’t generate any crash dump or related log, then you need to use adb logcat to get sys infos to analyze crash.
- Use Scene to Monitor Android Power Consumption —
Scene8
- (WIP) Compute Shader cheatsheet —
Compute Shader Basics GPU are designed to execute paralled works, we can divide paralled graphics or non-graphics works into group to utilize gpu. Sync Shared Memory WorkGroupSi...
- Shadow Lod/Proxy Trap —
some optimizations techs are not silver bullet
- Graphics Quality Configuration for Android —
UE
- Debug Metal GPU Crash —
open Edit Scheme and open Shader Validation
- Compare Shadow Map Atlas and Shadow Map Texture Array —
some notes on shadowmap rt format
- Explain XXXView in DirectX —
what is RenderTargetView/DepthStencilView/ShaderResourceView means
- Shadow Compression —
some method to compress shadow map
- VRS The Invisble Scenes —
Tier 2 VRS provides a way to specify a shading rate texture for rasterization. Content rendered behind the UI can use a lower shading rate to reduce pixel shader workload.
- Reduce unreal shader permutation —
some ways to reduce ue4 shader permutation count
- Shader Optimization Cheatsheet —
my shader programming cheatsheet
- How to correctly add engine feature —
When developing a game engine, adding new features requires careful consideration of how they are enabled, configured, and controlled. This guide outlines several common methods...