20,741
edits
mNo edit summary |
|||
| Line 203: | Line 203: | ||
While this will not yet add the model to the scene graph (canvas), we should at least be seeing success/failure messages in the console suggesting if our function works properly (that is, once the corresponding element is added). | While this will not yet add the model to the scene graph (canvas), we should at least be seeing success/failure messages in the console suggesting if our function works properly (that is, once the corresponding element is added). | ||
Next, we only need to coax our new Canvas element to use said <code>osg::Node</code> object. | Next, we only need to coax our new Canvas element to use said <code>osg::Node</code> object, which will usually involve adding it as a child to the <code>_transform</code> member of the corresponding CanvasElement sub-class. | ||
However, instead of adding this directly, we should add the PAT first: | |||
== Turning the filename into a property == | == Turning the filename into a property == | ||