In my program Rainbow get a value from 0.0 to 1.0 and return a related TColor object from Violet (390nm) to Red (720nm). So for 0% height I want to see Violet and for 100% I would like to see Red and between them all spectrum colors. This works very fine using single points but not with Mesh which don't do same transactions colors:
In 001 you can see the wrong transation from violet to red.
In 002 there is the final program which collect data ad a cloud of points objects with right spectrum color where height of Z determinate spectrum color.
In 003 the points cloud is used to create a mesh but giving related color to each vertex depending by Height of Z the colors aren' fine.
In 004 is more simply to watch the wrong transation of mesh from violet to red.
So, there is a way to define how a single mesh triangle should be coloured and what transition colors are used from vertex A to B to C ?
Last edit: shine world 2017-12-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm using TMeshObject to add vertices on a GLFreeForm object and create a graphical form.
In my program Rainbow get a value from 0.0 to 1.0 and return a related TColor object from Violet (390nm) to Red (720nm). So for 0% height I want to see Violet and for 100% I would like to see Red and between them all spectrum colors. This works very fine using single points but not with Mesh which don't do same transactions colors:
Last edit: shine world 2017-12-05
In 001 you can see the wrong transation from violet to red.
In 002 there is the final program which collect data ad a cloud of points objects with right spectrum color where height of Z determinate spectrum color.
In 003 the points cloud is used to create a mesh but giving related color to each vertex depending by Height of Z the colors aren' fine.
In 004 is more simply to watch the wrong transation of mesh from violet to red.
So, there is a way to define how a single mesh triangle should be coloured and what transition colors are used from vertex A to B to C ?
Last edit: shine world 2017-12-06