Hi Robert, Thanks for your help. The colour map in the osgvolume.cpp example contains specific colour. I would like to implement full range of colours as possible supported by osg. Any idea what I can do to create a colour map of full range colours. Thanks.
Regards, Clement ________________________________________ From: osg-users-boun...@lists.openscenegraph.org [osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield [robert.osfi...@gmail.com] Sent: Saturday, 5 May 2012 5:01 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osgvolume brightness and sample density HI Clement, On 4 May 2012 19:30, <clement....@csiro.au> wrote: > Thanks again for your reply. I am a bit confused on using color map. I > would like my program to support at least 8 bit color, so how should I create > the color map? Where can I find more information? osgvolume.cpp does not > have much details related to color map. You just assign colours to the TransferFunction1D. Go have a look at the API, the osgvolume.cpp provides code that does it. This stuff should be realtively straightforward to infer from the code you have in front of you. If you are struggling then perhaps it's time you went back to basics a bit more w.r.t OpenGL and C++ as none of this is particular advanced. I'm happy to point you in the right direction, but it's really not my place to teach you how to program computer graphics applications. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org