[osg-users] How to remove the blue background color

2009-03-25 Thread tien dat
Dear all, I need to remove the blue background color so that I can do augmented display (you can run the cow.osg example to see the blue color). Do any of you know how to do that? Thank you very much, Dat ___ osg-users mailing list osg-users@lists.opensce

Re: [osg-users] How to remove the blue background color

2009-03-25 Thread Lingyun Yu
Hi dat, I think viewer->getCamera()->setClearColor() can make it. Yun 2009/3/25 tien dat > Dear all, > I need to remove the blue background color so that I can do augmented > display (you can run the cow.osg example to see the blue color). Do any of > you know how to do that? > Thank you very

Re: [osg-users] How to remove the blue background color

2009-03-25 Thread Cory Riddell
Yun's suggestion allows you to replace the blue color with another solid color. If you want an image (I want a gradient), do something similar to osgHUD, except draw first rather than last to put the image behind everything else. cory Lingyun Yu wrote: Hi dat,   I think viewer->get

Re: [osg-users] How to remove the blue background color

2009-03-26 Thread Robert Osfield
Hi Corry, 2009/3/25 Cory Riddell > Yun's suggestion allows you to replace the blue color with another solid > color. > > If you want an image (I want a gradient), do something similar to osgHUD, > except draw first rather than last to put the image behind everything else. > The osghud or osgdi

Re: [osg-users] How to remove the blue background color

2009-03-26 Thread tien dat
Dear Yun, Corry and Robert, Thank you very much for your help. I tried Yun's suggestion and found that it's the easiest way to do. Just set color to be black and alpha to be 0, and you can have an object floating in the air with augmented display. Best, Dat 2009/3/26 Robert Osfield > Hi Corry, >