[vtkusers] Error setting 'vertexMC' in shader VAO and EGL_BAD_DISPLAY
Lonni Besançon
lonni.besancon at gmail.com
Wed Nov 18 06:01:46 EST 2015
Hello,
I am trying to write my own InteractorStyle for android. So far I was
successful in changing what I wanted to change and creating it. Now I wanted
to add a function that could handle a given rotation/translation given as a
parameter. Here goes the function:
/void myfunction(double* rotation, double* translation){
vtkProp3D* prop3D = actor ; // Actor is a variable of the class
vtkTransform* t = vtkTransform::New();
t->Identity();
t->RotateX(rotation[0]);
t->RotateY(rotation[1]);
t->RotateZ(rotation[2]);
prop3D->SetUserMatrix(t->GetMatrix());
vtkRenderWindowInteractor *rwi = this->Interactor;
rwi->Render();
}/
My previous code was working just fine, but now when I call this function I
get the following errors:
/
E/VTK ( 6271): ERROR: In
/Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1413
E/VTK ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
'vertexMC' in shader VAO.
E/VTK ( 6271): ERROR: In
/Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1421
E/VTK ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
'normalMC' in shader VAO.
E/VTK ( 6271): ERROR: In
/Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1413
E/VTK ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
'vertexMC' in shader VAO.
E/VTK ( 6271): ERROR: In
/Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1421
E/VTK ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
'normalMC' in shader VAO.
E/libEGL ( 6271): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
E/VTK ( 6271): ERROR: In
/Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1413
E/VTK ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
'vertexMC' in shader VAO.
E/VTK ( 6271): ERROR: In
/Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 142
/
Note that the application does not crash and that my actor is rotated (by a
fixed rotation even if I change the values) and that if I start a normal
interaction with the actor again the application works just fine.
I was therefore wondering what I am doing wrong here.
I have created a post on StackOverflow for a more readable version of the
code and the errors.
StackOverflow Post
<http://stackoverflow.com/questions/33778197/vtk-error-setting-vertexmc-in-shader-vao-and-egl-bad-display>
--
View this message in context: http://vtk.1045678.n5.nabble.com/Error-setting-vertexMC-in-shader-VAO-and-EGL-BAD-DISPLAY-tp5735057.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list