Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 12th May 2014, 01:20 AM   #1
Warrior Member
 
Join Date: 2014
Location: The Internet
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Programatically generating contour map in Unity 3d over a flat surface
Share on: 
fb share twitter share gplus share more share

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:
. . . 
. . . 
. . .
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 problematically created from formulas like this:

Code:
34 54 79
56 80 108
89 110 120
Is there a way to do this?

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
ate8tree3 is offline  
Unread 12th May 2014, 08:21 AM   #2
VIP Warrior
War Room Member
 
SteveJohnson's Avatar
 
Join Date: 2007
Location: Caldwell, Idaho, USA.
Posts: 1,967
Thanks: 1,024
Thanked 2,043 Times in 1,183 Posts
Default
Re: Programatically generating contour map in Unity 3d over a flat surface
Share on: 
fb share twitter share gplus share more share

- 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
SteveJohnson is offline  
Unread 12th May 2014, 10:52 AM   #3
Warrior Member
 
Join Date: 2014
Location: The Internet
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Programatically generating contour map in Unity 3d over a flat surface
Share on: 
fb share twitter share gplus share more share

Well I am hoping that someone with any knowledge about my question might drop by and share some knowledge
ate8tree3 is offline  
Unread 12th May 2014, 11:22 AM   #4
Howdy
War Room Member
 
Valdor Kiebach's Avatar
 
Join Date: 2008
Location: England
Posts: 683
Thanks: 103
Thanked 150 Times in 124 Posts
Default
Re: Programatically generating contour map in Unity 3d over a flat surface
Share on: 
fb share twitter share gplus share more share

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#.
Valdor Kiebach is offline  
Unread 12th May 2014, 01:25 PM   #5
Warrior Member
 
Join Date: 2014
Location: The Internet
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Programatically generating contour map in Unity 3d over a flat surface
Share on: 
fb share twitter share gplus share more share

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.
ate8tree3 is offline  
Unread 20th May 2014, 02:38 AM   #6
Warrior Member
 
Join Date: 2014
Location: CA, USA
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default
Re: Programatically generating contour map in Unity 3d over a flat surface
Share on: 
fb share twitter share gplus share more share

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.

heslil is offline  
Closed Thread


Bookmarks

Tags
contour, flat, generating, map, programatically, surface, unity


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:32 AM.