Re: [PyOpenGL-Users] Coloring Nurb Surface
Brought to you by:
mcfletch
From: Dirk R. <dir...@gm...> - 2011-02-23 15:18:01
|
Hi Michka, On 02/23/2011 08:34 AM, Michka Popoff wrote: > > Perhaps somebody has a tutorial or some good hints for me ? generally the most generic and efficient way for that is to use glTexGen to turn your height into a texture coordinate and use a 1D texture for the colors to interpolate between. This allows you to fully specify the color that are interpolated and also enables you to do non-linear mappings (e.g. have a bright band at a specific height). Give it a try! Hope it helps Dirk |