RenderKit / ospray

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

How to test OSPRAY_MODULE_BILINEAR_PATCH ? #493

Closed nyue closed 6 months ago

nyue commented 2 years ago

I am building ospray manually (not via superbuild)

I see this option.

It builds the module so file

I noticed that when I do make install, the *.so file is not installed in the installation location.

Is there are particular test that will exercise this module ?

Cheers

johguenther commented 2 years ago

The main purpose of the bilinear patch is the demonstration of how to write a module, a plugin to extend OSPRay. We test its compilation to catch that this module needs to adapt to internal changed, but no more.

I just realize that its README is outdated regarding loading it in ospExampleViewer... I think it's rather easy to adapt some of the builders in apps/ to serve some vertices array to the bilinear geometry. Many of the features of former ospExampleViewer are now found in OSPRay Studio, but not yet the bilinear patch.

iqch commented 2 years ago

superbuild lacks control rules to build this module. Can you add it?

johguenther commented 2 years ago

In the superbuild the bilinear patch module is activated via BUILD_OSPRAY_CI_EXTRAS.

iqch commented 2 years ago

Ok. It is built. But not installing. Just not copied from building directory to CMAKE_PREFIX_INSTALL/bin Win10/MSVS2019/tbbH18.5.672

пт, 17 сент. 2021 г. в 14:15, Johannes Günther @.***>:

In the superbuild the bilinear patch module is activated via BUILD_OSPRAY_CI_EXTRAS.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ospray/ospray/issues/493#issuecomment-921714375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQD2CPE3ZCRUAOQCTMDAEDUCMPMHANCNFSM5DYH6PNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johguenther commented 2 years ago

Yes, as said, the module servers as example how to write modules. The bilinear patch geometry is not indented as first class geometry.

Is this rather a feature request, i.e., do you have use cases for bilinear patches and like to have that geometry included in the native build?

iqch commented 2 years ago

No, I seem, there no need to put this implementation to production, really it may be used just as a template. To be true - it is one of hardest expansion module development process I've deal with.

johguenther commented 2 years ago

To install your own module you could use ospray_install_library, see e.g. modules/multiDevice/CMakeLists.txt.

We are happy to improve the dev process based on your suggestions. Please note that when writing custom modules we cannot generally guarantee that used internal APIs stay stable (which is why we encourage checking versions during module init).