Re: [osg-users] osgvolume brightness and sample density

2012-05-14 Thread Robert Osfield
Hi Clement, On 8 May 2012 08:44, clement@csiro.au wrote:  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

Re: [osg-users] osgvolume brightness and sample density

2012-05-14 Thread Clement.Chu
:07 PM To: OpenSceneGraph Users Subject: Re: [osg-users] osgvolume brightness and sample density Hi Clement, On 8 May 2012 08:44, clement@csiro.au wrote: Thanks for your help. The colour map in the osgvolume.cpp example contains specific colour. I would like to implement full range

Re: [osg-users] osgvolume brightness and sample density

2012-05-14 Thread Robert Osfield
From: osg-users-boun...@lists.openscenegraph.org [osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield [robert.osfi...@gmail.com] Sent: Monday, 14 May 2012 9:07 PM To: OpenSceneGraph Users Subject: Re: [osg-users] osgvolume brightness and sample density

Re: [osg-users] osgvolume brightness and sample density

2012-05-14 Thread Clement.Chu
-users] osgvolume brightness and sample density Hi Clement, This really isn't an OSG question, or at least answering isn't an OSG question, it's really one of how to teach you how to program. You have a for loop with a constant r,g,b value and varying i value and you are stuck on how to vary r,g,b

Re: [osg-users] osgvolume brightness and sample density

2012-05-14 Thread Robert Osfield
Hi Clement, On 14 May 2012 17:47, clement@csiro.au wrote:   I am not new in programming but I am new in doing 3D work.  I tried to generate a hugh colour map as 65535 colours and assign into osg::TransferFunction1D::ColorMap, but the colour display is not much better than I don't

Re: [osg-users] osgvolume brightness and sample density

2012-05-08 Thread Clement.Chu
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

Re: [osg-users] osgvolume brightness and sample density

2012-05-04 Thread Clement.Chu
: [osg-users] osgvolume brightness and sample density Hi Clement, You simply need to attach a TransferFunctionProperty to the Layer assigned VolumeTile and set up this to map floating point intensity value to the colour/alpha value required. The osgvolume has example of it's setup. Robert. On 12

Re: [osg-users] osgvolume brightness and sample density

2012-05-04 Thread Robert Osfield
Hi Clement, On 4 May 2012 08:46, clement@csiro.au wrote: Hi Robert,    Sorry, I just saw your reply.  Is TransferFunctionProperty used for defined colour map?        osg::ref_ptrosg::TransferFunction1D transferFunction = new osg::TransferFunction1D;        

Re: [osg-users] osgvolume brightness and sample density

2012-05-04 Thread Clement.Chu
...@gmail.com] Sent: Friday, 4 May 2012 7:09 PM To: OpenSceneGraph Users Subject: Re: [osg-users] osgvolume brightness and sample density Hi Clement, On 4 May 2012 08:46, clement@csiro.au wrote: Hi Robert, Sorry, I just saw your reply. Is TransferFunctionProperty used for defined colour

Re: [osg-users] osgvolume brightness and sample density

2012-05-04 Thread Robert Osfield
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

Re: [osg-users] osgvolume brightness and sample density

2012-04-24 Thread Robert Osfield
Hi Clement, You simply need to attach a TransferFunctionProperty to the Layer assigned VolumeTile and set up this to map floating point intensity value to the colour/alpha value required. The osgvolume has example of it's setup. Robert. On 12 April 2012 03:52, clement@csiro.au wrote: Hi,

[osg-users] osgvolume brightness and sample density

2012-04-11 Thread Clement.Chu
Hi, I am using osgVolume to display my CT data. If I set the value of SampleDensityProperty lower, I can get more details, but the brightness will become darker or dull. Does any method that allow to use smaller value of SampleDensityProperty and keep image colour brighter. I tried to use