You need to set the loaded image as the texture on a polygon node.

Bryan Berg wrote:
> Hi,
> 
>  
> 
> So I was looking at:
> 
>  
> 
> http://www.openscenegraph.org/index.php?page=UserGuides.Plugins
> 
>  
> 
> Specifically:
> 
>  
> 
> *a)    osg::ref_ptr<Node> node = osgDB::readNodeFile("cow.osg");*
> 
> and
> 
> *b)    osg::ref_ptr<Image> image = osgDB::readImageFile("lz.rgb");*
> 
>  
> 
>  
> 
> I would like to load an image file (.bmp), which I believe I can do with
> a), but than I need to save it as a node.
> 
>  
> 
> Is this possible?
> 
>  
> 
> Thanks!
> 
>  
> 
> -Bryan
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
begin:vcard
fn:Per Rosengren
n:Rosengren;Per
org:Royal Institute of Technology (KTH);Computational Vision and Active Perception Laboratory
adr:;;Teknikringen 14, room 621;Stockholm;;11428;Sweden
email;internet:[EMAIL PROTECTED]
title:Ph.D. student
tel;work:+46 8 7906203
note:PGP keyID: 0xD40DD8E0
x-mozilla-html:FALSE
url:http://www.csc.kth.se/~perrose/
version:2.1
end:vcard

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to