Hi,

I use it as follows:

set the globe as the child of the OverlayNode, e.g.
mGridOverlayNode->addChild(mTerrainGroup.get());

set the stuff you want in the overlay as the overlay subgraph, e.g.
mGridOverlayNode->setOverlaySubgraph(mGridGroup.get());

attach the overlay node to the root of my scene.

cheers
jp

PS. If you can figure out a way to let the subgraph/overlay only appear
on one side of the globe let me know.

Kallfass, Daniel, SDGE1 wrote:
> Hello,
> 
> I couldn't figure out how to use the OverlayNode to
> display an overlay map onto a globe generated by OSGDEM.
> 
> I have tried to use the OverlayNode as the root node, the
> overlay map as the subgraph which should be rendered to texture
> and the globe as a child node of the OverlayNode. But it didn't work.
> 
> Does anyone has an example or can tell me where to correctly
> insert the OverlayNode?
> 
> Thank you for your help,
> 
> Daniel Kallfass
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
> 

-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to