[vtk-developers] Text Actor with no input causes No scalar values found for texture input!
Deepak Surti
dmsurti at gmail.com
Wed Nov 19 06:47:08 EST 2014
Hi,
I built a VTK 6.2 egg with OpenGL2 rendering backend enabled. It causes
this error if no input set for Text Actor. Same also happens if no title
exists for Scalar Bar actor.
==================================
The error log is: (for VTK 6.2 with OpenGL2 enabled)
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-6.1.0-1/work/VTK-6.1.0/Rendering/OpenGL2/vtkOpenGLTexture.cxx,
line 171
vtkOpenGLTexture (0x10b019200): No scalar values found for texture input!
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-6.1.0-1/work/VTK-6.1.0/Rendering/OpenGL2/vtkTextureObject.cxx,
line 454
vtkTextureObject (0x102932920): failed at glBindTexture(0) 1 OpenGL errors
detected
0 : (1280) Invalid enum
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-6.1.0-1/work/VTK-6.1.0/Rendering/OpenGL2/vtkOpenGLTexture.cxx,
line 171
vtkOpenGLTexture (0x10b019200): No scalar values found for texture input!
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-6.1.0-1/work/VTK-6.1.0/Rendering/OpenGL2/vtkTextureObject.cxx,
line 454
vtkTextureObject (0x102932920): failed at glBindTexture(0) 1 OpenGL errors
detected
0 : (1280) Invalid enum
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-6.1.0-1/work/VTK-6.1.0/Rendering/OpenGL2/vtkOpenGLTexture.cxx,
line 171
vtkOpenGLTexture (0x10b019200): No scalar values found for texture input!
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-6.1.0-1/work/VTK-6.1.0/Rendering/OpenGL2/vtkTextureObject.cxx,
line 454
vtkTextureObject (0x102932920): failed at glBindTexture(0) 1 OpenGL errors
detected
0 : (1280) Invalid enum
======================================
I also tested for VTK 5.10 and this is the error log:
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-5.10.1-2/work/VTK5.10.1/Rendering/vtkFreeTypeUtilities.cxx,
line 1782
vtkFreeTypeUtilities (0x10102a600): no text in input
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-5.10.1-2/work/VTK5.10.1/Filtering/vtkImageData.cxx,
line 1349
vtkImageData (0x1005c1790): No Scalar Field has been specified - assuming 1
component!
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-5.10.1-2/work/VTK5.10.1/Rendering/vtkOpenGLTexture.cxx,
line 196
vtkOpenGLTexture (0x1005c1e50): No scalar values found for texture input!
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-5.10.1-2/work/VTK5.10.1/Rendering/vtkFreeTypeUtilities.cxx,
line 1782
vtkFreeTypeUtilities (0x10102a600): no text in input
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-5.10.1-2/work/VTK5.10.1/Filtering/vtkImageData.cxx,
line 1349
vtkImageData (0x1005c1790): No Scalar Field has been specified - assuming 1
component!
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-5.10.1-2/work/VTK5.10.1/Rendering/vtkOpenGLTexture.cxx,
line 196
vtkOpenGLTexture (0x1005c1e50): No scalar values found for texture input!
ERROR: In
/Users/deepaksurti/pisi-64bit/tmp/VTK-5.10.1-2/work/VTK5.10.1/Rendering/vtkOpenGLTexture.cxx,
line 196
vtkOpenGLTexture (0x1005c1e50): No scalar values found for texture input!
============================
WORKS FINE IN VTK 6.1
I have also added a sample test file to reproduce this error.
Any suggestions to fix this?
Thanks,
Deepak
--
http://deepaksurti.com
To see a miracle, be the miracle.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20141119/2e8b9a8a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text_actor.py
Type: text/x-python-script
Size: 1174 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20141119/2e8b9a8a/attachment-0001.bin>
More information about the vtk-developers
mailing list