[HDK] Adding options to a Scene Visualizer

   694   0   0
User Avatar
Member
15 posts
Joined: 2月 2017
オンライン
Hi, I am creating a scene visualizer via the HDK, just how it's done in the DM examples (e.g. toolkit/samples/DM/DM_BackgroundHook.C). I am doing:

void newRenderHook(DM_RenderTable* table) 
{
    // Create and register the scene hook 
    // ...

    table->installSceneOption("test_visualizer", "Test Visualizer");
}

The above works as expected, I get a visualizer and the associated UI toggle is shown (see image attached), I can enable/disable as expected. What I am wondering, however, is if I can add more options to it to control the behavior of my render hook (I don't mean installing multiple "Scene Options" but rather different options within the visualizer that is installed). The goal is to expose some functionality to the user so they can tweak the visualization via editing a UI (using standard parms like color, sliders, dropdowns, and that kind of thing). Right now when you click "edit" it's just an empty dialog (also in the attached image).


I have tried a number of things, looked through the HDK examples, browsed online, forums, etc but no luck so far.

Is this possible? If so, a bit of guidance would be appreciated! Thanks beforehand!
Edited by Rubs - 2024年11月8日 14:05:28

Attachments:
Screenshot 2024-11-08 at 19.55.41.png (594.6 KB)

  • Quick Links