449
edits
(Created page with "=Objective= To create a 2D instrument which shows a camera view. The steps involved in creating such an instrument would be: * Write a C++ Function, preferably an instrument tha...") |
No edit summary |
||
| Line 21: | Line 21: | ||
This is a very simple method and is used normally for taking screen-shots. | This is a very simple method and is used normally for taking screen-shots. | ||
''OpenSceneGraph C++ Code:'' | '''OpenSceneGraph C++ Code:''' | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
| Line 60: | Line 60: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''You could create more layers for more cameras/different views or even have a sprite or something on the view. Or we could also add transformations or conditions to the layer to give some function to the instrument other than just show a camera view.'' | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
| Line 70: | Line 70: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''Ummm, some help Hooray?'' | |||
edits