<div dir="ltr"><div dir="ltr"><div dir="ltr">Images won't render on their own you need to create some geometry to render the texture on.  You don't mentioned anything about creating geometry but it could easily by that you've just not mentioned it.<br></div><div dir="ltr"><br></div><div>There is a convenience function for created a quad geometry appropriate for rendering textures on, see:<br></div><div><br></div><div dir="ltr">   osg::createTexturedQuadGeometry()<span style="font-family:monospace"><br></span></div></div><div dir="ltr"><br></div><div>The OSG examples that use this are:</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">:</span><span style="font-weight:bold;color:rgb(84,84,255);background-color:rgb(255,255,255)">~/Dev/OpenSceneGraph/examples</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ grep -r "osg::createTexturedQuadGeometry" .
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgmovie/osgmovie.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        osg::Geometry* pictureQuad = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(pos,
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgmovie/osgmovie.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        osg::Geometry* pictureQuad = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(pos,
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgatomiccounter/osgatomiccounter.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        osg::Geometry * quad = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(osg::Vec3f(-2.0f, 0.0f, -2.0f),
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcomputeshaders/osgcomputeshaders.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">    osg::Geometry* geom = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgtext3D/osgtext3D.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            geode->addDrawable( </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(osg::Vec3(0.0f,characterSize*thickness,0.0f),osg::Vec3(characterSize,0.0,0.0),osg::Vec3(0.0f,0.0,characterSize), 0.0, 0.0, 1.0, 1.0) );
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(pos,width,height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(pos,width,height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(pos,width,height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(pos,width,height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(_origin,_width,_height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(_origin,_width,_height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(_origin,_width,_height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgcatch/osgcatch.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">                    osg::Geometry* geometry = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(_origin,_width,_height);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgSSBO/osgSSBO.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        geom = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(placement, osg::Vec3(1.0f*scale, 0.0f, 0.0f), osg::Vec3(0.0f, 0.0f, ratio*1.0f*scale));
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgSSBO/osgSSBO.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        geom = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(placement, osg::Vec3(ratio*1.0f*scale, 0.0f, 0.0f), osg::Vec3(0.0f, 0.0f, 1.0f*scale));
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgsampler/osgSampler.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        ((osg::Geode*)geode.get())->addDrawable(</span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(osg::Vec3(0,0,0),osg::Vec3(1,0,0),osg::Vec3(0,0,1) ));
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgshadow/osgshadow.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        geode->addDrawable( </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">( centerBase-widthVec*1.5f-depthVec*1.5f,
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgimagesequence/osgimagesequence.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">    geode->addDrawable(</span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(osg::Vec3(0.0f,0.0f,0.0), osg::Vec3(1.0f,0.0f,0.0), osg::Vec3(0.0f,0.0f,1.0f)));
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgblenddrawbuffers/osgblenddrawbuffers.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">        osg::Geometry* geom = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgmultiplemovies/osgmultiplemovies.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            geo = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(p, osg::Vec3(w, 0, 0), osg::Vec3(0, 0, desired_height), 0, tex_t, tex_s, 0);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgmultiplemovies/osgmultiplemovies.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">            geo = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(p, osg::Vec3(w, 0, 0), osg::Vec3(0, 0, desired_height), 0, 0, tex_s, tex_t);
</span><br><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">./osgdeferred/osgdeferred.cpp</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">    osg::Geometry* geom = </span><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">osg::createTexturedQuadGeometry</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(</span><br>
<br><br></span></div><div dir="ltr"><br></div><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/CAFN7Y%2BVjKer%2BAfKBgZeiRSOSVUOm57pGwnUVwxWbG5kWR27yxw%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/CAFN7Y%2BVjKer%2BAfKBgZeiRSOSVUOm57pGwnUVwxWbG5kWR27yxw%40mail.gmail.com</a>.<br />