RenderKit / ospray

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

[Feature request] Ground plane for Environment light #569

Open bharatshiyani opened 1 year 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...