[OpenWalnut-Dev] Colormapper
Sebastian Eichelbaum
eichelbaum at informatik.uni-leipzig.de
Fri May 6 19:32:25 CEST 2011
Hi List
I now removed the old colormapping and the old nav-slices. The new ones are not yet complete (no support for these side views). I also ported some common modules which STILL (after is several times asked you to do so) where not ported. The following modules are not ported and disabled currently:
modules/overlayAtlas
modules/functionalMRIViewer
modules/splineSurface
modules/lineGuidedSlice
modules/arbitraryPlane
I will port arbitraryPlane. YOU fix the rest as I do not know what they do or how they work. If not, I will remove them on 31.5.11.
Additionally, I will bring back the navigation views to the new nav slice module.
Again: The new colormapping can't be simpler. You will spend the most of the porting-time for cleaning up your own mess ... well ... sorry your own 500 lines of copy-and-paste stuff! Simply call "WGEColormapping::apply( m_myNode, m_myShader );". In your vertex shader, call "colormapping()" and in your fragment shader, call " vec4 col = colormapping()". Have a look at the marching cubes shader for an example.
Bye
Sebastian
--
Dipl.-Inf. Sebastian Eichelbaum
Universität Leipzig
Institut für Informatik
Abteilung Bild- und Signalverarbeitung
PF 100920
D-04009 Leipzig
More information about the OpenWalnut-Dev
mailing list