Click here to Skip to main content
15,883,936 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a task about converting 2D to 3D automatically. I have been doing edge detection and triangulating. But, I have a problem how to give a 3D color effect. Please tell me a method or algorithm how to give that 3D color effect. Thanks for your help
Posted
Comments
YvesDaoust 19-Mar-14 3:19am    
Your question is not explicit enough. Please tell more about the effect you need to achieve and show samples.
Rahmatsyah Panggabean 27-Mar-14 6:24am    
First I draw a picture like this
http://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Delaunay_Triangulation_%28100_Points%29.svg/250px-Delaunay_Triangulation_%28100_Points%29.svg.png

To be a 3D picture, certainly the surface must have color to know the depth of that picture
Example like this
http://s13.photobucket.com/user/NightFurson/media/Screenshots/TessOccuring.jpg.html

I want to know how to give a color become like a second picture. That is my explanation from my question. Is it clear?
YvesDaoust 27-Mar-14 7:06am    
Still pretty unclear what you want. Are you referring to the gray shaded sphere (leftmost picture) or the colored "sheets" inscribed in a sphere (next picture) ? Such effects are much easier to achieve using a true 3D model than with a flat one.
Rahmatsyah Panggabean 28-Mar-14 5:28am    
Do you know triangulation?
I have a polygon, so I will make it to 3D picture with triangulating that polygon
Then, I will color it. Because the depth of that polygon surface will be discovered
So, I need to know how to color it
Do you know the step? Is my explanation clear?
YvesDaoust 28-Mar-14 5:38am    
No, not clearer. You didn't answer my question. There is no relation between depth and color, there is a relation between depth and lightness. You must describe what you want in more precise terms.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900