[vtkusers] vtkTextureObject bind error
Rick Dailey
rick at pile.com
Fri Sep 29 13:09:16 EDT 2017
Hello Alvaro,
I am now back from vacation and other projects and have begun to look at
this issue once again. The temporary link that you provided back in August
no longer works but I was able to see that your changes had been merged into
the latest master (8.1) and I downloaded that version.
Unfortunately, the new version behaves worse for me than before. 7.1.1
would display the outline of the large object even though the interior was
not visible. The master that I just downloaded crashes when attempting to
display my test data set.
Once again, it starts at vtkTextureObject::Bind() where this->Handle is
NULL. It was my understanding that this handle was not being created
because of the large size of the object - and that was one of the fixes in
the new version. Now when the code progresses past this function it
encounters many obstacles that cause my program to crash rather than display
an empty object as before.
Here is the stack trace from the point where I call "Render" to the point
where it crashes as described above:
void vtkTextureObject::Bind()
{
assert(this->Context);
assert(this->Handle); // <<<<<<<< THIS HANDLE IS NULL <<<<<<<<<<
glBindTexture(this->Target, this->Handle);
vtkOpenGLCheckErrorMacro("failed at glBindTexture");
if (this->AutoParameters && (this->GetMTime() > this->SendParametersTime))
{
this->SendParameters();
}
}
> vtkRenderingOpenGL2-8.1.dll!vtkTextureObject::Bind() Line 516 C++
vtkRenderingOpenGL2-8.1.dll!vtkTextureObject::Activate() Line 465 C++
vtkRenderingVolumeOpenGL2-8.1.dll!vtkVolumeTexture::LoadTexture(const int
interpolation, vtkVolumeTexture::VolumeBlock * volBlock) Line 268 C++
vtkRenderingVolumeOpenGL2-8.1.dll!vtkVolumeTexture::LoadVolume(vtkRenderer
* ren, vtkImageData * data, vtkDataArray * scalars, const int interpolation)
Line 114 C++
vtkRenderingVolumeOpenGL2-8.1.dll!vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::LoadData(vtkRenderer
* ren, vtkVolume * vol, vtkVolumeProperty * volProp, vtkImageData * input,
vtkDataArray * scalars) Line 898 C++
vtkRenderingVolumeOpenGL2-8.1.dll!vtkOpenGLGPUVolumeRayCastMapper::GPURender(vtkRenderer
* ren, vtkVolume * vol) Line 3471 C++
vtkRenderingVolume-8.1.dll!vtkGPUVolumeRayCastMapper::Render(vtkRenderer *
ren, vtkVolume * vol) Line 154 C++
vtkRenderingCore-8.1.dll!vtkVolume::RenderVolumetricGeometry(vtkViewport *
vp) Line 370 C++
vtkRenderingOpenGL2-8.1.dll!vtkOpenGLRenderer::UpdateGeometry() Line 273
C++
vtkRenderingOpenGL2-8.1.dll!vtkOpenGLRenderer::DeviceRender() Line 170 C++
vtkRenderingCore-8.1.dll!vtkRenderer::Render() Line 351 C++
vtkRenderingCore-8.1.dll!vtkRendererCollection::Render() Line 51 C++
vtkRenderingCore-8.1.dll!vtkRenderWindow::DoStereoRender() Line 784 C++
vtkRenderingCore-8.1.dll!vtkRenderWindow::DoFDRender() Line 750 C++
vtkRenderingCore-8.1.dll!vtkRenderWindow::DoAARender() Line 629 C++
vtkRenderingCore-8.1.dll!vtkRenderWindow::Render() Line 442 C++
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list