20,741
edits
No edit summary |
m (→CanvasModel) |
||
| Line 37: | Line 37: | ||
|description=Stub for exposing OSG/SG model loading support as a dedicated Canvas element | |description=Stub for exposing OSG/SG model loading support as a dedicated Canvas element | ||
}} | }} | ||
Next, we need to set up a separate camera to render a sub-scenegraph to a texture - the corresponding OSG code to accomplish this can be taken from existing OSG examples[http://trac.openscenegraph.org/projects/osg//browser/OpenSceneGraph/trunk/examples/osgprerender/osgprerender.cpp][http://minervagis.googlecode.com/svn/branches/releases/1.0.0/Source/OsgTools/Render/OffScreenRenderer.cpp]/tutorials[http://delta3d.org/deltawiki/index.php?title=Tutorial_Render_To_Texture][http://merlin.fit.vutbr.cz/wiki/index.php/OSG_knowledge_base#Rendering_a_scene_to_texture][http://thermalpixel.github.io/osg/2014/02/15/rtt-with-slave-cameras.html][http://beefdev.blogspot.com/2012/01/render-to-texture-in-openscenegraph.html], or we can directly use the ODGauge code in Simgear: | |||
<syntaxhighlight lang="cpp"> | |||
</syntaxhighlight> | |||
<references/> | <references/> | ||