I'm currently trying to add Ray tracing Shadows to my project but am having quite a bit of difficulty in doing so. So far I've been using the provided source demos and the online documentation to enable Shadows but I'm having a hard time figuring out how to actually turn it on or get it working.
At the moment I've used the following to enable anti-aliasing which works as intended but the only things I've found relating to shadows are the RenderParams.IsShadowEnabled = True; and that seems to do nothing.
GetDocument()->GetAISContext()->CurrentViewer()->InitActiveViews(); Handle(V3d_View) aView = GetDocument()->GetAISContext()->CurrentViewer()->ActiveView(); Graphic3d_RenderingParams& RenderParams = aView->View()->ChangeRenderingParams(); if (IsSamplingOn) RenderParams.NbMsaaSamples = 32; else RenderParams.NbMsaaSamples = 16; RenderParams.Method = Graphic3d_RM_RAYTRACING; RenderParams.IsShadowEnabled = true; RenderParams.IsReflectionEnabled = true; GetDocument()->GetAISContext()->UpdateCurrentViewer();
I've been looking around and haven't seen anything else regarding the use of shadows in OpenCascade, so was hoping for a bit of advice on where I can get started.