RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
1.02k stars 186 forks source link

[Feature request] Ground plane for Environment light #569

Closed bharatshiyani closed 1 month ago

bharatshiyani commented 1 year ago

Hello,

Can ground plane feature be implemented in ospray ? It is very useful for environment light,

The example of it in THREE.JS https://threejs.org/examples/?q=ground#webgl_materials_envmaps_groundprojected

image

johguenther commented 1 year ago

On the pathtracer you can set vec4f parameter shadowCatcherPlane, which describe the coefficients of a plane equation (i.e., normal plus distance). Note that this is an experimental, undocumented feature...

johguenther commented 1 month ago

Improvements and usage examples via f982427f7ef0b528b27a844b8f21906c34d44046.