[osg-users] text under the transparent object

xuyuanzhen1 xuyuanzhen1 at sina.com
Fri Sep 12 02:16:53 PDT 2008


Hello all:
     I want to show some texts under the transparent cone but it couldn't display like the picture show.The follow is my construct order:
-------------------------------------------------------------------
//add sphere texture
 root->addChild(CreateSphere(osg::Vec3(0.0,-1.26,0.0)).get());
//add a small black box
 root->addChild(CreateBox(0.2,0.4,osg::Vec3(0.0,0.0,0.2)).get());
//add text
 root->addChild(CreateText().get());
//add transparent cone
 root->addChild(MakeRo.get());
----------------------------------------------------------------------
Why the text can't show?What should I do?

Best regards

2008-09-12 



xuyuanzhen1 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080912/aed3a964/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: untitled.JPG
Type: image/jpeg
Size: 30626 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080912/aed3a964/attachment-0002.jpeg>


More information about the osg-users mailing list