3 ms·
Looking at the Suzanne demo - https://google.github.io/filament/webgl/suzanne.html https://google.github.io/filament/webgl/suzanne.html, you can see some object
by redleader55 5y ago
Looking at the Suzanne demo - https://google.github.io/filament/webgl/suzanne.html https://google.github.io/filament/webgl/suzanne.html, you can see some objects being reflected on the back of the head. Is it raytracing?
- monocasa 5y agoNo, it's environment mapping.
- deleted 5y ago[deleted]
- adamdusty 5y agoWithout looking at the code, I doubt it. Real-time reflections are generally done with offscreen rendering and cube maps. The objects being reflected are still rendered, you just can't see them because they aren't in the projection/view space.
- dangerbird2 5y agoThe scene being reflected is almost certainly pre-rendered. Fun fact: it's the Cornell Box, a very common placeholder scene in computer graphics. https://en.wikipedia.org/wiki/Cornell_box https://en.wikipedia.org/wiki/Cornell_box
- qayxc 5y agoAll I can see is a cube map. Looking at the source code of the scene confirms this: it's just a traditional skybox projected onto the mesh. No raytracing there, just plain old cube-mapped reflections.
- sudosysgen 5y agoYou can tell it's not raytracing because you can't see the ear of the head reflected into the head. That's the tell-tale sign of raytracing, when an object reflects into itself.
- deleted 5y ago[deleted]
- arduinomancer 5y agoTo nitpick the other answers its actually called Image-Based Lighting (IBL), which is a fancier PBR technique compared to traditional environment-mapping