Shouldn't this be set with something like <code><font>glGetIntegerv(GL_MAX_TEXTURE_SIZE ?  <br><br></font></code>There are hardware limitations that restrict the maximum texture size..<br><br><div><span class="gmail_quote">
On 12/19/06, <b class="gmail_sendername">Glen Lehmann</b> <<a href="mailto:glehmann@atamai.com">glehmann@atamai.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br><br>Occasionally, on the vtkusers list there are requests to remove the<br>hard-coded limitations in VTK's 3D texture mappers.  We have removed<br>these limitations within Atamai and we find it very useful on newer
<br>hardware.<br><br>If there are no objections, I would like to address this issue without<br>changing the default behaviour of the mapper:<br><br>vtkVolumeTextureMapper3D:<br><br>- new method SetMaximumTextureSize(int id, vtkIdType size)
<br>  - vtkIdType MaximumTextureSize[2];<br>  - id = 0 will be used for 1-3 components (default = 128*256*256)<br>  - id = 1 will be used for 4 components (default = 128*128*128)<br>  - method will check for power-of-two<br>
<br>- new method SetMaximumSamplingDistance<br>  - default to -1.0 (unset)<br><br>- modify method UpdateColorLookup such that this->ActualSampleDistance<br>is less than or equal to this->MaximumSampleDistance<br><br>
vtkOpenGLVolumeTextureMapper3D:<br><br>- modify IsTexureSizeSupported to use the values in MaximumTextureSize.<br><br>On a new Mac Pro with the ATI X1900 graphics card, setting<br>MaximumTexureSize[1] = 256*256*256, SampleDistance = 
0.75, and<br>MaximumSampleDistance = 0.75 looks great and provides fast interactive<br>rendering.<br><br>Objections, comments, or concerns?<br><br>Glen<br>_______________________________________________<br>vtk-developers mailing list
<br><a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br><a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br></blockquote></div><br><br clear="all">
<br>-- <br>----------------------------------------<br>Randall Hand<br>Visualization Scientist<br>ERDC MSRC-ITL