Hi Andreas,

> your solution wouldn't work in a cluster. If you just want to put a 2d
> image in front of your scene you can use a PolygonForeground. There is
> an example in OpenSG/Source/System/Window/testPolygonForeground.cpp

Indeed, achieving this is really simple:

ImageForegroungPtr overlay = ImageForeground::create();
ImagePtr logo = Image::create();

logo->read( "logo.png" );
overlay->addImage( logo, Pnt2f(0,0) );

beginEditCP(vp);
  vp->getForegrounds().push_back(overlay);    
endEditCP  (vp);

Thank you (I start liking OpenSG :-)

  Toni
                
P.S.: Can I set only the the relative position
of my overlay with "addImage"? Can't I just 
specify pixel coords?




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to