Profile Picture

Custom Color for NGridSurfaceSeries

Posted By Teddy Lambropoulos 14 Years Ago
Author
Message
Teddy Lambropoulos
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 20, Visits: 1

Is there a way to use custom colors for each point on an NGridSurfaceSeries?

I know there is a way to do this using the NTriangulatedSurfaceSeries but is there a method for the NGridSurfaceSeries?

I will explain my issue to help clarify any questions. Essentially I want to plot a sphere in 3D space using an NGridSurfaceSeries showing the temperature of this sphere along the surface using color. I have 4 matrices, one for X position, one for Y position, one for Z position, and one for temperature. Each element in the temperature matrix corresponds to a temperature for a given X,Y,Z position. I want to show hot, warm, cool, and cold temperatures along this sphere by using colors.



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hello,

Unfortunately at this point the grid and mesh surface series do not support individual colors per data point. We are planning to implement this capability for both chart types, but most probably this will happen in the second part of 2011.

Best Regards,
Nevron Support Team



Teddy Lambropoulos
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 20, Visits: 1

Thanks for the response!

Alright, so it seems I will have to use the NTriangulatedSurfaceSeries to show my data. I have another follow up question now.

I have a method that calculates colors for each x,y,z point in my plot, but the colors do not seem to blend well. For example, I say if my color vector is between 1 and 2, color it red. If it is between 2 and 3, color it orange. If it is between 3 and 4, color it yellow. Etc, etc. However I would like to include more colors than just the few I have manually programmed. I know I can create a palette to do this, but I would like the palette to reflect the values of my color vector (the temperature), not the z vector. Is there a way I can do this?

If not, I would like to incorporate color blending. For example, if the value of the color vector is 1.2, it falls between 1 and 2, but is closer to 1. So I would want the color to be more red than orange (using my above defined color scheme). Is there an already established method for this color interpolation in Nevron or will I have to write my own color interpolation method?

Thank you,

Teddy



Michael Hayford
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 14, Visits: 1
We have a similar need to plot a data set on a sphere. We were able to use 2 NTriangulatedSurfaceSeries, one for the northern hemisphere and one for the southern hemisphere to do this (set the UsePreciseGeometry property to true if the number of data points is in the 100s). The NTriangulatedSurfaceSeries projects the data points you give it into the XY plane (so you can only give it data from a single hemisphere at a time), tesselates that data and then uses the triangles with the original data points to feed the OpenGL renderer. This works OK but a built-in solution of either
1) a NGridSurfaceSeries that is mapped directly onto a sphere
2) a NTriangulatedSurfaceSeries that allows the user to supply a set of 3D triangles directly

It is good to hear that Nevron is planning to support this type of application better next year.

Regards
Mike Hayford


Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hello,

Regarding color interpolation - actually the surface palette does the same thing internally, but it computes colors based only on data point elevation (Y) values. It is not possible to assign a separate value to be used for color computation.

Currently the palette's functionality is not fully accessible and you cannot use the methods that interpolate the colors. I don't think we have had any requests for this functionality, but obviously it can be helpful and we will consider making it public. Until then, the only option is to implement your own color interpolation.

Best Regards,
Nevron Support Team



Vishal Mahavadi
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1

Hello,

Is there any update on supporting individual colors for data points in Grid and Mesh surface series.

 

Best regards

Vishal



Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hello,

For now the development of this feature is suspended.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic