Home > Software engineering >  [for help!!!!!!] OpenGL color mixed problem
[for help!!!!!!] OpenGL color mixed problem

Time:11-15



Painted color is as shown in figure, the left side of the table value btValue (0 x00 to 0 XFF) corresponding to the color from white to green,
Now on the right shows the color of each point to that point when drawing btValue maximum value corresponding to the color of the map layer of all,
As shown in figure, the first layer of paint, according to a, b, c, d among the values of the fill color, the second drawing according to e, f, g, h populate the middle color,
When a=b=c=d=0, e=f=g=h=0 XFF, overlapping part of the middle shows green, when a=b=c=d=0 XFF, e=f=g=h=0 x0, overlap or middle shows green,

Using hybrid approach to handle glBlendFunc (GL_ONE, GL_ONE) show only the white, white other methods and can't display properly before using VTK, through color map can easily solve this problem, your bosses have OpenGL to know there is the same way? Or other methods, just learning OpenGL soon, you give directions, thank thank

CodePudding user response:

The picture is not very good, but seems to be no overlap of the two surfaces

  • Related