Commit 0414e8b3 authored by David DeMarle's avatar David DeMarle
Browse files

fix unused var comp warnings

parent 1d20b3d7
......@@ -115,7 +115,6 @@ int TestGPURayCastMapperBenchmark(int argc, char* argv[])
vtkNew<vtkOSPRayPass> osprayPass;
if (useOSP && !useFP)
{
cerr << "OSP PASS" << endl;
renderer->SetPass(osprayPass.GetPointer());
}
......
......@@ -604,7 +604,6 @@ void vtkOSPRayPolyDataMapperNode::ORenderPoly(
};
ospSet3fv(oMaterial,"Ka",ambientf);
double scale = property->GetDiffuse();
if (property->GetDiffuse()==0.0)
{
//a workaround for ParaView, remove when ospray supports Ka
......
......@@ -487,7 +487,6 @@ void vtkOSPRayRendererNode::Render(bool prepass)
{
this->ImageX = this->Size[0];
this->ImageY = this->Size[1];
osp::vec2i isize = {this->Size[0], this->Size[1]};
this->OFrameBuffer = ospNewFrameBuffer
(isize,
OSP_FB_RGBA8,
......@@ -554,7 +553,6 @@ void vtkOSPRayRendererNode::Render(bool prepass)
cameraDir = ospray::opengl::normalize(cameraDir);
float *ospDepthBuffer=nullptr;
float *glDepthBuffer = this->GetZBuffer();
ospDepthBuffer = new float[viewportWidth * viewportHeight];
glDepthTex = ospray::opengl::getOSPDepthTextureFromOpenGLPerspective
(fovy, aspect, zNear, zFar,
......
......@@ -116,21 +116,17 @@ void vtkOSPRayVolumeMapperNode::Render(bool prepass)
dim[2] = dim[2]-1;
}
size_t typeSize = 0;
std::string voxelType;
if (ScalarDataType == VTK_FLOAT)
{
typeSize = sizeof(float);
voxelType = "float";
}
else if (ScalarDataType == VTK_UNSIGNED_CHAR)
{
typeSize = sizeof(unsigned char);
voxelType = "uchar";
}
else if (ScalarDataType == VTK_DOUBLE)
{
typeSize = sizeof(double);
voxelType = "double";
}
else
......@@ -153,10 +149,6 @@ void vtkOSPRayVolumeMapperNode::Render(bool prepass)
//
// Send Volumetric data to OSPRay
//
char* buffer = NULL;
size_t sizeBytes = dim[0]*dim[1]*dim[2] *typeSize;
buffer = (char*)ScalarDataPointer;
ospSet3i(this->OSPRayVolume, "dimensions", dim[0], dim[1], dim[2]);
double origin[3];
double scale[3];
......@@ -194,8 +186,6 @@ void vtkOSPRayVolumeMapperNode::Render(bool prepass)
vtkColorTransferFunction* colorTF =
volProperty->GetRGBTransferFunction(0);
vtkPiecewiseFunction *scalarTF = volProperty->GetScalarOpacity(0);
int numNodes = colorTF->GetSize();
double* tfData = colorTF->GetDataPointer();
this->TFVals.resize(this->NumColors*3);
this->TFOVals.resize(this->NumColors);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment