[vtkusers] OPacity issues

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Mar 16 13:41:11 EST 2004


James C. Robinson wrote:
> Mathieu,
> 
> You are a martyr "pour ma cause"....

Et c'est ma joie !

> Firstly, I do not use TCL. I am writing a PC (Windows) platform application
> in MFC C++. When I try to run hello.tcl I get "Can't find package vtk". I
> didn't think that I had to "install" some kind of vtk kernel on a pc to run
> my MFC application (am I correct?)

That's fine. It's just that scripting language don't need to be 
compiled. And would have been easier to track down the bug...

> You say that I should use vtkActor instead of vtkOpenGLActor. Why do
> vtkOpenGLActor and all the other inherited OpenGL classes exist?

In your c++ app, just do:

vtkActor *foo = vtkActor::New();
cout <<  foo->GetClassName() << endl;

  ... you'll be surprised :p

> I have found Maya VI and am going to investigate the kind of images it can
> produce (as a benchmark for what I should be able to do). I notice when I
> expand its pipeline, it has OpenGL objects in there.......

It's in python not c++

> I am pretty sure that I am not transferring an integer. I am using
> vtkFloatingPointType, so if this is a problem it must emanate from the vtk
> end?

Not so quick ;) You still have to run an official VTK example so I 
believe you. So please go to:

VTK/Examples/Medical/Cxx/

Create a subdirectory 'opacity'

Run CMakeSetup enter source:

VTK/Examples/Medical/Cxx/

in build dir:

VTK/Examples/Medical/Cxx/opacity

Then fill everything.
And to run the example you either run it like this:

./Medical3.exe ~/'path_to'/VTKData/Data/headsq/quarter

Or you need to define an env variable (not sure though).

And send me a screenshot, the transparency should work.

HTH this time,
Mathieu
Thanks for updating the ML mail





More information about the vtkusers mailing list