Re: [PyOpenGL-Users] Coloring Nurb Surface
Brought to you by:
mcfletch
From: Nicolas R. <Nic...@in...> - 2011-02-24 09:42:25
|
On Feb 24, 2011, at 9:55 AM, Michka Popoff wrote: > Thanks for answering > > Dirk : > 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! > > Ian Mallett : > I'd use a vertex shader. > Have a look at glumpy that implement those two ideas (1D texture + shader): http://code.google.com/p/glumpy/ Nicolas |