[vtkusers] vtksmartvolumemapper issues
mark.ostroot at lickenbrocktech.com
mark.ostroot at lickenbrocktech.com
Tue May 15 13:07:52 EDT 2018
Alister,
Thanks for your help I managed to get the code working now It was a missing autoinit line.
I ended up needing to add
#define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL2)
at the top of my code
-Thanks,
Mark
--------- Original Message --------- Subject: Re: [vtkusers] vtksmartvolumemapper issues
From: "Maguire, Alister Owen" <maguire7 at llnl.gov>
Date: 5/15/18 9:24 am
To: "mark.ostroot at lickenbrocktech.com" <mark.ostroot at lickenbrocktech.com>, "vtkusers at vtk.org" <vtkusers at vtk.org>
Are you including the following two lines in your .C file?
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingVolumeOpenGL2);
I'm not sure if this is the root of your issue, but I had run into problems while working with vtkSmartVolumeMapper a while back, and I ended up discovering that these two lines were needed for it to be used properly.
You can find more info about it here
https://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines
Best,
Alister
From: vtkusers <vtkusers-bounces at vtk.org> on behalf of "mark.ostroot at lickenbrocktech.com" <mark.ostroot at lickenbrocktech.com>
Date: Tuesday, May 15, 2018 at 8:43 AM
To: "vtkusers at vtk.org" <vtkusers at vtk.org>
Subject: [vtkusers] vtksmartvolumemapper issues
Hello all,
I am updating some old vtk 6.3 code to vtk 8.1, Currently the older code uses vtksmartvolumemapper, I am running into a run time error with a new smart pointer.
my code:
#include <vtkSmartVolumeMapper.h>
..
..
..
vtkSmartPointer<vtkSmartVolumeMapper> vMapper = vtkSmartPointer<vtkSmartVolumeMapper>::New(); < = this breaks with unhandled exception at (vtkRenderingVolume-8.1.dll) Access violation reading location 0x0000000000000000
The code compiles, but I hit this run time exception on execution. I don't believe the smartvolumemapper has been deprecated, does anyone have any idea of what I am doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180515/bda4dd8c/attachment.html>
More information about the vtkusers
mailing list