46
edits
m (Correct list formatting) |
m (note about allocRT) |
||
| Line 54: | Line 54: | ||
* Implement the init and update functions, whatever instrument manager requires. | * Implement the init and update functions, whatever instrument manager requires. | ||
* In init set up proper texture sizes and call allocRT(). | * In init set up proper texture sizes and call allocRT(). | ||
* NOTE: od_gauge does NOT add camera to render the scenery, but a custom model. One needs to modify od_gauge so that allocRT calls globals()->get_renderer()->addCamera(camera.get(), '''true'''); | |||
* In update function update camera position according to viewer->getAbsolutePosition(...). | * In update function update camera position according to viewer->getAbsolutePosition(...). | ||
* Add the custom instrument to instrument_mgr.cxx. | * Add the custom instrument to instrument_mgr.cxx. | ||
edits