Re: [osg-users] Volume rendering issues...

2018-07-29 Thread Robert Osfield
Hi Tom, On Mon, 30 Jul 2018 at 00:39, Tom Williamson wrote: > Turns out it was a scoping issue (as suggested by Robert), is more or less > working as expected now... Good to hear it's resolved. > Unfortunately now have to deal with shader issues when using the multipass > rendering, as my gra

Re: [osg-users] Volume rendering issues...

2018-07-29 Thread Tom Williamson
Thanks guys, Turns out it was a scoping issue (as suggested by Robert), is more or less working as expected now... Unfortunately now have to deal with shader issues when using the multipass rendering, as my graphics card doesn't provide compatibility mode for the existing shaders. Does anyon

Re: [osg-users] Volume rendering issues...

2018-07-29 Thread Voerman, L.
Hi Tom, I was wondering if your call to setimage should have the width in the last argument. laurens ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Volume rendering issues...

2018-07-26 Thread Robert Osfield
Hi Tom. My best guess would be that the ITK image data is being deleted prior to the graphics thread gets a chance copy the data into OpenGL. Try either copying the data into the osg::Image and let osg::Image then manage the lifetime of it's own data, or prevent the ITK image data from getting de

[osg-users] Volume rendering issues...

2018-07-26 Thread Tom Williamson
Hi gang, Thanks for all the work on OSG, is rad. I'm currently having a problem with the rendering of a volume, here's what I'm trying to do: - I'm using ITK to read a NIFTI file, (segmentation of a bone). The file contains zeros (background) and ones (object), format is unsigned short. - I am