Changeset 5717
- Timestamp:
- Jun 17, 2015, 2:14:44 AM (9 years ago)
- Location:
- nanovis/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/trunk/VtkDataSetReader.cpp
r5672 r5717 147 147 print(dataSet); 148 148 149 int maxDim = 64;150 151 149 resampledDataSet = vtkImageData::SafeDownCast(dataSet.GetPointer()); 152 150 if (resampledDataSet != NULL) { 153 151 // Have a uniform grid, check if we need to resample 154 152 #ifdef DOWNSAMPLE_DATA 153 int maxDim = 64; 154 #else 155 // This is the hardware limit 156 int maxDim = NanoVis::max3dTextureSize; 157 #endif 155 158 if (resampledDataSet->GetDimensions()[0] > maxDim || 156 159 resampledDataSet->GetDimensions()[1] > maxDim || … … 158 161 resampledDataSet = resampleVTKDataSet(dataSet, maxDim); 159 162 } 160 #endif161 163 } else { 164 int maxDim = 64; 162 165 resampledDataSet = resampleVTKDataSet(dataSet, maxDim); 163 166 } -
nanovis/trunk/nanovis.cpp
r5716 r5717 77 77 Camera *NanoVis::_camera = NULL; 78 78 RenderContext *NanoVis::renderContext = NULL; 79 GLint NanoVis::max3dTextureSize = 2048; 79 80 80 81 NanoVis::TransferFunctionHashmap NanoVis::tfTable; … … 539 540 _camera = new Camera(0, 0, winWidth, winHeight); 540 541 542 glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &max3dTextureSize); 543 TRACE("Max 3D texture dim: %d", max3dTextureSize); 544 541 545 glEnable(GL_TEXTURE_2D); 542 546 glShadeModel(GL_FLAT); -
nanovis/trunk/nanovis.h
r5716 r5717 139 139 static util::Fonts *fonts; 140 140 static graphics::RenderContext *renderContext; 141 static GLint max3dTextureSize; 141 142 142 143 static TransferFunctionHashmap tfTable; ///< maps transfunc name to TransferFunction object
Note: See TracChangeset
for help on using the changeset viewer.