[vtkusers] Issues with multitexturing

-Daniel- ich_daniel at habmalnefrage.de
Wed Nov 20 10:50:35 EST 2013


Hi there,

for some time I try to work with the multitexturing in vtk. But several
problems slow me down.

(1.) I get warning messages when I assign textures.
for (int i = 0; i<textures_.size(); i++) {
     actor.GetProperty().SetTexture(i, textures_.get(i));
}

Warning message: 
Warning: In ..\..\..\VTK6.0.0\Rendering\Core\vtkProperty.cxx, line 386
vtkOpenGLProperty (13D57180): Replacing texture previously assigned to unit
0

What's wrong here?


(2.) textured objects "glow" (appear completely white without shades).
vtkLight has no influence. (Probably has something to do with the
blendingMode VTK_TEXTURE_BLENDING_MODE_ADD )
How can I fix this so that vtkLight.SwitchOn/off works again?
Otherwise  SwitchOn/Off only works with untextured objects.

Any hints?
Thanks and regards.






--
View this message in context: http://vtk.1045678.n5.nabble.com/Issues-with-multitexturing-tp5724526.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list