Howto:Use a Camera View in an Instrument: Difference between revisions

Jump to navigation Jump to search
m
note about allocRT
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.
46

edits

Navigation menu