| | #1 |
| Warrior Member Join Date: 2014 Location: The Internet
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hi! 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: Code: . . . . . . . . . Code: 34 54 79 56 80 108 89 110 120 Please note that I want to generate the contour on the surface instead of creating it by hand. There is no need to find the contours or detect them because data for contours it will be found separately using formulas. I am ok with JS as well as C# code. But any help in getting the desired result/method would be very helpful. I hope my question was clear enough |
| |
| | #2 |
| VIP Warrior War Room Member Join Date: 2007 Location: Caldwell, Idaho, USA.
Posts: 1,967
Thanks: 1,024
Thanked 2,043 Times in 1,183 Posts
| - if you look at the types of questions discussed here in the programming section of the WF, you'll find that this isn't the proper site to be asking your kind of questions. Might be better off to ask on StackExchange
|
| |
| | #3 |
| Warrior Member Join Date: 2014 Location: The Internet
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
Well I am hoping that someone with any knowledge about my question might drop by and share some knowledge |
| |
| | #4 |
| Howdy War Room Member Join Date: 2008 Location: England
Posts: 683
Thanks: 103
Thanked 150 Times in 124 Posts
|
Have you asked on the unity forum? Scripting I am not sure what you mean by contour, is it the line joining points of the same temperature just as height contour lines on a map do, if so are you asking how to draw these lines between points? This would need a discussion in the unity forum, people need to know if you are using unityscript C# or boo. I can share some knowledge but it will be better to have input from other Unity users too, also I only use C#. |
| |
| | #5 |
| Warrior Member Join Date: 2014 Location: The Internet
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
I need something like this: http://www.silvaco.com.cn/products/t...ress_fig3b.jpg Here, the temperature is known at different locations and is represented by different colors. |
| |
| | #6 |
| Warrior Member Join Date: 2014 Location: CA, USA
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
|
Your question still seems unclear. You want to know how to generate a texture from the data you have (the formula) in Unity? As you said you know the contours so all it takes is first discretize the data then fill in the matrix which will be used as the texture of your mesh.
|
| | |
| |
|
| Bookmarks |
| Tags |
| contour, flat, generating, map, programatically, surface, unity |
| |