- Home /
Programatically generating contour map in Unity 3d over a flat surface
I am working on a project in Unity3D in which I have to Generate a contour map from data obtained from formulas separately over a flat surface.
I have a simple 2d surface rotated in 3d. Imagine a surface such as this:
. . .
. . .
. . .
I want to generate (not just apply texture of a) contour on this surface on the basis of temperature data at different points on it. This not permanent and recalculation of data will show new contours. Data of temperature will be mathematically created from formulas like this:
34 54 79
56 80 108
89 110 120
Is there a way to do this?
I am ok with JS as well as C# code. But any help in getting the desired result would be very helpful.
I would like to help you but your question is difficult to understand without visuels.
Could you please provide some photos/videos of what seems to be the issue? :)
(e.g. are you talking about bump mapping, or are you looking for a way to displace vertices using a displacement map?)
I need something like this: http://www.silvaco.com.cn/products/tcad/Stress_Simulator/i/vic_stress_fig3b.jpg
Here, the temperature is known at different locations and is represented by different colors.
Your answer
Follow this Question
Related Questions
2D Platform Generation: Spawning Platforms Consecutively 3 Answers
There is a generation lag 1 Answer
Sprite rendering problem 0 Answers
2D terrain texturing with submeshes? 0 Answers
2D Hill Generation 1 Answer