[vtkusers] [vtk-developers] How to use color mapping for vtkPistonMapper?

Biddiscombe, John A. biddisco at cscs.ch
Tue Dec 3 09:43:35 EST 2013

Yes. I’ve enhanced the piston mapper and done the lookuptable on the GPU. I’m stuck in a terminally dull meeting right now, but once I escape, I’ll brush off the code and post a link.


From: David DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>
Date: Tuesday 3 December 2013 14:47
To: Enya Shen <enya.shen2010 at gmail.com<mailto:enya.shen2010 at gmail.com>>
Cc: VTK Developers <vtk-developers at vtk.org<mailto:vtk-developers at vtk.org>>, "vtkusers at vtk.org<mailto:vtkusers at vtk.org>" <vtkusers at vtk.org<mailto:vtkusers at vtk.org>>
Subject: Re: [vtk-developers] How to use color mapping for vtkPistonMapper?

Unfortunately I ran out of time and didn't get around to moving VTK's lookup table over when I originally implemented that class. So, the randow color map you see now is the only option when doing direct GPU to GPU rendering. Unless you hack the class yourself to make the transfer function configurable of course.

If anyone out there has an updated implementation (ahem John B.) please direct us to it and we can see about folding your improvements in.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Tue, Dec 3, 2013 at 12:24 AM, Enya Shen <enya.shen2010 at gmail.com<mailto:enya.shen2010 at gmail.com>> wrote:
Dear all,

I try to use vtkPistonMapper, but when I set the color with setColor(double[3]), I got nothing changed.

Thanks for any example or advice!


Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:

More information about the vtkusers mailing list